/* =========================================================
   Brooklin Kitchens — shared stylesheet
   Navy + brass look,
   used on every page so the whole site matches.
   ========================================================= */

:root {
  --navy: #172131;
  --navy-2: #223047;
  --gold: #c9a35a;
  --gold-dark: #b48a3d;
  --cream: #f5f1eb;
  --cream-2: #f8f6f2;
  --white: #ffffff;
  --text: #2b2b2b;
  --heading: #2c2623;
  --muted: #676767;
  --line: #e7dfd4;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

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

.container { width: min(92%, var(--max)); margin: 0 auto; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.06;
  letter-spacing: 0.2px;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(23, 33, 49, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a { color: rgba(255,255,255,0.85); font-size: 0.98rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--gold); }
.phone-pill {
  padding: 11px 18px;
  border: 1px solid rgba(201,163,90,0.7);
  border-radius: 12px;
  color: var(--white) !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(201,163,90,0.12); }
.btn-ghost { color: var(--white); border: 1px solid rgba(201,163,90,0.8); background: rgba(14,21,32,0.35); }
.btn-ghost:hover { background: rgba(14,21,32,0.55); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(14,21,32,0.78) 0%, rgba(14,21,32,0.62) 34%, rgba(14,21,32,0.25) 62%, rgba(14,21,32,0.2) 100%),
    url('../img/hero.jpg') center center / cover no-repeat;
  color: var(--white);
}
.hero-inner { max-width: 760px; padding: 90px 0; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); max-width: 720px; margin-bottom: 20px; }
.hero p { max-width: 640px; font-size: 1.24rem; color: rgba(255,255,255,0.92); margin: 0 0 34px; }

/* ---------- Inner-page hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 80px 0 70px;
}
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: 12px; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,0.86); font-size: 1.15rem; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title h2 { font-size: clamp(2.3rem, 4vw, 4rem); color: var(--heading); margin-bottom: 10px; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 760px; }

/* ---------- Service cards (home) ---------- */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.service-card {
  width: min(100%, 360px);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-card img { width: 100%; height: 230px; object-fit: cover; }
.service-copy { padding: 26px 24px 24px; }
.service-copy h3 { font-size: 2rem; color: #332b28; margin-bottom: 10px; }
.service-copy p { margin: 0; color: var(--muted); font-size: 1.03rem; }

/* ---------- Detailed service cards (services page) ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.detail-card .service-copy p + p { margin-top: 10px; }
.detail-card b { color: var(--heading); }

/* ---------- Gallery ---------- */
.gallery-section { background: var(--cream-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-grid.three { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 14px 18px; color: var(--muted); font-size: 0.95rem; }
.gallery-item figcaption b { color: var(--heading); display: block; }

/* ---------- Why-choose split ---------- */
.split {
  padding: 0;
  background: linear-gradient(90deg, #f3eee8 0%, #f3eee8 45%, rgba(243,238,232,0.88) 55%, rgba(23,33,49,0) 62%),
    url('../img/why.jpg') right center / cover no-repeat;
}
.split-inner { min-height: 620px; display: flex; align-items: center; width: min(92%, var(--max)); margin: 0 auto; }
.split-copy { max-width: 520px; padding: 88px 0; }
.split-copy h2 { font-size: clamp(2.6rem, 4.4vw, 4.4rem); color: #2f2825; margin-bottom: 26px; }
.feature { display: flex; gap: 14px; margin-bottom: 24px; }
.feature-icon {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); margin-top: 11px; flex: 0 0 14px;
}
.feature h3 { font-size: 1.85rem; color: #2f2825; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.6rem; color: var(--heading); margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Panels, lists ---------- */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.panel h2 { font-size: 2.2rem; color: var(--heading); margin-bottom: 10px; }
.panel p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

/* ---------- Quote form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 26px; align-items: start; }
.contact-line { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-weight: 600; }
.contact-line a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-top: 14px; }
label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fdfcfa;
  color: var(--text);
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(201,163,90,0.55); border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { color: var(--muted); font-size: 0.95rem; }
.small { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: linear-gradient(180deg, rgba(18,26,40,0.95), rgba(24,35,52,0.97)); color: var(--white); padding: 0; }
.cta-inner { width: min(92%, var(--max)); margin: 0 auto; text-align: center; padding: 56px 0; }
.cta-inner h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 8px; }
.cta-inner p { margin: 0 0 22px; color: rgba(255,255,255,0.88); font-size: 1.12rem; }

footer { background: var(--navy); color: rgba(255,255,255,0.9); padding: 40px 0 26px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; color: var(--white); margin-bottom: 6px; }
footer .muted { color: rgba(255,255,255,0.65); }
footer h4 { margin: 0 0 8px; color: var(--gold); font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; }
footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: 6px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(14,21,32,0.74) 0%, rgba(14,21,32,0.55) 100%),
      url('../img/hero.jpg') center center / cover no-repeat;
  }
  .split {
    background:
      linear-gradient(180deg, rgba(243,238,232,0.96) 0%, rgba(243,238,232,0.9) 100%),
      url('../img/why.jpg') center center / cover no-repeat;
  }
  .split-inner { min-height: auto; }
  .detail-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-wrap { padding: 16px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .nav { gap: 16px; justify-content: flex-start; }
  .brand { font-size: 1.85rem; }
  .hero { min-height: 600px; }
  .hero-inner { padding: 72px 0; }
  .hero p { font-size: 1.05rem; }
  section { padding: 64px 0; }
  .service-card img { height: 210px; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-card img { height: 200px; min-height: 0; }
  .gallery-grid, .gallery-grid.three, .steps, .form-row { grid-template-columns: 1fr; }
  .gallery-item img { height: 260px; }
}
