/* ========== PAGE FRAME ========== */

* { box-sizing: 
  border-box; 
}

html, body {
  height: 100%; 
}

body {
  margin: 0;
  min-height: 100svh;                 /* full viewport height */
  display: flex;
  flex-direction: column;             /* header → main (fills) → footer */
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #2F2C27;                     
  background: #D1C1B1;                
  line-height: 1.6;
}

main {
   flex: 1 0 auto; 
  }


.site-header, .site-footer { 
  flex: 0 0 auto; 
}

img { max-width: 100%; 
  display: block; 
}

a { 
  color: inherit; 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

.container { 
  width: min(1100px, 90%); 
  margin-inline: auto; 
}



/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #ffffff;   
}

.header-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: .75rem 0;
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: .6rem; 
  font-weight: 700; 

}

.brand-mark { 
  width: 28px; 
  height: 28px; 
  border-radius: 6px; 
  background: #88786B; 
}

.brand-text { 
  letter-spacing: .2px; 
}

.nav-toggle {
  display: none;
  padding: .4rem .6rem; border-radius: 10px;
  border: 1px solid #88786B; 
  background: #D1C1B1; 
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  /* align-items: center; */
  gap: 1rem; 
}

.site-nav li {
  display: flex;
  align-items: center;
}

.site-nav a { 
  display: inline-block;
  padding: .5rem .8rem; 
  border-radius: 8px; 
  color: #2F2C27;
  text-decoration: none;
  line-height: 1;
}


.site-nav a:hover { 
  background: #D1C1B1; 
}     

.site-nav a.active { 
  background: #88786B; 
  color: #ffffff; 
} 



/* ========== HERO (HOME — background image) ========== */

.hero {
  position: relative; 
  display: flex; 
  align-items: center;
  min-height: 420px; 
  padding: 5rem 0;
  background: url("media/images/header.jpg") center/cover no-repeat;
  color: #ffffff;
}
.hero::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: rgba(47,44,39,.40); 
}

.hero-content { 
  position: relative; 
  z-index: 1; 
  max-width: 720px; 
}

.hero h1 { 
  margin: 0 0 1rem; 
  font-size: 2.2rem; 
  font-weight: 700; 
}

.hero p {
  margin: 0 0 1rem; 
}



/* ========== PAGE INTRO (other pages) ========== */

.page-hero { 
  padding: 2.5rem 0 1.5rem; 
}

.page-hero h1 { 
  margin: 0 0 .5rem; 
}



/* ========== SECTIONS / GRID ========== */

.section { 
  padding: 3rem 0; 
}

.grid { 
  display: grid; 
  gap: 1.25rem; 
}

.grid-2 { 
  grid-template-columns: 
  repeat(2, 1fr); 
}

.grid-3 { 
  grid-template-columns: repeat(3, 1fr); 
}

.grid-span-2 { 
  grid-column: span 2; 
}



/* ========== CARDS / PROJECTS / GALLERY ========== */

