/* Terbium Home — shared stylesheet for all pages */

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

:root {
  --cream: #f0f2d0;
  --warm-white: #fafbee;
  --charcoal: #1E1E1C;
  --mid: #4A4A45;
  --accent: #d4d936;
  --accent-dark: #b0b520;
  --stone: #9E9484;
  --light-stone: #e2e5b0;
  --dark: #141412;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
}

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

/* ── NAV ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-stone);
}

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }

.nav-cta {
  background: var(--accent);
  color: var(--charcoal) !important;
  font-weight: 500 !important;
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--warm-white);
  border: 1px solid var(--light-stone);
  border-radius: 8px;
  padding: 0.8rem 0;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.4rem;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--cream); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  border: 1.5px solid var(--light-stone);
  color: var(--mid);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--charcoal); }

.btn-dark {
  background: var(--charcoal);
  color: white;
  padding: 1rem 2.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}
.btn-dark:hover { background: #333; }

/* ── SECTIONS ── */
section { padding: 5rem 5rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  max-width: 640px;
}

/* ── PAGE HERO (smaller, for sub-pages) ── */
.page-hero {
  background: var(--cream);
  padding: 5rem 5rem 4rem;
  border-bottom: 1px solid var(--light-stone);
}
.page-hero .breadcrumbs {
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 1rem;
}
.page-hero .breadcrumbs a { color: var(--stone); text-decoration: none; }
.page-hero .breadcrumbs a:hover { color: var(--charcoal); }
.page-hero .breadcrumbs span { margin: 0 0.5rem; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent-dark); }

.page-hero .lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CONTENT BLOCKS ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}

.content-grid h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
}

.content-grid p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.content-grid ul {
  list-style: none;
  margin-top: 1rem;
}
.content-grid ul li {
  font-size: 0.95rem;
  color: var(--mid);
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid var(--light-stone);
}
.content-grid ul li:last-child { border-bottom: none; }
.content-grid ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.content-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.content-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── FAQ ── */
.faq-section { background: var(--cream); }

.faq-item {
  border-bottom: 1px solid var(--light-stone);
  padding: 1.4rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 0.5rem; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--accent);
  padding: 5rem 5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(30,30,28,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band-content { position: relative; z-index: 2; }
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30,30,28,0.55);
  margin-bottom: 1rem;
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.cta-band h2 em { font-style: italic; font-weight: 700; }
.cta-band-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(30,30,28,0.75);
  line-height: 1.7;
  max-width: 560px;
}
.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}
.btn-call-light {
  background: transparent;
  border: 1.5px solid rgba(30,30,28,0.25);
  color: var(--charcoal);
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  display: inline-block;
}
.btn-call-light:hover { background: var(--charcoal); color: white; border-color: var(--charcoal); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 3rem 5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--stone);
}

/* ── SERVICE CARDS GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: white;
  border: 1px solid var(--light-stone);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.service-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.service-card-link {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 500;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-stone);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-dark);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--accent);
  color: var(--charcoal);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--accent-dark); }
.form-reassurance {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--stone);
  font-style: italic;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 0.25rem;
}
.contact-detail a, .contact-detail p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--accent-dark); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  section, .page-hero { padding: 3.5rem 1.5rem; }
  nav.site-nav { padding: 1rem 1.5rem; position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--light-stone);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    min-width: 0;
  }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 3rem 1.5rem; grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
