/* DHYAI – Boutique website build */

:root{
  --bg:#fffbef;
  --box:#d9d5cb;
  --heading:#322203;
  --body:#5c3a05;
  --emph:#9e6821;

  --max:1100px;
  --gap-desktop:160px;
  --gap-mobile:100px;

  --box-pad-t:80px;
  --box-pad-b:80px;
  --box-pad-l:90px;
  --box-pad-r:90px;

  --box-pad-t-m:50px;
  --box-pad-b-m:50px;
  --box-pad-l-m:30px;
  --box-pad-r-m:30px;

  --space-h-to-body:40px;
  --space-p-to-p:28px;
  --space-body-to-end:40px;

  --hero-h:64px;
  --section-h:48px;
  --body-size:20px;

  --hero-h-m:36px;
  --section-h-m:32px;
  --body-size-m:18px;

  --side-pad-m:24px;

  --header-h:110px;
  --header-h-m:86px;
}
.form button {
  appearance: none;
  border: 1px solid #b2742d;
  background: transparent;
  color: #b2742d;
  padding: 12px 32px;
  font-family: 'Tenor Sans', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.form button:hover {
  background: #b2742d;
  color: #fff;
}


.required {
  color: #c0392b;
}

.field input.error,
.field textarea.error {
  border: 2px solid #c0392b;
  background: #fff5f5;
}

.error-message {
  color: #c0392b;
  font-size: 0.85rem;
  height: 16px;
  display: block;
  margin-top: 4px;
}

*{ box-sizing:border-box; }
html{ font-size:16px; scroll-behavior:smooth; }
body{
  margin:0;
  padding-top:var(--header-h);
  font-family: "Tenor Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--body);
  background-color:var(--bg);
  background-image:url("../images/hero-texture.jpg");
  background-repeat:repeat;
  background-size:1400px auto;
  line-height:1.75;
  letter-spacing:normal;
}
body.home{ padding-top:0; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--emph);
  outline-offset:3px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  background:var(--box);
  color:var(--heading);
  padding:10px 14px;
  z-index:1000;
}
.skip-link:focus{ left:12px; }

.container{
  max-width:var(--max);
  margin:0 auto;
}

.section{
  margin-top:var(--gap-desktop);
}
.section:first-of-type{ margin-top:0; }

.content-box{
  background:var(--box);
  padding:var(--box-pad-t) var(--box-pad-r) var(--box-pad-b) var(--box-pad-l);
}
.content-box h2{
  margin:0 0 var(--space-h-to-body) 0;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:var(--section-h);
  line-height:1.2;
  color:var(--heading);
}
.content-box p{
  margin:0 0 var(--space-p-to-p) 0;
  font-size:var(--body-size);
}
.content-box p:last-of-type{ margin-bottom:0; }
.end-statement{
  margin-top:var(--space-body-to-end);
  color:var(--emph);
}

.fade-section{
  opacity:0;
  transition:opacity 0.3s ease;
}
.fade-section.is-visible{ opacity:1; }

/* Header / navigation */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  background:transparent;
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:44px;
}
.brand img{
  width:150px;
  height:auto;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  font-size:16px;
}
.nav-links a[aria-current="page"]{
  color:var(--emph);
}
.nav-toggle{
  display:none;
  font:inherit;
  color:var(--heading);
  background:transparent;
  border:0;
  padding:10px 0;
  cursor:pointer;
}

/* Hero */
.hero{
  height:100vh;
  position:relative;
  background-image:url("../images/hero-texture.jpg");
  background-size:cover;
  background-position:center;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.15);
}
.hero-inner{
  position:relative;
  height:100%;
}
.hero-title{
  position:absolute;
  left:50%;
  top:55%;
  transform:translate(-50%,-50%);
  max-width:720px;
  text-align:center;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:var(--hero-h);
  line-height:1.2;
  color:var(--heading);
  padding:0 24px;
  margin:0;
}

/* Page title (non-home) */
.page-title{
  margin:50px 0 0 0;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:56px;
  line-height:1.15;
  color:var(--heading);
  text-align:left;
}
.page-intro{
  margin:24px 0 0 0;
  font-size:var(--body-size);
}

