/* =========================================================
   Flo's Furniture Co. — styles
   Palette: warm rustic wood tones
   ========================================================= */

:root{
  --bg:        #FBF6EC;   /* pale warm sand — much lighter than before */
  --bg-card:   #FFFFFF;   /* clean white card surface */
  --ink:       #3D2E22;   /* slightly deeper brown for better contrast on lighter bg */
  --ink-soft:  #8D7F71;   /* softened warm grey-brown for secondary text */
  --accent:    #99633C;   /* logo's ink brown, unchanged — brand identity */
  --accent-dk: #7C4E2E;   /* hover state */
  --sage:      #8A9A7C;   /* muted sage — small secondary accent only */
  --line:      #EDE4CF;   /* very light warm hairline */
  --line-soft: #F1EADB;   /* even lighter for subtle separators */
  --dark:      #2E241B;   /* footer / dark band */
  --cream:     #FBF6EC;
  --radius:    4px;
  --max:       1120px;
}

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

h1,h2,h3{
  font-family:'Fraunces', Georgia, serif;
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--ink);
}

h1{ font-size:clamp(1.8rem, 5vw, 3.6rem); font-optical-sizing:auto; overflow-wrap:break-word; }
h2{ font-size:clamp(1.4rem, 3.2vw, 2.4rem); overflow-wrap:break-word; }
h3{ font-size:1.15rem; font-weight:600; overflow-wrap:break-word; }

p{ margin:0 0 1em; color:var(--ink-soft); }

a{ color:var(--accent); text-decoration:none; }
a:hover{ color:var(--accent-dk); }

.eyebrow{
  display:inline-block;
  font-family:'Inter', sans-serif;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:1em;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
}