.card {
  background: #ffffff; 
  border: 1px solid #88786B; 
  border-radius: 14px;
  padding: 1.1rem 1.25rem; 
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover { 
  box-shadow: 0 12px 24px rgba(0,0,0,.12); 
  transform: translateY(-2px); 
}

.projects .project {
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
  border-radius: 14px; 
  border: 1px solid #88786B; 
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.project-media { 
  height: 160px; 
  background: #88786B; 
}   

.project-body {
  padding: 1rem 1.1rem; 
}

.gallery .tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #88786B;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}


/* ========== LIGTHBOX ========== */

.lightbox a{ 
  display:block; 
  border-radius:12px; 
  overflow:hidden; 
}

.lightbox img{ 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
}

.lb button{ 
  position:absolute; 
  top:16px; 
  right:16px; 
  font-size:28px; 
}

/* Lightbox overlay */

.lb[hidden] { 
  display: none; /* honor [hidden] */
}       

.lb{
  position: fixed; 
  inset: 0;
  background: rgba(0,0,0,.8);
  display: grid; 
  place-items: center;
  z-index: 999;  
}

.lb img{
  max-width: 90vw; 
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.lb-close{
  position: absolute; 
  top: 16px; 
  right: 16px;
  width: 40px; 
  height: 40px;
  border-radius: 999px;
  border: none; 
  cursor: pointer;
  font-size: 24px; 
  line-height: 1;
  background: #ffffff; 
  color: #2F2C27;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}


/* ========== GALLERY GRID TILES (lightbox variant) ========== */

.gallery-grid { 
  display: grid; 
  gap: 1rem; 
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.lightbox a{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;                 /* keeps tiles even */
  border: 1px solid #C1B49A;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.gallery-grid.lightbox img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery .tile{
  border-radius:14px; overflow:hidden; border:1px solid #88786B;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}
.gallery .tile img{ width:100%; height:100%; object-fit:cover; display:block; }



/* ========== BUTTONS ========== */

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: .7rem 1.2rem; 
  border-radius: 999px; 
  font-weight: 600;
  background: #88786B; 
  color: #ffffff; 
  border: none; 
  cursor: pointer; 
  transition: background .2s ease;
}

.btn:hover { 
  background: #75695F; 
}

.btn-ghost { 
  background: transparent; 
  color: #88786B; 
  border: 2px solid #88786B; 
}

.btn-ghost:hover { 
  background: #D1C1B1; 
}

.btn-light { 
  background: #ffffff; 
  color: #2F2C27; 
  border: 1px solid #88786B; 
}

.link { 
  font-weight: 600; 
}



/* ========== LISTS / FORMS ========== */

.list { 
  padding-left: 1.1rem; 
}

.list li { 
  margin-bottom: .4rem; 
}

.list-check { 
  list-style: "✓  "; 
  padding-left: 1.2rem; 
}

.form .field { 
  display: flex; 
  flex-direction: column; 
  gap: .35rem; 
}

.form label { 
  font-weight: 600; 
}

.form input, .form select, .form textarea {
  appearance: none; 
  padding: .7rem .8rem; 
  border-radius: 12px;
  border: 1px solid #88786B; 
  background: #ffffff; 
  color: #2F2C27;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid #88786B; 
  outline-offset: 2px;
}

.error { 
  color: #b91c1c; 
  min-height: 1em; 
}

.form-status { 
  margin-top: .75rem; 
  font-weight: 600; 
}

.form-note { 
  color: #88786B; 
  margin: 0; 
}



/* ========== FOOTER (combined CTA + meta) ========== */

.site-footer {
  background: #2F2C27;               /* dark woody tone */
  color: #ffffff;
  margin-top: 2rem;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-cta h2 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-cta p {
  margin: 0;
  opacity: .95;
}

.footer-meta {
  /* padding: .875rem 0; */
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  text-align: center;
}





/* ========== ACCESSIBILITY HELPERS ========== */

/* Visually hidden (used for honeypot fields or screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ========== RESPONSIVE DESIGN ========== */

/* --- Tablets (max-width: 960px) --- */
@media (max-width: 960px) {

  /* Stack grids nicely */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-cta a.btn {
    align-self: flex-end;
  }
}

/* --- Mobiles (max-width: 640px) --- */
@media (max-width: 640px) {

  /* Global layout spacing */
  .container {
    width: 92%;
  }

  /* Stack everything vertically */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  /* --- NAVIGATION --- */
  .nav-toggle {
    display: inline-block;
    padding: .5rem .7rem;
    border-radius: 8px;
    border: 1px solid #88786B;
    background: #D1C1B1;
    color: #2F2C27;
    cursor: pointer;
    font-size: 1.3rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #88786B;
  }

  .header-inner {
    position: relative;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: #ffffff;
    border-top: 1px solid #88786B;
    border-bottom: 1px solid #88786B;
    display: none !important;
    text-align: left;
  }

  .site-nav.open {
    display: block !important;
  }

  .site-nav ul {
    flex-direction: column;
    gap: .25rem;
    padding: .5rem .75rem 1rem;
  }

  .site-nav a {
    display: block;
    padding: .75rem 1rem;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: #D1C1B1;
  }

  /* --- HERO --- */
  .hero {
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  /* --- GALLERY --- */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* --- FOOTER --- */
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 0;
  }

  .footer-cta h2 {
    font-size: 1.25rem;
  }

  .footer-meta {
    font-size: 0.9rem;
  }
}

/* --- Large Desktops (min-width: 1200px) --- */
@media (min-width: 1200px) {
  .container {
    width: 85%;
    max-width: 1200px;
  }
}
