/* ═══════════════════════════════════════════════════
   EAST OF BAY PLASTERING INC. — Global Stylesheet
   Navy + Gold · Playfair Display + Source Sans 3
═══════════════════════════════════════════════════ */

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ─── TOKENS ──────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --navy-light:  #1E3148;
  --gold:        #B8955A;
  --gold-light:  #D4AF72;
  --gold-pale:   #F5ECD8;
  --gold-dim:    rgba(184,149,90,0.15);
  --slate:       #4A5568;
  --slate-light: #718096;
  --fog:         #F7F6F3;
  --white:       #FFFFFF;
  --text:        #1A2535;
  --text-muted:  #6B7280;
  --border:      #E5E0D8;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Source Sans 3', system-ui, sans-serif;
  --ease:        0.25s ease;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.18);
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ─── UTILITY ─────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 600px;
}
.section-body.light { color: rgba(255,255,255,0.7); }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,149,90,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ─── HEADER ──────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-top {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  transition: max-height var(--ease), opacity var(--ease), padding var(--ease);
  overflow: hidden;
  max-height: 48px;
}
.header-top.hidden { max-height: 0; padding: 0 2rem; opacity: 0; }
.header-top a { color: var(--gold-light); transition: color var(--ease); }
.header-top a:hover { color: var(--white); }
.header-top-left { display: flex; gap: 1.8rem; }
.header-top-right { display: flex; gap: 1.5rem; align-items: center; }
.lic { font-size: 0.68rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.35); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-icon { flex-shrink: 0; }
.logo-text { line-height: 1.15; }
.logo-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.logo-name span { color: var(--gold); }
.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-top: 0.1rem;
}

/* Nav */
nav { display: flex; align-items: center; gap: 0.1rem; }
nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: color var(--ease), background var(--ease);
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
nav a.active { color: var(--gold); }
.nav-cta { margin-left: 0.5rem; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--ease);
  border-radius: 2px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  margin-bottom: 2rem;
  transition: color var(--ease);
}
.mobile-nav-close:hover { color: var(--white); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mobile-contact {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav .mobile-contact a { font-family: var(--sans); font-size: 0.9rem; color: var(--gold); font-weight: 600; }

/* ─── PAGE HERO (inner pages) ──────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,0.97) 0%, rgba(22,36,54,0.92) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&q=70&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero-title em { font-style: normal; color: var(--gold-light); }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--gold); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ─── TRUST BAR ───────────────────────────────────── */
.trust-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(184,149,90,0.2);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.trust-item:last-child { border-right: none; }
.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── CLIENTS STRIP ───────────────────────────────── */
.clients-section {
  background: var(--fog);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 2rem;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.client-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  transition: all var(--ease);
  box-shadow: var(--shadow-sm);
}
.client-pill:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(184,149,90,0.2);
  transform: translateY(-2px);
}

/* ─── CTA BANNER ──────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,90,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 480px; }
.cta-right { flex-shrink: 0; text-align: right; }
.cta-phone {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}
.cta-email { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.cta-email a { color: rgba(255,255,255,0.65); transition: color var(--ease); }
.cta-email a:hover { color: var(--gold); }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: #060E18;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(184,149,90,0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  margin-top: 1.2rem;
  max-width: 280px;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.8rem;
  opacity: 0.7;
}
.footer-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.9rem;
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--ease); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--gold); }

/* ─── FADE-IN OBSERVER ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: flex; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-right { text-align: left; }
  .trust-item { padding: 0.7rem 1rem; font-size: 0.7rem; }
}
@media (max-width: 600px) {
  .header-top { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-grid { gap: 0.4rem; }
}
