/* ===== The Oak Tree House — global polish (spacing, type, motion, mobile) ===== */

/* --- Title / kicker rhythm (works regardless of wrapper spacing) --- */
.oak-title{
  margin-bottom:.35rem !important;
  letter-spacing:-0.01em;
}
.oak-kicker{
  margin-top:.5rem !important;
  margin-bottom:1.5rem !important;
}
/* a touch more air below section intros before content */
.oak-intro-gap{ margin-bottom:1.75rem !important; }

/* --- Smooth settle animations --- */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
    will-change:opacity, transform;
  }
  .reveal.in{ opacity:1; transform:none; }

  .stagger > *{
    opacity:0;
    transform:translateY(24px);
    transition:opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  }
  .stagger.in > *{ opacity:1; transform:none; }
  .stagger.in > *:nth-child(1){ transition-delay:0s; }
  .stagger.in > *:nth-child(2){ transition-delay:.09s; }
  .stagger.in > *:nth-child(3){ transition-delay:.18s; }
  .stagger.in > *:nth-child(4){ transition-delay:.27s; }
  .stagger.in > *:nth-child(5){ transition-delay:.36s; }
  .stagger.in > *:nth-child(6){ transition-delay:.45s; }
}
@media (prefers-reduced-motion: reduce){
  .reveal, .stagger > *{ opacity:1 !important; transform:none !important; }
}

/* gentle lift on cards */
.oak-card-hover{ transition:transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease; }
.oak-card-hover:hover{ transform:translateY(-6px); }

/* smoother global link/button feel */
a, button{ transition:color .25s ease, background-color .25s ease, opacity .25s ease, transform .25s ease; }

/* --- Mobile optimisation --- */
@media (max-width:768px){
  .py-section-gap{ padding-top:64px !important; padding-bottom:64px !important; }
  .pt-section-gap{ padding-top:64px !important; }
  .pb-section-gap{ padding-bottom:64px !important; }
  section.py-24, section.py-20{ padding-top:56px !important; padding-bottom:56px !important; }

  /* keep big display type readable on phones */
  .oak-title{ font-size:30px !important; line-height:1.15 !important; }
  h1.text-display-lg-mobile, h1.font-display-lg-mobile{ font-size:32px !important; line-height:1.15 !important; }

  /* let tall feature images breathe less on mobile */
  .mobile-shrink{ height:320px !important; }

  h1, h2, h3, p{ overflow-wrap:break-word; }
}
@media (max-width:400px){
  .oak-title{ font-size:26px !important; }
}

/* ===== Modern mobile menu ===== */
.oak-burger{width:28px;height:20px;position:relative;background:none;border:0;padding:0;cursor:pointer;color:#574500;display:inline-block;}
.oak-burger span{position:absolute;left:0;height:2.5px;width:100%;background:currentColor;border-radius:3px;transition:transform .35s cubic-bezier(.22,.61,.36,1),opacity .2s ease,top .3s ease;}
.oak-burger span:nth-child(1){top:1px}
.oak-burger span:nth-child(2){top:9px}
.oak-burger span:nth-child(3){top:17px}

#oak-mobile-backdrop{position:fixed;inset:0;z-index:79;background:rgba(15,13,10,.5);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s ease;}
#oak-mobile-backdrop.open{opacity:1;visibility:visible;}
#oak-mobile-nav{position:fixed;top:0;right:0;bottom:0;left:auto;width:82vw;max-width:360px;
  z-index:80;display:flex;flex-direction:column;justify-content:space-between;
  background:#1a1712;color:#fff;overflow:hidden;
  padding:24px 26px 36px;transform:translateX(100%);box-shadow:-24px 0 60px -20px rgba(0,0,0,.6);
  transition:transform .5s cubic-bezier(.22,.61,.36,1);visibility:hidden;}
#oak-mobile-nav::before{content:"";position:absolute;inset:-12px;
  background:url('assets/photos/oaktree-08.jpg') center/cover no-repeat;
  filter:blur(9px) brightness(.42) saturate(.95);transform:scale(1.06);z-index:0;}
#oak-mobile-nav::after{content:"";position:absolute;inset:0;z-index:1;
  background:radial-gradient(120% 80% at 85% 0%, rgba(212,175,55,.16), transparent 55%),
             linear-gradient(160deg, rgba(18,16,12,.74) 0%, rgba(26,23,18,.86) 100%);}
#oak-mobile-nav > *{position:relative;z-index:2;}
#oak-mobile-nav.open{transform:none;visibility:visible;}
.omn-top{display:flex;align-items:center;justify-content:space-between;}
.omn-logo{height:46px;width:auto;}
.omn-close{background:none;border:0;color:#fff;cursor:pointer;line-height:0;}
.omn-close .material-symbols-outlined{font-size:34px;}
.omn-links{display:flex;flex-direction:column;gap:2px;margin:auto 0;}
.omn-links a{font-family:'Noto Serif',serif;font-size:34px;line-height:1.35;color:#fff;text-decoration:none;padding:6px 0;
  display:flex;align-items:center;gap:14px;opacity:0;transform:translateX(26px);
  transition:opacity .5s ease,transform .5s ease,color .25s ease;}
.omn-links a::before{content:"";width:0;height:1.5px;background:#d4af37;transition:width .3s ease;}
.omn-links a.active,.omn-links a:active{color:#d4af37;}
.omn-links a.active::before{width:22px;}
#oak-mobile-nav.open .omn-links a{opacity:1;transform:none;}
#oak-mobile-nav.open .omn-links a:nth-child(1){transition-delay:.10s}
#oak-mobile-nav.open .omn-links a:nth-child(2){transition-delay:.16s}
#oak-mobile-nav.open .omn-links a:nth-child(3){transition-delay:.22s}
#oak-mobile-nav.open .omn-links a:nth-child(4){transition-delay:.28s}
#oak-mobile-nav.open .omn-links a:nth-child(5){transition-delay:.34s}
.omn-foot{display:flex;flex-direction:column;gap:18px;}
.omn-wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff;text-decoration:none;
  padding:14px;border-radius:999px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:13px;}
.omn-social{display:flex;gap:12px;}
.omn-social a{width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:999px;
  display:flex;align-items:center;justify-content:center;color:#fff;transition:all .25s ease;}
.omn-social a:hover{background:#d4af37;color:#201d18;border-color:#d4af37;}
.omn-social svg{width:20px;height:20px;}
@media (min-width:768px){ #oak-mobile-nav,#oak-mobile-backdrop{display:none !important;} }
