/* =========================================================
   CHILOSA GARNISH CO. — COMPLETE STYLES
   Desktop + tablet + phone responsive
   ========================================================= */

:root{
  --green:#173f35;
  --green-dark:#102e27;
  --red:#b83a2e;
  --orange:#ef8b16;
  --yellow:#f6c84c;
  --cream:#fff8e9;
  --paper:#f7f0e3;
  --ink:#26342f;
  --white:#fff;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  margin:0;
  overflow-x:hidden;
  color:var(--ink);
  background:var(--paper);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
}

img{
  max-width:100%;
}

a{
  color:inherit;
}

header{
  position:sticky;
  top:0;
  z-index:100;
  min-height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:10px clamp(20px,5vw,72px);
  background:rgba(255,248,233,.96);
  border-bottom:3px solid var(--green);
  box-shadow:0 4px 18px rgba(23,63,53,.08);
}

header .logo{
  width:300px;
  height:118px;
  display:block;
  flex:0 0 300px;
}

header .logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:left center;
}

nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px 24px;
}

nav a{
  text-decoration:none;
  font-weight:800;
  padding:10px 4px;
  transition:.2s ease;
}

nav a:hover{
  color:var(--red);
  transform:translateY(-2px);
}

main{
  width:100%;
}

section{
  padding:clamp(60px,8vw,110px) clamp(20px,7vw,100px);
}

.eyebrow{
  margin:0 0 14px;
  color:var(--red);
  font-weight:950;
  font-size:1.5rem;
  line-height:1.15;
  letter-spacing:.12em;
}

h1,h2,h3{
  font-family:Arial,Helvetica,sans-serif;
}

h1{
  margin:.05em 0 .25em;
  color:var(--green);
  font-size:clamp(3rem,6vw,6.2rem);
  line-height:.95;
  letter-spacing:-.045em;
}

h2{
  margin:.1em 0 .35em;
  color:var(--green);
  font-size:clamp(2.3rem,4.5vw,4.5rem);
  line-height:1;
  letter-spacing:-.035em;
}

h3{
  color:var(--green);
}

p{
  max-width:760px;
}

/* HERO */
.hero{
  min-height:650px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(35px,6vw,90px);
  padding-top:clamp(48px,7vw,90px);
  padding-bottom:clamp(48px,7vw,90px);
  background:
    radial-gradient(circle at 10% 20%,rgba(246,200,76,.2),transparent 28%),
    linear-gradient(135deg,#fffaf0,#f5e7ca);
}

.hero-photo{
  height:500px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:4px solid var(--green);
  border-radius:28px;
  background:#ded2bd;
  transform:none;
  box-shadow:14px 16px 0 rgba(184,58,46,.18);
}

.hero-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}

.hero-copy .eyebrow{
  font-size:1.55rem;
}

.hero-copy>p:not(.eyebrow){
  font-size:1.18rem;
  max-width:620px;
}

.buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.buttons a{
  display:inline-block;
  min-height:46px;
  padding:13px 22px;
  border-radius:999px;
  background:var(--red);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 5px 0 rgba(23,63,53,.18);
  transition:.2s ease;
}

.buttons a:hover{
  transform:translateY(-3px);
}

.buttons a.outline{
  color:var(--green);
  background:transparent;
  border:2px solid var(--green);
}

/* PERSONALITY — WIDE IMAGE WITH FULL HEAD / LOGO VISIBLE */
.personality-section{
  position:relative;
  min-height:560px;
  height:560px;
  width:100%;
  padding:0;
  overflow:hidden;
  isolation:isolate;
  color:#fff;
  background:#151515 url("images/chilosa-personality-hero.png") center top / 100% auto no-repeat;
}

.personality-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(
      180deg,
      rgba(8,16,8,0) 0%,
      rgba(8,16,8,0) 50%,
      rgba(8,16,8,.08) 62%,
      rgba(8,16,8,.54) 80%,
      rgba(8,16,8,.84) 100%
    );
}

.personality-content{
  position:relative;
  z-index:2;
  width:min(1180px,94%);
  margin:0 auto;
  padding:18px 28px 20px;
  text-align:center;
}