button, .btn{
  font-family:'Inter', sans-serif;
  cursor:pointer;
}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:var(--radius);
  font-size:.92rem;
  font-weight:600;
  letter-spacing:.01em;
  border:1px solid transparent;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary{
  background:var(--accent);
  color:#FBF5E9;
}
.btn-primary:hover{ background:var(--accent-dk); color:#FBF5E9; }

.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--line);
}
.btn-ghost:hover{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

.btn-sage{
  background:var(--sage);
  color:#FBF5E9;
  border-color:var(--sage);
}
.btn-sage:hover{ background:#748263; border-color:#748263; color:#FBF5E9; }

/* ---------- Nav ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(251,246,236,.9);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  max-width:var(--max);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--ink);
}
.brand-mark-icon{ flex-shrink:0; }
.brand-logo{ padding:2px 0; }
.brand-logo-img{
  height:84px;
  width:84px;
  object-fit:cover;
  border-radius:50%;
  display:block;
}
.brand:hover{ color:var(--ink); }
.brand .mark{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-weight:600;
  font-size:1.4rem;
}
.brand .sub{
  font-size:.62rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--sage);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  color:var(--ink-soft);
  font-size:.92rem;
  font-weight:500;
}
.nav-links a.active,
.nav-links a:hover{ color:var(--ink); }
.nav-cta{ display:flex; align-items:center; gap:18px; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  padding:6px;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:var(--ink);
  margin:5px 0;
  transition:transform .2s ease, opacity .2s ease;
}

@media (max-width: 820px){
  .brand-logo-img{ height:60px; width:60px; }
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    background:var(--bg-card);
    border-bottom:1px solid var(--line);
    padding:12px 24px 20px;
    gap:16px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-cta .btn-ghost, .nav-cta .btn-sage{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------- Ruler divider (subtle horizon line) ---------- */
.ruler{
  display:flex;
  align-items:flex-end;
  height:14px;
  gap:0;
  overflow:hidden;
  margin:0 auto;
  max-width:var(--max);
  padding:0 24px;
}
.tick{
  flex:1 0 auto;
  width:1px;
  height:5px;
  background:var(--line);
  margin-right:13px;
  opacity:.7;
}
.tick.major{ height:9px; background:var(--line); opacity:1; }
.ruler-section{ padding:2px 0; }

/* ---------- Hero (intro text + scrolling marquee of portrait photos) ---------- */
.hero-marquee-section{
  padding-top:88px;
  padding-bottom:96px;
  --marquee-item-w:260px;
  --marquee-gap:20px;
  --marquee-count:5;
}
.hero-intro{
  max-width:640px;
  margin-bottom:64px;
}
.hero-intro .lead{
  font-size:1.15rem;
  max-width:52ch;
  color:var(--ink-soft);
  margin-bottom:32px;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
}

.hero-marquee{
  overflow:hidden;
  position:relative;
  width:100%;
}
/* Edge fades using pseudo-elements — smoother on iOS than mask-image */
.hero-marquee::before,
.hero-marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:60px;
  z-index:2;
  pointer-events:none;
}
.hero-marquee::before{
  left:0;
  background:linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.hero-marquee::after{
  right:0;
  background:linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}
.hero-marquee-track{
  display:flex;
  gap:var(--marquee-gap);
  width:max-content;
  animation:hero-scroll 70s linear infinite;
  will-change:transform;
}
.hero-marquee:hover .hero-marquee-track{
  animation-play-state:paused;
}
.hero-marquee-item{
  flex:0 0 var(--marquee-item-w);
  aspect-ratio:3/4;
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--line-soft);
}
.hero-marquee-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Move by exactly (item-width + gap) * item-count — one full unique set — so the
   second (duplicated) set lands precisely where the first started. No jump. */
@keyframes hero-scroll{
  from{ transform:translate3d(0, 0, 0); }
  to{   transform:translate3d(calc(-1 * (var(--marquee-item-w) + var(--marquee-gap)) * var(--marquee-count)), 0, 0); }
}

@media (prefers-reduced-motion: reduce){
  .hero-marquee-track{ animation:none; }
}

@media (max-width: 820px){
  .hero-marquee-section{
    padding-top:56px;
    padding-bottom:64px;
    --marquee-item-w:220px;
    --marquee-gap:16px;
  }
  .hero-intro{ margin-bottom:44px; }
  .hero-marquee-track{ animation-duration:60s; }
  .hero-marquee::before, .hero-marquee::after{ width:40px; }
}

@media (max-width: 480px){
  .hero-marquee-section{
    --marquee-item-w:190px;
    --marquee-gap:14px;
  }
  .hero-marquee-track{ animation-duration:50s; }
  .hero-marquee::before, .hero-marquee::after{ width:28px; }
}

/* ---------- Feature strip ---------- */
.features{
  padding-top:72px;
  padding-bottom:72px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:44px;
}
.feature .ico{
  width:38px; height:38px;
  margin-bottom:14px;
  color:var(--accent);
}
.feature h3{ margin-bottom:6px; }
.feature p{ font-size:.92rem; margin-bottom:0; }

@media (max-width: 720px){
  .features{ grid-template-columns:1fr; gap:28px; }
}

/* ---------- Card grid ---------- */
.section{ padding-top:80px; padding-bottom:80px; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:44px;
  flex-wrap:wrap;
}
.section-head h2{ margin:0; }

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:36px;
}
@media (max-width: 920px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .grid{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-card);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease;
}
.card:hover{ transform:translateY(-2px); }
.card .thumb{
  aspect-ratio:4/3;
  background:var(--line-soft);
  display:flex;
  align-items:center;
  justify-content:center;
}
.card .thumb svg{ width:58%; opacity:.85; }
.card-body{
  padding:20px 4px 4px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.card-body h3{ margin-bottom:2px; }
.price{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:1.15rem;
  color:var(--accent-dk);
}
.tag{
  font-size:.72rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--sage);
  font-weight:600;
}
.card-body .card-link{
  margin-top:auto;
  padding-top:10px;
  font-size:.88rem;
  font-weight:600;
}

