/* ============================================================
   Cozzy Flooring — shared styles
   Used by every service page (and any future page).
   Single source of truth for theme tokens, nav, footer,
   buttons, gallery and lightbox.
   ============================================================ */

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

:root {
  /* surfaces */
  --dark:       #FFFFFF;   /* page background + text on teal */
  --dark-2:     #F3F6FA;   /* alternating section background */
  --card:       #FFFFFF;   /* card background */
  --border:     #E3E7EF;

  /* text */
  --white:      #161D30;   /* primary text (near-black navy) */
  --muted:      #5E6A80;   /* secondary text */
  --text-body:  #47516A;
  --text-ghost: #AEB6C4;

  /* brand */
  --teal:       #0C8A8A;
  --teal-dim:   rgba(12,138,138,0.10);
  --teal-border:rgba(12,138,138,0.28);
  --teal-hover: #0A7373;
  --gold:       #C98207;

  /* components */
  --nav-bg:          rgba(255,255,255,0.90);
  --carpet-grad:     linear-gradient(135deg, #E7ECF4, #DBE2EC);
  --lightbox-bg:     rgba(20,26,44,0.82);
  --footer-bottom-bg:#EDF1F6;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── CALL BAR (mobile) ─── */
.call-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: 40px;
  background: var(--teal);
  align-items: center;
  justify-content: center;
}
.call-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.call-bar svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ─── HAMBURGER (mobile) ─── */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle .ic-close { display: none; }
.site-nav.nav-open .nav-toggle .ic-menu { display: none; }
.site-nav.nav-open .nav-toggle .ic-close { display: block; }

.nav-logo { display: flex; align-items: center; }

.logo-circle {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 5px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.nav-logo .logo-circle:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links .nav-cta {
  background: var(--teal);
  color: var(--dark);
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .nav-cta:hover {
  background: var(--teal-hover);
  color: var(--dark);
  transform: translateY(-1px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-2px); }
.btn-primary svg {
  width: 16px; height: 16px;
  stroke: var(--dark); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14.5px;
  transition: gap 0.2s;
}
.link-cta:hover { gap: 12px; }
.link-cta svg { width: 16px; height: 16px; stroke: var(--teal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── SERVICE PAGE HERO ─── */
.sp-hero {
  padding: 132px 52px 80px;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
}

.sp-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.sp-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.sp-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.sp-breadcrumb a:hover { color: var(--teal); }
.sp-breadcrumb .sep { color: var(--text-ghost); margin: 0 8px; }
.sp-breadcrumb .current { color: var(--white); }

.sp-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.sp-hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 540px;
  margin-bottom: 26px;
}

.sp-points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
}
.sp-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  color: var(--text-body);
  font-weight: 500;
}
.sp-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sp-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--carpet-grad);
  box-shadow: 0 20px 50px rgba(20,28,54,0.14);
}
.sp-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ─── PROJECT GALLERY ─── */
.projects {
  padding: 92px 52px;
  background: var(--dark);
}
.projects-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 42px;
}
.projects-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.projects-header h2 em { font-style: italic; font-weight: 800; color: var(--teal); }
.projects-header p { margin-top: 13px; font-size: 15.5px; color: var(--muted); }

.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.pg {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--carpet-grad);
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
}
.pg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pg:hover img { transform: scale(1.06); }
.pg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,28,54,0);
  transition: background 0.25s;
}
.pg:hover::after { background: rgba(20,28,54,0.22); }

.pg-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.pg:hover .pg-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pg-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--lightbox-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.28); transform: scale(1.05); }
.lb-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--dark-2);
  padding: 92px 52px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 52px 44px;
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}

.footer-brand .logo-circle { height: 62px; width: 62px; }
.footer-brand .fb-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  max-width: 300px;
  margin-bottom: 18px;
}

.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.footer-social-icon:hover {
  color: var(--teal);
  border-color: var(--teal-border);
  background: var(--teal-dim);
  transform: translateY(-2px);
}
.footer-social-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-links-2col ul { grid-template-columns: 1fr; }
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }

.footer-contact .fc-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-contact .fc-phone:hover { color: var(--teal); }
.footer-contact .fc-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.footer-contact .btn-primary,
.footer-contact .btn-primary:hover { padding: 12px 22px; font-size: 14px; color: #fff; }
.footer-contact .btn-primary svg { stroke: #fff; }

.footer-areas { border-top: 1px solid var(--border); }
.footer-areas-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 52px;
  display: flex;
  gap: 10px 22px;
  align-items: baseline;
  flex-wrap: wrap;
}
.footer-areas h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.footer-areas p { color: var(--muted); font-size: 13.5px; line-height: 1.95; flex: 1; min-width: 260px; }
.footer-areas p b { color: var(--text-body); font-weight: 600; }

.footer-bottom { border-top: 1px solid var(--border); background: var(--footer-bottom-bg); }
.footer-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text-ghost); font-size: 13px; }
.footer-made { font-size: 13px; color: var(--text-ghost); }
.footer-made a { color: var(--muted); transition: color 0.2s; }
.footer-made a:hover { color: var(--teal); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .call-bar { display: flex; }
  .nav-toggle { display: inline-flex; }

  .site-nav { padding: 0 20px; top: 40px; height: 66px; }
  .logo-circle { height: 52px; width: 52px; }

  .nav-links {
    position: fixed;
    top: 106px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(20,28,54,0.12);
    display: none;
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 15px; }
  .nav-links .nav-cta {
    margin: 10px 24px 4px;
    text-align: center;
    border-radius: 8px;
    padding: 13px 22px;
  }

  .sp-hero { padding: 130px 22px 60px; }
  .sp-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .sp-media { order: -1; }

  .projects { padding: 64px 22px; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .cta-band { padding: 68px 22px; }

  .lightbox { padding: 16px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 42px; height: 42px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
    padding: 48px 22px 34px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links-2col ul { grid-template-columns: 1fr; }
  .footer-areas-inner { padding: 24px 22px; }
  .footer-bottom-inner { padding: 20px 22px; flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1140px) {
  .site-nav, .sp-hero, .projects, .cta-band {
    padding-left: 32px;
    padding-right: 32px;
  }
  .footer-top, .footer-areas-inner, .footer-bottom-inner { padding-left: 32px; padding-right: 32px; }
  .pg-grid { grid-template-columns: repeat(3, 1fr); }
}
