/*
Theme Name: Wooden Floor Company Stirling
Theme URI: https://woodflooringstirling.co.uk
Author: The Wooden Floor Company Stirling
Description: Bespoke theme for The Wooden Floor Company Stirling — wood, engineered, laminate and herringbone flooring fitters serving Stirling, Dunblane, Bridge of Allan and Central Scotland's period and country homes.
Version: 1.1.4
Requires PHP: 7.4
Text Domain: wfc-stirling
*/

/* ==========================================================================
   DESIGN TOKENS
   Palette drawn from the fabric of the houses we fit floors in: quarried
   sandstone, limewashed harling, aged oak boards, weathered slate roofs and
   the brass ironmongery on a Victorian front door. No off-the-shelf SaaS
   palette — every colour has a material reference.
   ========================================================================== */
:root{
  /* Core palette (name: material reference) */
  --stone-50:   #F3EEE3;  /* limewashed harl — page background */
  --stone-100:  #E9E0CE;  /* dressed sandstone, light */
  --stone-300:  #C9B593;  /* quarried sandstone */
  --stone-600:  #8B7250;  /* weathered sandstone / reveal shadow */
  --slate-900:  #26251F;  /* wet slate roof — near-black, used sparingly */
  --oak-700:    #5B3B26;  /* aged oak board, our primary brand tone */
  --oak-900:    #3B2717;  /* dark oak, hover/pressed states */
  --heather-700:#3F4A3C;  /* hunting/heritage green — secondary */
  --brass-500:  #9C7A34;  /* door ironmongery — accent, used sparingly */
  --brass-100:  #EFE2BE;

  --ink:        var(--slate-900);
  --paper:      var(--stone-50);
  --line:       rgba(38,37,31,0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 2px; /* stone doesn't have rounded corners */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 var(--space-2);
  color:var(--oak-900);
}
h1{ font-size:clamp(2.1rem, 4vw, 3.4rem); font-weight:500; }
h2{ font-size:clamp(1.6rem, 2.6vw, 2.3rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 var(--space-2); max-width:62ch; }
.container{ max-width:var(--container); margin:0 auto; padding:0 var(--space-3); }
:focus-visible{ outline:3px solid var(--brass-500); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--oak-700); color:var(--stone-50);
  padding:.85rem 1.5rem; border:1px solid var(--oak-700);
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  border-radius:var(--radius); cursor:pointer;
}
.btn:hover{ background:var(--oak-900); border-color:var(--oak-900); }
.btn-outline{
  background:transparent; color:var(--oak-700); border:1px solid var(--oak-700);
}
.btn-outline:hover{ background:var(--oak-700); color:var(--stone-50); }

/* ==========================================================================
   SITE HEADER
   Brief: logo spans the full width on its own row, then a second row
   holds the search box and hamburger menu — identical behaviour on mobile
   and desktop, so this is NOT a responsive-breakpoint header, it's the
   one layout at every size.
   ========================================================================== */
.site-header{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:40;
}
.header-row-brand{
  padding:var(--space-2) var(--space-3);
  border-bottom:1px solid var(--line);
}
.header-row-brand .container{
  padding:0; display:flex; justify-content:center;
}
.site-logo{ display:block; max-height:64px; width:auto; }
.site-logo img{ max-height:64px; width:auto; }
.header-row-tools{
  padding:var(--space-1) var(--space-3);
}
.header-row-tools .container{
  padding:0; display:flex; align-items:center; gap:var(--space-2);
}
.header-search{
  flex:1 1 auto; display:flex; border:1px solid var(--line); background:var(--stone-50);
}
.header-search input[type="search"]{
  flex:1; border:0; background:transparent; padding:.7rem .9rem;
  font-family:var(--font-body); font-size:.95rem; color:var(--ink);
}
.header-search button{
  border:0; background:var(--heather-700); color:#fff; padding:0 1rem; cursor:pointer;
}
.hamburger{
  flex:0 0 auto; width:46px; height:46px; border:1px solid var(--line);
  background:var(--stone-50); display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; cursor:pointer;
}
.hamburger span{ display:block; width:22px; height:2px; background:var(--oak-900); }

/* Off-canvas nav (triggered by hamburger at all sizes) */
.primary-nav{
  position:fixed; inset:0 0 0 auto; width:min(360px,88vw); height:100vh;
  background:var(--slate-900); color:var(--stone-50);
  transform:translateX(100%); transition:transform .35s ease;
  z-index:50; overflow-y:auto; padding:var(--space-4) var(--space-3);
}
.primary-nav.is-open{ transform:translateX(0); }
.primary-nav a{ color:var(--stone-100); }
.primary-nav > ul > li{ border-bottom:1px solid rgba(255,255,255,.12); }
.primary-nav > ul > li > a{ display:block; padding:.9rem 0; font-family:var(--font-display); font-size:1.15rem; }
.primary-nav ul ul{ padding-bottom:.75rem; }
.primary-nav ul ul a{ padding:.4rem 0; font-size:.92rem; color:var(--stone-300); display:block; }
.nav-backdrop{
  position:fixed; inset:0; background:rgba(38,37,31,.5); opacity:0; pointer-events:none;
  transition:opacity .35s ease; z-index:45;
}
.nav-backdrop.is-open{ opacity:1; pointer-events:auto; }
.nav-close{ background:none; border:0; color:var(--stone-50); font-size:1.6rem; margin-bottom:var(--space-3); cursor:pointer; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ position:relative; background:var(--slate-900); }
.hero-grid{
  display:grid; grid-template-columns: 1.1fr 1fr; align-items:stretch; min-height:70vh;
}
.hero-copy{
  padding:var(--space-5) var(--space-3); display:flex; flex-direction:column;
  justify-content:center; background:var(--oak-900); color:var(--stone-50);
}
.hero-copy .kicker{ color:var(--brass-100); font-family:var(--font-body); font-weight:600; margin-bottom:var(--space-2); }
.hero-copy h1{ color:#fff; }
.hero-copy p{ color:var(--stone-100); font-size:1.1rem; }
.hero-cta{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:var(--space-2); }
.hero-image{ position:relative; overflow:hidden; min-height:320px; }
.hero-image img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-image{ order:-1; min-height:46vh; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section{ padding:var(--space-5) 0; }
.section-tight{ padding:var(--space-4) 0; }
.section-alt{ background:var(--stone-100); }
.section-dark{ background:var(--slate-900); color:var(--stone-100); }
.section-dark h2{ color:#fff; }
.section-head{ max-width:56ch; margin-bottom:var(--space-4); }

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

.service-card{
  border:1px solid var(--line); background:var(--paper); padding:var(--space-3);
  display:flex; flex-direction:column; gap:.5rem;
}
.service-card h3 a{ color:var(--oak-900); }
.service-card .service-thumb{ aspect-ratio:4/3; overflow:hidden; margin:0 0 var(--space-2); }
.service-card .service-thumb img{ width:100%; height:100%; object-fit:cover; }

.area-chip-list{ display:flex; flex-wrap:wrap; gap:.5rem; }
.area-chip{
  border:1px solid var(--line); padding:.5rem .9rem; font-size:.9rem;
  background:var(--paper);
}
.area-chip:hover{ border-color:var(--oak-700); color:var(--oak-700); }

.stat-strip{ display:flex; flex-wrap:wrap; gap:var(--space-4); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:var(--space-3) 0; }
.stat-strip div{ min-width:140px; }
.stat-strip .num{ font-family:var(--font-display); font-size:2.1rem; color:var(--oak-700); display:block; }

.breadcrumbs{ font-size:.85rem; color:var(--stone-600); padding:var(--space-2) 0; }
.breadcrumbs a{ color:var(--stone-600); }
.breadcrumbs a:hover{ color:var(--oak-700); }

.internal-links{ border-top:1px solid var(--line); margin-top:var(--space-4); padding-top:var(--space-4); }
.internal-links .grid-2{ gap:var(--space-4); }
.internal-links h3{ font-size:1.05rem; }
.internal-links li{ padding:.35rem 0; border-bottom:1px dashed var(--line); }
.internal-links a:hover{ color:var(--oak-700); }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer{ background:var(--slate-900); color:var(--stone-300); }
.footer-grid{
  display:grid; grid-template-columns:1.2fr .9fr 1.4fr 1fr; gap:1.5rem;
  padding:var(--space-4) var(--space-3) var(--space-3);
}
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer h4{ color:#fff; font-family:var(--font-display); font-size:1.05rem; margin-bottom:var(--space-2); }
.site-footer a:hover{ color:#fff; }
.site-footer li{ padding:.3rem 0; }
.footer-grid > div{ font-size:1rem; line-height:1.6; }
.footer-grid p, .footer-grid li, .footer-grid address, .footer-grid a{ font-size:inherit; line-height:inherit; }
.footer-areas{ max-width:none; overflow-wrap:anywhere; }
.footer-grid .footer-areas{ margin:0 0 .45rem; }
.footer-grid address p{ margin:.4rem 0; }
.footer-social{ display:flex; gap:.65rem; align-items:center; margin-top:1rem; }
.footer-social li{ padding:0; }
.footer-social a{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid rgba(255,255,255,.3); border-radius:50%; color:var(--stone-100); }
.footer-social a:hover{ border-color:#fff; background:rgba(255,255,255,.1); }
.footer-social svg{ display:block; width:19px; height:19px; fill:currentColor; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding:var(--space-2) 0; font-size:.82rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
.footer-bottom button{ border:0; background:transparent; color:inherit; text-decoration:underline; font:inherit; cursor:pointer; padding:0; }

/* Cookie preferences: the two main choices receive equal visual weight. */
.wfc-cookie-banner[hidden], .wfc-cookie-options[hidden]{ display:none !important; }
.wfc-cookie-banner{ position:fixed; inset:auto 1rem 1rem; z-index:1000; max-width:720px; margin:auto; padding:1.25rem 1.5rem; background:var(--stone-50); color:var(--slate-900); border:1px solid var(--stone-300); box-shadow:0 10px 35px rgba(0,0,0,.28); }
.wfc-cookie-banner h2{ font-size:1.35rem; margin:0 0 .5rem; }
.wfc-cookie-banner p{ max-width:none; margin:0 0 .8rem; font-size:.95rem; }
.wfc-cookie-banner a{ color:var(--oak-700); text-decoration:underline; }
.wfc-cookie-actions{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.wfc-cookie-actions button{ flex:1 1 160px; min-height:44px; padding:.7rem 1rem; font:600 .95rem var(--font-body); cursor:pointer; border:1px solid var(--oak-700); background:var(--oak-700); color:#fff; }
.wfc-cookie-actions button:hover{ background:var(--oak-900); }
.wfc-cookie-actions .wfc-cookie-customise{ background:transparent; color:var(--oak-700); }
.wfc-cookie-options{ border-top:1px solid var(--line); padding-top:.8rem; }
.wfc-cookie-options label{ display:block; margin:.6rem 0; font-weight:600; }
.wfc-cookie-options input{ margin-right:.5rem; accent-color:var(--oak-700); }
.wfc-cookie-options small{ display:block; margin-left:1.6rem; font-weight:400; }
@media(max-width:560px){ .wfc-cookie-banner{ inset:auto .5rem .5rem; padding:1rem; max-height:85vh; overflow:auto; } }

/* ==========================================================================
   WHATSAPP CHAT
   ========================================================================== */
.wa-float{
  position:fixed; right:1.1rem; bottom:1.1rem; z-index:60;
  width:58px; height:58px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
.wa-float svg{ width:30px; height:30px; }
.wa-float .wa-label{
  position:absolute; right:68px; background:var(--slate-900); color:#fff;
  padding:.4rem .7rem; font-size:.82rem; white-space:nowrap; opacity:0;
  transform:translateX(6px); transition:opacity .2s ease, transform .2s ease; pointer-events:none;
}
.wa-float:hover .wa-label{ opacity:1; transform:translateX(0); }

/* Skip link */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--oak-700); color:#fff; padding:.6rem 1rem; z-index:100; }
.skip-link:focus{ left:1rem; top:1rem; }