/* ---------- Story / teaser ---------- */
.story{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:72px;
  align-items:center;
  padding-top:80px;
  padding-bottom:80px;
}
@media (max-width:820px){ .story{ grid-template-columns:1fr; } }
.story-photo{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
}
.story-photo img{
  width:min(220px,100%);
  aspect-ratio:1/1;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.about-photo{
  width:100%;
  border-radius:var(--radius);
  aspect-ratio:4/5;
  object-fit:cover;
  margin-bottom:20px;
}
.stat-row{ display:flex; gap:36px; margin:24px 0 32px; flex-wrap:wrap; }
.stat b{
  display:block;
  font-family:'Fraunces', serif;
  font-size:1.6rem;
  font-weight:600;
  color:var(--ink);
  line-height:1.1;
}
.stat span{
  display:block;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--sage);
  margin-top:4px;
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--dark);
  color:var(--cream);
  padding:88px 0;
  text-align:center;
}
.cta-band h2{ color:var(--cream); }
.cta-band p{ color:#CBB99B; max-width:52ch; margin:0 auto 28px; }
.cta-band .btn-primary{ background:var(--accent); }
.cta-band .btn-ghost{ border-color:var(--cream); color:var(--cream); }
.cta-band .btn-ghost:hover{ background:var(--cream); color:var(--dark); }

/* ---------- Page header (non-home pages) ---------- */
.page-head{ padding-top:96px; padding-bottom:32px; }
.page-head p.lead{ max-width:60ch; font-size:1.05rem; }

/* ---------- Process steps ---------- */
.steps{
  padding:24px 0 56px;
  display:flex;
  flex-direction:column;
  gap:0;
}
.step{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:40px;
  padding:44px 0;
  border-top:1px solid var(--line);
}
.step-num{
  font-family:'Fraunces', serif;
  font-size:2.6rem;
  font-weight:600;
  color:var(--accent);
  position:relative;
  line-height:1;
}
.step-num .tickmark{
  display:none;
}
.step h3{ margin-bottom:10px; font-size:1.25rem; }
.step p{ max-width:62ch; margin-bottom:0; }

@media (max-width:600px){
  .step{ grid-template-columns:64px 1fr; gap:20px; padding:32px 0; }
  .step-num{ font-size:1.8rem; }
}

/* ---------- About page ---------- */
.about-hero{ padding-top:96px; padding-bottom:32px; }
.about-body{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:72px;
  padding-top:48px;
  padding-bottom:80px;
}
@media (max-width:820px){ .about-body{ grid-template-columns:1fr; } }
.about-body .stat-row{ margin-top:8px; }
.pull-note{
  border-left:2px solid var(--accent);
  padding:8px 0 8px 22px;
  margin:24px 0;
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:1.25rem;
  line-height:1.4;
  color:var(--ink);
}

/* ---------- Photo tile grid (Gallery page) ---------- */
.tile-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.tile{
  margin:0;
  background:transparent;
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .2s ease;
}
.tile:hover{ transform:translateY(-2px); }
.tile a{ display:block; overflow:hidden; border-radius:var(--radius); }
.tile img{
  width:100%;
  height:340px;
  object-fit:cover;
  display:block;
  margin:0;
  cursor:zoom-in;
  transition:transform .5s ease;
}
.tile:hover img{ transform:scale(1.03); }
.tile figcaption{
  padding:14px 4px 0;
  font-family:'Fraunces', serif;
  font-style:italic;
  color:var(--ink-soft);
  font-size:.95rem;
}

@media (max-width: 920px){
  .tile-grid{ grid-template-columns:repeat(2, 1fr); gap:20px; }
  .tile img{ height:260px; }
}
@media (max-width: 560px){
  .tile-grid{ grid-template-columns:1fr; gap:20px; }
  .tile img{ height:300px; }
}

/* GLightbox: soften colours to match the site palette */
.glightbox-clean .gcaption{ font-family:'Fraunces', serif !important; font-style:italic; }

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px; height:44px;
  border-radius:50%;
  background:var(--bg-card);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
  cursor:pointer;
  box-shadow:0 8px 20px -10px rgba(43,32,21,.35);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.carousel-btn:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }
