/* ============================================================
   THE FINE TUNING COMPANY — style.css
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Variables --- */
:root {
  --charcoal:   #1c1c1c;
  --gold:       #c9a84c;
  --gold-light: #e2c06a;
  --cream:      #f8f4ec;
  --parchment:  #ede5d0;
  --text:       #2a1f0e;
  --text-mid:   #5a5248;
  --border:     #cfc0a0;
  --footer-bg:  #130f07;
  --nav-h:      70px;
  --font-head:  'Cormorant Garamond', serif;
  --font-body:  'Lato', sans-serif;
  --max-w:      1100px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.15; }
p { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
section { padding: 90px 24px; }

/* --- Ornamental divider --- */
.section-tag { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 28px; }
.ornament::before, .ornament::after { content: ''; flex: 0 0 44px; height: 1px; background: var(--gold); }
.ornament-dot { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.section-head .ornament { margin-bottom: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.nav-logo {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.5px; line-height: 1.2;
}
.nav-logo span {
  display: block; font-size: 0.65rem; font-family: var(--font-body);
  font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(201,168,76,0.55); margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone {
  font-family: var(--font-body); font-size: 0.85rem;
  color: rgba(255,255,255,0.6); letter-spacing: 0.3px;
}
.nav-cta {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--charcoal); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(201,168,76,0.15);
  z-index: 999; padding: 20px 32px 32px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }
.mobile-nav-phone { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   HERO — HOMEPAGE (full screen)
   ============================================================ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: flex-end;
  padding: 0 0 90px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,4,0.92) 0%, rgba(10,8,4,0.55) 45%, rgba(10,8,4,0.18) 100%);
}
.hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: block;
}
.hero-rule { width: 50px; height: 1px; background: var(--gold); margin-bottom: 28px; }
.hero h1 {
  color: #fff; font-weight: 300; font-style: italic;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95; margin-bottom: 28px;
}
.hero h1 em { font-style: normal; font-weight: 600; }
.hero-sub {
  font-family: var(--font-body); font-size: 1.05rem;
  color: rgba(255,255,255,0.72); max-width: 500px;
  margin-bottom: 44px; font-weight: 300; line-height: 1.65;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   HERO — INNER PAGES (shorter)
   ============================================================ */
.page-hero {
  height: 340px; position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: 48px;
  margin-top: var(--nav-h);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.4);
}
.page-hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; width: 100%; }
.page-hero-tag {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; font-style: italic; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 32px;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-dark:hover { background: var(--gold); color: var(--charcoal); }

/* ============================================================
   HOME — INTRO SECTION
   ============================================================ */
.intro { background: var(--cream); }
.intro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: var(--max-w); margin: 0 auto; }
.intro-image-wrap { position: relative; }
.intro-image-wrap img { width: 100%; height: 520px; object-fit: cover; }
.intro-image-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold); z-index: -1; pointer-events: none;
}
.intro-text h2 { margin-bottom: 8px; }
.intro-text p { font-size: 1.08rem; line-height: 1.8; }
.mt-32 { margin-top: 32px; }

/* ============================================================
   HOME — SERVICES OVERVIEW
   ============================================================ */