.personality-content h2{
  display:inline;
  margin:0;
  padding:3px 8px 4px;
  color:#fff;
  font-size:clamp(1.9rem,3.8vw,3.55rem);
  line-height:1.02;
  letter-spacing:-.035em;
  text-shadow:0 2px 4px rgba(0,0,0,.95),0 4px 18px rgba(0,0,0,.72);
  background:rgba(8,16,8,.22);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.personality-clues{
  width:min(1000px,100%);
  margin:13px auto;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 14px;
}

.personality-clues h3{
  margin:0;
  padding:5px 10px;
  color:#fff;
  font-size:.96rem;
  line-height:1.28;
  font-weight:800;
  text-shadow:0 2px 4px rgba(0,0,0,.98),0 3px 12px rgba(0,0,0,.75);
  background:rgba(8,16,8,.25);
  border-left:3px solid var(--red);
  backdrop-filter:blur(1.5px);
}

.personality-button{
  display:inline-block;
  min-height:42px;
  padding:10px 20px;
  border-radius:999px;
  background:var(--red);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 7px 20px rgba(0,0,0,.35);
  transition:.2s ease;
}

.personality-button:hover{transform:translateY(-2px);}

@media (max-width:900px){
  .personality-section{
    min-height:520px;
    height:520px;
    background-size:auto 520px;
    background-position:center top;
  }

  .personality-content{
    width:95%;
    padding:16px 20px 18px;
  }
}

@media (max-width:600px){
  .personality-section{
    min-height:500px;
    height:500px;
    background-size:auto 500px;
    background-position:center top;
  }

  .personality-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(8,16,8,0) 0%,
        rgba(8,16,8,.02) 42%,
        rgba(8,16,8,.14) 57%,
        rgba(8,16,8,.66) 78%,
        rgba(8,16,8,.94) 100%
      );
  }

  .personality-content{
    width:94%;
    padding:14px 8px 17px;
  }

  .personality-content h2{
    font-size:clamp(1.72rem,8.5vw,2.65rem);
    line-height:1.02;
  }

  .personality-clues{
    display:grid;
    gap:5px;
    margin:11px auto;
  }

  .personality-clues h3{
    padding:5px 8px;
    font-size:.88rem;
    line-height:1.25;
  }

  .personality-button{
    min-height:42px;
    padding:10px 18px;
  }
}

@media (max-width:380px){
  .personality-section{
    min-height:480px;
    height:480px;
    background-size:auto 480px;
  }

  .personality-content h2{font-size:1.65rem;}
  .personality-clues h3{font-size:.84rem;}
}

/* ABOUT */
#about{
  background:var(--cream);
}

#about>p:not(.eyebrow){
  font-size:1.15rem;
}

/* PRODUCTS */
#flavors{
  background:linear-gradient(180deg,#fff8e9 0%,#f7f0e3 100%);
}

.section-kicker{
  display:flex;
  align-items:center;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:34px;
}

.cards article{
  min-width:0;
  padding-bottom:22px;
  overflow:hidden;
  background:#fffaf0;
  border:2px solid rgba(23,63,53,.12);
  border-radius:24px;
  box-shadow:0 10px 24px rgba(23,63,53,.09);
  transition:.2s ease;
}

.cards article:hover{
  transform:translateY(-7px);
  box-shadow:0 18px 34px rgba(23,63,53,.14);
}

.cards article h3,
.cards article p{
  margin-left:20px;
  margin-right:20px;
}

.cards article h3{
  margin-top:20px;
  margin-bottom:7px;
  font-size:1.5rem;
}

.product-image{
  height:280px;
  padding:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ded2bd;
  border-bottom:3px solid var(--orange);
}

.product-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}

/* MORE CHILOSA */
.dark{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg,var(--green),#245c45);
}

.dark .eyebrow{
  color:var(--yellow);
}

.dark h2{
  color:#fff;
  max-width:900px;
}

/* CONTACT */
.contact{
  background:var(--cream);
}

