/* ============================================================
   Project Fox Building Solutions Ltd — main.css
   Premium dark theme · Playfair Display + Inter
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #0a0a0c;
  --bg-2:        #0d0d11;
  --bg-3:        #111117;
  --surface:     #15151c;
  --surface-2:   #1c1c25;
  /* Accents */
  --silver:      #c9cdd6;
  --silver-lt:   #eef1f7;
  --silver-dk:   #878b95;
  --steel:       #6f90b6;
  --steel-lt:    #9db9d8;
  /* Text */
  --text:        #f2f3f6;
  --text-mid:    #aaacb6;
  --text-dim:    #74757e;
  /* Lines */
  --border:      #21222c;
  --border-lt:   #33343f;
  /* Brand bits */
  --grad-silver: linear-gradient(135deg, #f4f6fb 0%, #c7ccd6 45%, #9aa0ac 100%);
  --grad-dark:   linear-gradient(160deg, #15151c 0%, #0d0d11 100%);
  /* Type */
  --ff-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-sans:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Layout */
  --maxw:        1240px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 50px -18px rgba(0,0,0,.7);
  --shadow-sm:   0 8px 24px -12px rgba(0,0,0,.6);
  --ease:        cubic-bezier(.16,1,.3,1);
  --header-h:    74px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--steel); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel-lt); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--silver-lt); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 700; line-height: 1.12; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p { color: var(--text-mid); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel-lt);
  margin-bottom: .9rem;
}
.lead { font-size: 1.16rem; color: var(--text-mid); }
.text-center { text-align: center; }
.muted { color: var(--text-dim); }
.serif { font-family: var(--ff-serif); }
.silver-text {
  background: var(--grad-silver);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-header { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-header p { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--silver-lt); color: #0a0a0c; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--grad-silver); color: #0a0a0c; box-shadow: 0 10px 30px -10px rgba(201,205,214,.5); }
.btn--primary:hover { transform: translateY(-2px); color: #0a0a0c; box-shadow: 0 16px 38px -10px rgba(201,205,214,.65); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border-lt); }
.btn--outline:hover { border-color: var(--silver); color: var(--silver-lt); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); color: var(--silver-lt); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,.82); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--silver); }
.logo:hover { color: var(--silver-lt); }
.logo-mark { width: auto; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--ff-serif); font-size: 1.18rem; font-weight: 700; color: var(--text); letter-spacing: .01em; line-height: 1.05; }
.logo-text small { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-top: 5px; line-height: 1; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-mid); font-size: .95rem; font-weight: 500; padding: 9px 13px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--silver-lt); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); font-size: .95rem; white-space: nowrap; }
.header-phone:hover { color: var(--silver-lt); }

.hamburger { display: none; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg-2); padding: 22px 24px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .32s var(--ease); visibility: hidden;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { color: var(--text); font-size: 1.12rem; font-weight: 500; padding: 15px 8px; border-bottom: 1px solid var(--border); }
.mobile-menu a[aria-current="page"] { color: var(--steel-lt); }
.mobile-menu .btn { margin-top: 14px; border-bottom: none; }
.mobile-menu .btn--primary { color: #0a0a0c; }

/* ---------- Availability banner ---------- */
.availability-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 44px 10px 16px; position: relative; font-size: .9rem; color: var(--text-mid);
}
.avail-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fcf80; box-shadow: 0 0 0 4px rgba(95,207,128,.18); flex: none; }
.avail-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-dim); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
.avail-close:hover { color: var(--text); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumbs .container { padding-top: 13px; padding-bottom: 13px; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--silver-lt); }
.breadcrumbs .sep { color: var(--border-lt); margin: 0 9px; }
.breadcrumbs [aria-current="page"] { color: var(--text-mid); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(111,144,182,.16), transparent 60%),
    radial-gradient(800px 500px at 8% 12%, rgba(201,205,214,.07), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .lead { max-width: 33ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--text-mid); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .tick { color: var(--steel-lt); font-weight: 700; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-lt);
  box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; background: var(--surface);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(10,10,12,.72); backdrop-filter: blur(10px); border: 1px solid var(--border-lt);
  border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-media .badge .stars { color: #e9c46a; letter-spacing: 2px; font-size: .95rem; }
.hero-media .badge small { color: var(--text-mid); font-size: .8rem; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding: 22px 0; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--text-mid); font-weight: 500; }
.trust-item .trust-icon { font-size: 1.15rem; }
.trust-item strong { color: var(--text); }

/* ---------- Cards / services ---------- */
.card {
  background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-lt); box-shadow: var(--shadow-sm); }
.card .card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-lt); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--steel-lt); }
.card .card-link:hover { gap: 10px; color: var(--silver-lt); }

a.card { color: inherit; display: block; }

/* ---------- Feature (why us) ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .feature-num { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--silver-dk); line-height: 1; flex: none; width: 42px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.feature p { font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .stat-num { font-family: var(--ff-serif); font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 700; line-height: 1; }
.stat .stat-label { display: block; margin-top: 10px; font-size: .86rem; color: var(--text-dim); letter-spacing: .04em; }

/* ---------- Founder quote ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.founder-mark { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-lt); display: grid; place-items: center; color: var(--silver); }
.founder-mark img { width: 56px; height: auto; }
.founder blockquote { font-family: var(--ff-serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--text); font-style: italic; }
.founder .attrib { margin-top: 16px; font-family: var(--ff-sans); font-style: normal; font-size: .92rem; color: var(--text-dim); }
.founder .attrib strong { color: var(--silver-lt); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 3 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(7,7,10,.9), transparent);
  font-size: .82rem; color: var(--silver-lt); font-weight: 500;
}
.gallery-item--wide { aspect-ratio: 3 / 2; }

/* ---------- Reviews ---------- */
.review-card { background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; height: 100%; display: flex; flex-direction: column; }
.review-card .stars { color: #e9c46a; letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { color: var(--text); font-size: 1rem; line-height: 1.6; flex: 1; }
.review-card .review-by { margin-top: 16px; font-size: .88rem; color: var(--text-dim); }
.review-card .review-by strong { color: var(--silver-lt); display: block; font-size: .95rem; }

/* ---------- Areas pills ---------- */
.areas-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-mid); font-size: .9rem; font-weight: 500;
}
.area-pill:hover { border-color: var(--silver); color: var(--silver-lt); }
.area-pill--link::after { content: "→"; opacity: .6; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-dark); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 50% 0, rgba(111,144,182,.14), transparent 65%); }
.cta-band .container { position: relative; text-align: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 56ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline { color: var(--text-mid); margin-bottom: 18px; max-width: 32ch; }
.footer-nap { font-style: normal; color: var(--text-mid); line-height: 2; }
.footer-nap a { color: var(--text-mid); }
.footer-nap a:hover { color: var(--silver-lt); }
.footer-col h4 { font-family: var(--ff-sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-mid); }
.footer-links a:hover { color: var(--silver-lt); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .84rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--silver-lt); }
.footer-reg { display: block; color: var(--text-dim); font-size: .76rem; margin-top: 7px; line-height: 1.55; max-width: 62ch; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: rgba(13,13,17,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border-lt); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.mobile-cta-bar a { flex: 1; text-align: center; padding: 13px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.mobile-cta-bar__call { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-lt); }
.mobile-cta-bar__quote { background: var(--grad-silver); color: #0a0a0c; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin: 0 auto; order: -1; }
  .hero-media .frame { aspect-ratio: 16 / 11; }
  .hero-copy .lead { max-width: none; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-mark { margin: 0 auto; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-cta-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 78px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .cta-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--steel-lt); outline-offset: 3px; border-radius: 4px; }
