/* ===========================================================
   Pata Salada Dog Training — stylesheet
   Palette: sand, ocean blue, white, green (warm, minimal, golden-hour)
   =========================================================== */

:root{
  --sand:        #f4ede1;
  --sand-dark:   #e7d9c3;
  --ocean:       #2f5d68;
  --ocean-light: #4d8896;
  --green:       #5c7a52;
  --green-light: #7f9e6f;
  --ink:         #2b2521;
  --ink-soft:    #5a5049;
  --white:       #ffffff;
  --cream:       #fbf8f3;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(43,37,33,.08);
  --shadow-lg: 0 20px 50px rgba(43,37,33,.16);

  --font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 90px; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--font-head); font-weight: 600; line-height:1.15; margin:0 0 .5em; color: var(--ink); }
p{ margin:0 0 1em; color: var(--ink-soft); }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width: var(--maxw); margin:0 auto; padding:0 24px; }
.container-narrow{ max-width: 780px; }

.section{ padding: 96px 0; position: relative; }

.section-logo{
  position:absolute; top:90px; right:28px; width:110px; height:110px;
  object-fit:contain; opacity:.5; z-index:1; pointer-events:none;
}
.hero-logo{
  position:absolute; top:104px; right:40px; width:160px; height:160px;
  object-fit:contain; z-index:2; pointer-events:none;
  background: rgba(251,248,243,.85); border-radius:50%; box-shadow: 0 6px 20px rgba(0,0,0,.15);
  padding:10px; box-sizing:border-box;
}
.section-tinted{ background: var(--sand); }
.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head.centered{ margin-left:auto; margin-right:auto; text-align:center; }
.section-intro{ font-size: 1.08rem; }

.eyebrow{
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin: 0 0 .8em;
}
.eyebrow-light{ color: var(--sand); opacity:.95; }

h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent; text-align: center; max-width: 100%;
}
.btn-primary{ background: var(--green); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #4e6a45; }
.btn-outline{ border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn-outline:hover{ background: var(--ocean); color: var(--white); }
.btn-sm{ padding: 10px 22px; font-size: .88rem; }
.header-wa-icon{ display:none; width:16px; height:16px; }
.btn-lg{ padding: 18px 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,248,243,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43,37,33,.06);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 10px 24px; gap: 20px; }
.brand-logo{ height: 54px; width:auto; }
.main-nav{ display:flex; gap: 20px; flex:1; justify-content:center; flex-wrap: nowrap; }
.main-nav a{ font-size:.9rem; font-weight:600; color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
.main-nav a:hover{ color: var(--green); }
.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-switcher{ position:relative; flex-shrink:0; }
.lang-toggle{
  display:flex; align-items:center; gap:6px;
  background:none; border: 1px solid var(--ink-soft); border-radius: 999px;
  padding: 6px 14px; font-size:.82rem; font-weight:700; letter-spacing:.03em; color: var(--ink-soft);
  white-space: nowrap; flex-shrink: 0;
}
.lang-caret{ width:10px; height:10px; transition: transform .15s ease; flex-shrink:0; }
.lang-switcher.open .lang-caret{ transform: rotate(180deg); }
.lang-menu{
  display:none; position:absolute; top: calc(100% + 8px); right:0; min-width:140px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); padding:6px;
  flex-direction:column; z-index: 50;
}
.lang-switcher.open .lang-menu{ display:flex; }
.lang-option{
  background:none; border:none; text-align:left; padding:9px 12px; border-radius:8px;
  font-size:.88rem; font-weight:600; color: var(--ink-soft); cursor:pointer;
}
.lang-option:hover{ background: var(--sand); color: var(--ink); }
.lang-option.lang-active{ color: var(--green); }
.header-social{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.header-social a{
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border: 1.5px solid var(--ink-soft); color: var(--ink-soft); transition: background .15s, color .15s, transform .15s;
  flex-shrink:0;
}
.header-social a svg{ width:16px; height:16px; }
.header-social a:hover{ background: var(--green); border-color: var(--green); color: var(--white); transform: translateY(-1px); }
.menu-toggle{ display:none; background:none; border:none; flex-direction:column; gap:5px; padding:6px; }
.menu-toggle span{ width:24px; height:2px; background: var(--ink); display:block; border-radius:2px; }

/* ---------- Hero ---------- */
.hero{ position: relative; min-height: 100vh; display:flex; align-items:flex-end; overflow:hidden; background: #1f1a16; }
.hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; object-position: center 67%; }
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(20,17,14,.7) 0%, rgba(20,17,14,.4) 32%, rgba(20,17,14,.05) 58%, transparent 75%),
    linear-gradient(180deg, rgba(43,37,33,.05) 0%, rgba(43,37,33,.15) 45%, rgba(31,27,22,.8) 100%);
}
.hero-content{ position:relative; color: var(--white); padding-bottom: 90px; padding-top: 200px; }
.hero h1{ color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; margin-bottom:.4em; }
.hero-sub{ color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 560px; margin-bottom: 2em; }
.hero-ctas{ display:flex; align-items:center; gap: 24px; flex-wrap: wrap; }
.social-links{ display:flex; gap:12px; }
.social-link{
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border: 1.5px solid rgba(255,255,255,.6); color: var(--white); transition: background .15s, transform .15s;
}
.social-link:hover{ background: rgba(255,255,255,.15); transform: translateY(-2px); }
.social-link svg{ width:20px; height:20px; }
.scroll-cue{
  position:absolute; bottom: 22px; left:50%; transform: translateX(-50%);
  color: var(--white); font-size: 1.4rem; opacity:.8; animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items:center; }