.carousel-btn.prev{ left:-20px; }
.carousel-btn.next{ right:-20px; }
.carousel-btn svg{ width:18px; height:18px; }

@media (max-width:820px){
  .carousel-btn.prev{ left:8px; }
  .carousel-btn.next{ right:8px; }
}

.carousel-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-top:18px;
}
.carousel-caption{
  font-family:'Fraunces', serif;
  font-style:italic;
  color:var(--ink-soft);
  font-size:.98rem;
  min-height:1.4em;
  text-align:center;
}
.carousel-counter{
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--sage);
  font-weight:600;
}
.carousel-dots{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  max-width:400px;
}
.dot{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--line);
  border:none;
  padding:0;
  cursor:pointer;
}
.dot.active{ background:var(--accent); }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--dark);
  color:#CBB99B;
  padding:48px 0 28px;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  padding-bottom:28px;
  border-bottom:1px solid rgba(242,232,214,.14);
}
.footer-grid .brand .mark{ color:var(--cream); }
.footer-grid .brand .sub{ color:#A99878; }
.footer-nav{
  display:flex;
  gap:28px;
  list-style:none;
  padding:0; margin:0;
  flex-wrap:wrap;
}
.footer-nav a{ color:#CBB99B; font-size:.9rem; }
.footer-nav a:hover{ color:var(--cream); }
.footer-contact{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.footer-contact .eyebrow{ color:#A99878; margin-bottom:2px; }
.footer-contact a{ color:#CBB99B; font-size:.9rem; }
.footer-contact a:hover{ color:var(--cream); }
.cta-secondary{
  display:block;
  margin-top:14px;
  font-size:.88rem;
  color:#CBB99B;
}
.cta-secondary a{ color:var(--cream); font-weight:600; }
.cta-secondary a:hover{ color:var(--accent); }
.footer-bottom{
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:.8rem;
  color:#A99878;
}

/* =========================================================
   Mobile fixes — tighten spacing, prevent overflow,
   size buttons for finger taps
   ========================================================= */
@media (max-width: 640px){

  /* Trim horizontal padding on narrow screens so content isn't cramped */
  .wrap{ padding:0 18px; }
  .ruler{ padding:0 18px; }

  /* Nav: smaller logo, less padding */
  .nav{ padding:12px 18px; }
  .brand-logo-img{ height:54px; width:54px; }

  /* Section rhythm — less breathing room needed on small screens */
  .section{ padding-top:56px; padding-bottom:56px; }
  .page-head{ padding-top:64px; padding-bottom:20px; }
  .cta-band{ padding-top:64px; padding-bottom:64px; }
  .hero-marquee-section{ padding-top:56px; padding-bottom:64px; }
  .about-hero{ padding-top:64px; padding-bottom:20px; }
  .about-body{ padding-top:32px; padding-bottom:56px; gap:40px; }
  .story{ padding-top:56px; padding-bottom:56px; gap:40px; }
  .features{ padding-top:48px; padding-bottom:48px; gap:32px; }
  .steps{ padding-top:16px; padding-bottom:56px; }

  /* Buttons: full-width and centered — much easier to tap on mobile */
  .hero-actions, .cta-band .wrap{ display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .hero-actions .btn, .cta-band .btn{ width:100%; justify-content:center; padding:15px 22px; }
  .cta-secondary{ text-align:center; margin-top:14px; }
  .cta-band h2, .cta-band p{ text-align:center; }

  /* Footer: everything stacked and left-aligned — no more awkward flex splits */
  .footer-grid{ flex-direction:column; gap:26px; align-items:flex-start; }
  .footer-grid .brand{ flex-direction:column; align-items:flex-start; gap:6px; }
  .footer-grid .brand .mark{ font-size:1.15rem; }
  .footer-nav{ gap:14px 24px; }
  .footer-bottom{ flex-direction:column; gap:6px; }
}