/* Media blocks (contained images) */
.media{
  margin-top:120px;
}
.media--contained{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.media--contained img{
  width:100%;
  height:auto;
}

/* Lookbook / stacked images */
.stacked{
  display:flex;
  flex-direction:column;
  gap:120px;
}
.stacked .stack-item{
  width:770px;
  max-width:100%;
  margin:0 auto;
}

/* Products grid */
.products-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:34px;
}
.product-card{
  background:var(--box);
  padding:24px;
}
.product-card .imgwrap{
  background:var(--bg);
  padding:18px;
  height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-card .imgwrap img{
  max-height:100%;
  width:auto;
  height:auto;
}
.product-card h3{
  margin:22px 0 10px 0;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:30px;
  line-height:1.2;
  color:var(--heading);
}
.product-card p{
  margin:0;
  font-size:16px;
}

/* Product detail */
.product-detail{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:50px;
  align-items:start;
}
.product-gallery{
  background:var(--box);
  padding:24px;
}
.product-gallery .main{
  background:var(--bg);
  padding:18px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:420px;
}
.product-gallery .thumbs{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.product-gallery .thumbs button{
  border:0;
  background:var(--bg);
  padding:10px;
  cursor:pointer;
}
.product-gallery .thumbs img{
  width:110px;
  height:80px;
  object-fit:cover;
  display:block;
}
.product-meta{
  background:var(--box);
  padding:32px;
}
.product-meta h1{
  margin:0 0 18px 0;
  font-family:"Prata", Georgia, serif;
  font-weight:400;
  font-size:44px;
  line-height:1.15;
  color:var(--heading);
}

/* Home page about box (boutique centered typography) */
.home-about{ text-align:center; }
.home-about h2{ text-align:center; }
.meta-line{
  margin:0 0 14px 0;
  font-size:16px;
}
.meta-line strong{
  font-weight:400;
  color:var(--heading);
}
.meta-list{
  margin:20px 0 0 0;
  padding:0;
  list-style:none;
}
.meta-list li{
  margin:0 0 8px 0;
  font-size:16px;
}
.cta{
  margin-top:26px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cta a{
  background:var(--bg);
  padding:14px 16px;
  display:block;
  color:var(--heading);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap:40px;
}
.contact-links{
  font-size:var(--body-size);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.form{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.field label{
  display:block;
  margin:0 0 8px 0;
  font-size:16px;
  color:var(--heading);
}
.field input, .field textarea{
  width:100%;
  background:var(--bg);
  border:0;
  padding:16px 16px;
  font:inherit;
  color:var(--body);
}
.field textarea{ min-height:140px; resize:vertical; }


/* Footer */
.footer{
  margin-top:var(--gap-desktop);
  padding:40px 0 60px 0;
  color:var(--body);
  font-size:14px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}
.footer-contact{
  margin-top:8px;
  font-size:14px;
}
.footer-social{
  display:flex;
  align-items:center;
  gap:14px;
}
.footer-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
}
.footer-social svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}
.footer-social svg path,
.footer-social svg rect,
.footer-social svg circle{
  vector-effect: non-scaling-stroke;
}
.small-note{ color:var(--emph); }

/* Responsive (mobile reference 390px) */
@media (max-width: 820px){
  body{ background-size:900px auto; padding-top:var(--header-h-m); }
  body.home{ padding-top:0; }
  .navbar{ padding:18px var(--side-pad-m); }
  .container{ padding:0 var(--side-pad-m); }
  .brand img{ width:120px; }
  .nav-toggle{ display:block; }
  .nav-links{
    display:none;
    flex-direction:column;
    background:var(--bg);
    align-items:flex-start;
    gap:18px;
    padding-bottom:18px;
  }
  .nav-links[data-open="true"]{ display:flex; }
  .hero-title{
    font-size:var(--hero-h-m);
    line-height:1.25;
    width:90%;
  }

  .section{ margin-top:var(--gap-mobile); }
  .content-box{
    padding:var(--box-pad-t-m) var(--box-pad-r-m) var(--box-pad-b-m) var(--box-pad-l-m);
  }
  .content-box h2{ font-size:var(--section-h-m); }
  .content-box p{ font-size:var(--body-size-m); }

  .page-title{
    font-size:40px;
    margin-top:30px;
  }
  .page-intro{ font-size:var(--body-size-m); }

  .stacked{ gap:60px; }
  .stacked .stack-item{ width:100%; }

  .products-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .product-detail{
    grid-template-columns:1fr;
    gap:24px;
  }
  .contact-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
}