.about-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-credentials{ font-size:.92rem; color: var(--ocean); font-style: italic; }

/* ---------- Philosophy ---------- */
.philosophy-layout{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items:start; }
.philosophy-points{ display:flex; flex-direction:column; gap: 28px; }
.point{ display:flex; gap: 18px; align-items:flex-start; }
.point-icon{ font-size: 1.6rem; line-height:1; flex-shrink:0; margin-top:.1em; }
.point h3{ font-size: 1.15rem; margin-bottom:.2em; }
.point p{ margin:0; font-size: .96rem; }
.philosophy-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Problems ---------- */
.problems-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-card{
  background: var(--white); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border-left: 4px solid var(--green-light);
}
.problem-card h3{ font-size: 1.08rem; margin-bottom:.35em; }
.problem-card p{ font-size:.93rem; margin:0; }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px; }
.service-card{
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow); display:flex; flex-direction:column; gap: 10px;
}
.service-card h3{ font-size:1.25rem; }
.service-for{ font-size:.9rem; color: var(--ocean); font-weight:600; margin-bottom:0; }
.service-outcome{ font-size:.92rem; margin-bottom: 16px; }
.service-card .btn{ margin-top:auto; align-self:flex-start; }

/* ---------- Why ---------- */
.why-section{ position:relative; overflow:hidden; }
.why-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: center 25%; }
.why-scrim{ position:absolute; inset:0; background: linear-gradient(120deg, rgba(31,45,45,.88) 0%, rgba(31,45,45,.55) 60%, rgba(31,45,45,.3) 100%); }
.why-content{ position:relative; color: var(--white); max-width: 900px; }
.why-content h2{ color: var(--white); }
.why-content .section-intro{ color: rgba(255,255,255,.88); }
.why-points{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px 40px; margin-top: 12px; }
.why-section .point h3{ color: var(--white); }
.why-section .point p{ color: rgba(255,255,255,.8); }
.why-tagline{ margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.why-tagline-brand{ font-family: var(--font-head); font-size: 1.3rem; color: var(--white); margin: 0 0 .2em; }
.why-tagline-sub{ font-style: italic; color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Stories ---------- */
.stories-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stories-grid-2{ grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.story-card{ background: var(--white); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); }
.story-card img{ width:100%; height: 260px; object-fit: cover; object-position: top center; }
.story-card h3, .story-card p{ padding: 0 22px; }
.story-card h3{ margin-top: 18px; font-size:1.1rem; }
.story-card p{ font-size:.92rem; margin:0; white-space: pre-line; }
.story-text{ position:relative; max-height: 128px; overflow:hidden; transition: max-height .35s ease; }
.story-text::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:44px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white) 100%);
  transition: opacity .2s ease;
}
.story-text.expanded{ max-height: 2000px; }
.story-text.expanded::after{ opacity:0; }
.story-toggle{
  display:block; background:none; border:none; color: var(--green); font-weight:700; font-size:.88rem;
  padding: 12px 22px 22px; cursor:pointer;
}
.story-toggle:hover{ text-decoration: underline; }