.social{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.social a{
  display:inline-block;
  min-height:44px;
  padding:11px 16px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  transition:.2s ease;
}

.social a:hover{
  background:var(--red);
  transform:translateY(-2px);
}

/* FOOTER */
footer{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
  padding:28px 20px;
  background:var(--green-dark);
  color:#fff;
  text-align:center;
}

footer img{
  width:190px;
  height:78px;
  display:block;
  object-fit:contain;
  background:#fff;
  border-radius:8px;
  padding:4px;
}

/* TABLET */
@media (max-width:900px){
  header{
    min-height:auto;
    padding:10px 20px;
    gap:15px;
  }

  header .logo{
    width:230px;
    height:92px;
    flex-basis:230px;
  }

  nav{
    gap:4px 12px;
  }

  nav a{
    font-size:.92rem;
  }

  .hero{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .hero-photo{
    height:430px;
    max-width:760px;
    width:100%;
    margin:auto;
  }

  .hero-copy{
    max-width:760px;
    margin:auto;
  }

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

  .personality-section,
  .personality-overlay{
    min-height:680px;
  }

  .personality-content{
    margin-left:6vw;
  }
}

/* PHONE */
@media (max-width:600px){
  header{
    position:relative;
    flex-direction:column;
    align-items:center;
    padding:8px 14px 12px;
  }

  header .logo{
    width:220px;
    height:86px;
    flex-basis:auto;
  }

  nav{
    width:100%;
    justify-content:center;
    gap:2px 10px;
  }

  nav a{
    min-height:44px;
    display:flex;
    align-items:center;
    font-size:.86rem;
  }

  section{
    padding:52px 20px;
  }

  .eyebrow{
    font-size:1.15rem;
  }

  .hero{
    padding:38px 20px 48px;
    gap:30px;
    background:
      radial-gradient(circle at 10% 20%,rgba(246,200,76,.2),transparent 32%),
      linear-gradient(135deg,#fffaf0,#f5e7ca);
  }

  .hero-photo{
    height:330px;
    border-radius:20px;
    box-shadow:8px 9px 0 rgba(184,58,46,.18);
  }

  h1{
    font-size:clamp(2.45rem,12vw,3.5rem);
  }

  h2{
    font-size:clamp(2rem,10vw,3rem);
  }

  .hero-copy .eyebrow{
    font-size:1.12rem;
  }

  .hero-copy>p:not(.eyebrow){
    font-size:1.03rem;
  }

  .buttons{
    display:grid;
    grid-template-columns:1fr;
  }

  .buttons a{
    width:100%;
    text-align:center;
  }

  .personality-section{
    min-height:0;
    background-position:center top;
  }

  .personality-overlay{
    min-height:0;
    align-items:flex-end;
    background:
      linear-gradient(180deg,
        rgba(8,16,8,.10) 0%,
        rgba(8,16,8,.34) 28%,
        rgba(8,16,8,.88) 65%,
        rgba(8,16,8,.98) 100%);
  }

  .personality-content{
    width:min(91%,560px);
    margin:0 auto;
    padding:44px 0 48px;
  }

  .personality-kicker{
    font-size:.74rem;
    letter-spacing:.12em;
  }

  .personality-content h2{
    font-size:clamp(2rem,10.5vw,3.2rem);
  }

  .personality-lead{
    font-size:1rem;
  }

  .clue{
    grid-template-columns:42px 1fr;
    gap:10px;
    padding:13px 14px;
  }

  .clue h3{
    font-size:1rem;
  }

  .clue p{
    font-size:.93rem;
  }

  .personality-button{
    width:100%;
    text-align:center;
  }

  .cards{
    grid-template-columns:1fr;
    gap:20px;
  }

  .product-image{
    height:auto;
    min-height:260px;
  }

  .social{
    display:grid;
    grid-template-columns:1fr;
  }

  .social a{
    text-align:center;
  }

  footer{
    flex-direction:column;
  }

  footer img{
    width:155px;
    height:66px;
  }
}

/* VERY SMALL PHONES */
@media (max-width:380px){
  header .logo{
    width:185px;
    height:74px;
  }

  nav{
    gap:0 7px;
  }

  nav a{
    font-size:.78rem;
  }

  .hero-photo{
    height:285px;
  }

  h1{
    font-size:2.2rem;
  }
}