.services-overview { background: var(--parchment); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.service-card {
  background: var(--cream); padding: 40px 30px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s;
}
.service-card:hover { border-top-color: var(--gold); }
.service-card-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 18px; display: block; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.service-card-link {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.service-card-link::after { content: '→'; }
.service-card-link:hover { color: var(--text); }

/* ============================================================
   HOME — FEATURED PROJECT
   ============================================================ */
.featured { background: var(--charcoal); }
.featured-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: var(--max-w); margin: 0 auto; }
.featured-image img { width: 100%; height: 480px; object-fit: cover; }
.featured-text .section-tag { color: var(--gold); }
.featured-text h2 { color: #fff; margin-bottom: 8px; }
.featured-text .ornament::before, .featured-text .ornament::after { background: rgba(201,168,76,0.35); }
.featured-text p { color: rgba(255,255,255,0.68); font-size: 1.05rem; }
.featured-quote {
  margin-top: 28px; padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.06);
}
.featured-quote p {
  font-family: var(--font-head); font-style: italic;
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  line-height: 1.65; margin: 0;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { background: var(--gold); padding: 64px 32px; text-align: center; }
.cta-strip h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--charcoal); margin-bottom: 10px; }
.cta-strip p { font-size: 1rem; color: rgba(30,20,5,0.7); margin-bottom: 28px; }
.cta-strip .btn-outline { border-color: rgba(28,28,28,0.5); color: var(--charcoal); }
.cta-strip .btn-outline:hover { background: var(--charcoal); color: var(--gold); border-color: var(--charcoal); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: var(--max-w); margin: 0 auto; }
.about-image { position: relative; }
.about-image img { width: 100%; height: 560px; object-fit: cover; }
.about-image-frame {
  position: absolute; bottom: -14px; left: -14px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold); z-index: -1; pointer-events: none;
}
.about-content h2 { margin-bottom: 8px; }
.about-content p { font-size: 1.06rem; line-height: 1.8; }
.about-qualities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px; }
.quality-item { padding: 24px; background: var(--parchment); border-top: 2px solid var(--gold); }
.quality-item h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.quality-item p { font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro { background: var(--cream); text-align: center; padding: 80px 32px 60px; }
.services-intro p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.service-block { padding: 80px 32px; }
.service-block:nth-child(even) { background: var(--parchment); }
.service-block:nth-child(odd)  { background: var(--cream); }

.service-block-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.service-block-inner.flip .service-img { order: 2; }
.service-block-inner.flip .service-text { order: 1; }

.service-img img { width: 100%; height: 440px; object-fit: cover; }
.service-text h2 { margin-bottom: 8px; }
.service-text p { margin-bottom: 14px; }
.service-features { list-style: none; margin-top: 24px; border-top: 1px solid var(--border); }
.service-features li {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text-mid);
}
.service-features li::before { content: ''; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section { background: var(--cream); }
.gallery-grid { columns: 3; gap: 8px; }
.gallery-item { break-inside: avoid; margin-bottom: 8px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s, opacity 0.3s; opacity: 0.9; }
.gallery-item:hover img { transform: scale(1.03); opacity: 1; }

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(8,6,2,0.96); z-index: 9999;
  align-items: center; justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 2.2rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.lb-close:hover { color: var(--gold); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--cream); }
.contact-inner { max-width: 660px; margin: 0 auto; }
.contact-card {
  background: var(--parchment); border: 1px solid var(--border);
  padding: 56px 48px; margin-top: 56px; position: relative;
}
.contact-card::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(201,168,76,0.2); pointer-events: none;
}
.contact-detail {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
}
.contact-detail-value { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); text-align: center; }
.contact-detail-value a { color: inherit; transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--gold); }

.service-freq { background: var(--parchment); }
.service-freq-inner { max-width: var(--max-w); margin: 0 auto; }
.freq-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 48px; }
.freq-item { background: var(--cream); padding: 40px 32px; text-align: center; }
.freq-num {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: 8px; display: block;
}
.freq-item h3 { font-size: 1.2rem; margin-bottom: 12px; }
.freq-item p { font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--footer-bg); color: rgba(255,255,255,0.55); padding: 64px 32px 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; max-width: 270px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.85; }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .intro-inner, .featured-inner, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-image-accent, .about-image-frame { display: none; }
  .intro-image-wrap img, .about-image img { height: 380px; }
  .featured-image img { height: 360px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-block-inner,
  .service-block-inner.flip { grid-template-columns: 1fr; }
  .service-block-inner.flip .service-img,
  .service-block-inner.flip .service-text { order: unset; }
  .service-img img { height: 280px; }
  .about-qualities { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .freq-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  section { padding: 64px 24px; }
  .service-block { padding: 60px 24px; }
  .page-hero { height: 240px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
}