/* ---------- Resources ---------- */
.resources-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.resource-card{
  background: var(--white); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow); display:flex; flex-direction:column; gap: 12px; justify-content:space-between;
}
.resource-card h3{ font-size: 1.02rem; margin:0; }
.tag{
  align-self:flex-start; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700;
  color: var(--ocean); background: var(--sand); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img{ width:100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.gallery-grid img:hover{ transform: scale(1.03); opacity:.9; }
.gallery-cta{ text-align:center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap: 12px; }
.faq-item{ background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; }
.faq-question{
  width:100%; text-align:left; background:none; border:none; padding: 20px 24px;
  font-size: 1.02rem; font-weight:700; color: var(--ink); display:flex; justify-content:space-between; align-items:center;
}
.faq-question::after{ content:"+"; font-size:1.4rem; color: var(--green); font-weight:400; margin-left: 16px; transition: transform .2s; }
.faq-item.open .faq-question::after{ transform: rotate(45deg); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-answer p{ padding: 0 24px 20px; margin:0; font-size:.96rem; }
.faq-item.open .faq-answer{ max-height: 300px; }

/* ---------- Shop ---------- */
.shop-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.shop-card{ background: var(--white); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); display:flex; flex-direction:column; }
.shop-card img{ width:100%; height:320px; object-fit:contain; background: var(--sand); padding: 20px; box-sizing:border-box; }
.shop-card h3, .shop-card p{ padding: 0 22px; }
.shop-card h3{ margin-top:18px; font-size:1.1rem; }
.shop-card p{ font-size:.9rem; }
.shop-card .btn{ margin: 6px 22px 24px; align-self:flex-start; }

/* ---------- Contact ---------- */
.contact-section{ background: var(--ocean); color: var(--white); text-align:center; }
.contact-inner{ max-width: 620px; }
.contact-section .eyebrow{ color: var(--sand); }
.contact-section h2{ color: var(--white); }
.contact-section .section-intro{ color: rgba(255,255,255,.88); }
.contact-meta{ margin-top: 40px; display:flex; flex-direction:column; align-items:center; gap: 18px; font-size:.92rem; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.75); text-align:center; padding: 56px 0 36px; }
.footer-logo{ height: 60px; margin: 0 auto 18px; opacity:.95; }
.footer-tagline{ font-family: var(--font-head); font-size:1.1rem; color: var(--white); margin-bottom: 6px; }
.footer-seoline{ font-size:.82rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.footer-rights{ font-size:.82rem; margin:0; }
.footer-credit{ font-size:.78rem; margin: 8px 0 0; color: rgba(255,255,255,.55); }
.footer-credit a{ color: rgba(255,255,255,.75); text-decoration: underline; }
.footer-credit a:hover{ color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset:0; background: rgba(20,17,14,.92); display:none;
  align-items:center; justify-content:center; z-index: 1000; padding: 40px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top: 22px; right: 28px; background:none; border:none; color:var(--white);
  font-size: 2.4rem; line-height:1; opacity:.8;
}
.lightbox-close:hover{ opacity:1; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px){
  .about-grid, .philosophy-layout{ grid-template-columns: 1fr; }
  .about-media, .philosophy-media{ order:-1; }
  .stories-grid{ grid-template-columns: 1fr 1fr; }
  .problems-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(4,1fr); }
  .why-points{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .main-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex; position:absolute; top:100%; left:0; right:0; background: var(--cream);
    flex-direction:column; padding: 20px 24px; gap:16px; box-shadow: var(--shadow);
  }
  .header-actions .header-wa{
    width:32px; height:32px; padding:0; border-radius:50%;
    background: var(--green); box-shadow:none; flex-shrink:0;
  }
  .header-actions .header-wa .header-wa-icon{ display:block; flex-shrink:0; }
  .header-actions .header-wa .header-wa-text{ display:none; }
  .section{ padding: 64px 0; }
  .stories-grid, .problems-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-content{ padding-top: 140px; }
  .hero h1{ font-size: 1.7rem; }
  .hero-ctas{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .btn{ font-size: .92rem; padding: 14px 24px; }
  .hero-logo{ width:80px; height:80px; top:88px; right:20px; }
  .section-logo{ width:70px; height:70px; top:82px; right:18px; }
  #about .section-logo{ right:38px; }
  #gallery .section-logo, #faq .section-logo,
  #shop .section-logo, #resources .section-logo, #stories .section-logo,
  #contact .section-logo{
    position: static; display:block; width:70px; height:70px;
    margin: 0 24px 14px auto;
  }
}

@media (max-width: 480px){
  .hero-logo{ width:64px; height:64px; top:80px; right:16px; }
  .section-logo{ width:56px; height:56px; top:78px; right:14px; }
  #about .section-logo{ right:34px; }
  #gallery .section-logo, #faq .section-logo,
  #shop .section-logo, #resources .section-logo, #stories .section-logo,
  #contact .section-logo{
    width:56px; height:56px; margin: 0 24px 12px auto;
  }
}
