/* =============================================================
   SG CARPENTRY WALLINGFORD — main stylesheet
   Brand: deep navy + sunshine yellow, warm cream, charcoal text
   ============================================================= */

:root {
  --navy: #34453A;
  --navy-light: #455B4C;
  --yellow: #C9925E;
  --yellow-dark: #A0723E;
  --cream: #FAF7F2;
  --grey-100: #F4F5F7;
  --grey-300: #D1D5DB;
  --grey-600: #4B5563;
  --grey-800: #1F2937;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 6px rgba(52, 69, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(52, 69, 58, 0.12);
  --shadow-lg: 0 16px 40px rgba(52, 69, 58, 0.18);
  --radius: 10px;
  --max-width: 1200px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--grey-800);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
p  { margin-bottom: 1em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- TOP STRIP ---------- */
.topstrip {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topstrip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.topstrip a { color: var(--yellow); font-weight: 600; }

/* ---------- NAV ---------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.25rem; }
.brand-text .tag { font-size: 0.75rem; color: var(--grey-600); letter-spacing: 1px; text-transform: uppercase; }

.menu { display: flex; gap: 28px; list-style: none; align-items: center; }
.menu a { color: var(--grey-800); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: border 0.2s; }
.menu a:hover, .menu a.active { border-bottom-color: var(--yellow); color: var(--navy); }
.menu .cta { background: var(--yellow); color: var(--navy); padding: 10px 18px; border-radius: var(--radius); font-weight: 700; border-bottom: none; }
.menu .cta:hover { background: var(--yellow-dark); border-bottom: none; }

.menu-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(201,146,94,0.18) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .badge {
  display: inline-block; background: rgba(201,146,94,0.15);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 6px 14px; border-radius: 100px; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; max-width: 720px; }
.hero h1 .accent { color: var(--yellow); }
.hero .sub { font-size: 1.15rem; max-width: 620px; color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); }

/* ---------- TRUST BAR ---------- */
.trustbar {
  background: var(--cream);
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-300);
}
.trustbar .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trustbar .item .num { font-family: var(--font-display); font-size: 2rem; color: var(--navy); font-weight: 700; }
.trustbar .item .lbl { font-size: 0.85rem; color: var(--grey-600); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  display: inline-block; color: var(--yellow-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 12px;
}
.section-head p { color: var(--grey-600); font-size: 1.05rem; }

/* ---------- SERVICES GRID ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--grey-300);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all 0.25s; position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--yellow); }
.service-card .icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--navy); font-size: 1.6rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 8px; }
.service-card p { color: var(--grey-600); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- WHY-US ---------- */
.whyus { background: var(--cream); }
.whyus .row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.whyus ul { list-style: none; }
.whyus li {
  padding: 14px 0 14px 38px; position: relative;
  border-bottom: 1px solid var(--grey-300);
  font-size: 1.05rem;
}
.whyus li:last-child { border-bottom: none; }
.whyus li::before {
  content: '✓'; position: absolute; left: 0; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.whyus .visual {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 50px;
  color: var(--white);
  position: relative;
}
.whyus .visual h3 { color: var(--yellow); }
.whyus .visual .quote { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.4; margin-bottom: 20px; }
.whyus .visual .cite { color: rgba(255,255,255,0.7); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- AREAS ---------- */
.areas { background: var(--white); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.area-chip {
  text-align: center; padding: 16px;
  background: var(--cream); border: 1px solid var(--grey-300);
  border-radius: var(--radius); font-weight: 600; color: var(--navy);
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 600px; margin: 0 auto 28px; color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ---------- FOOTER ---------- */
footer {
  background: #1F2E23; color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; }
footer a:hover { color: var(--yellow); }
footer .brand-block .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
footer .brand-block img { height: 64px; background: rgba(255,255,255,0.05); padding: 6px; border-radius: 8px; }
footer .brand-block .name { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; }
footer .copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.85rem; text-align: center; color: rgba(255,255,255,0.55); }

/* ---------- PAGE-HEAD (inner pages) ---------- */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-head h1 { color: var(--white); margin-bottom: 12px; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--yellow); margin-bottom: 16px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- SERVICES DETAILED ---------- */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center; padding: 60px 0;
  border-bottom: 1px solid var(--grey-300);
}
.service-detail:nth-child(even) > div:first-child { order: 2; }
.service-detail .visual {
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 4rem;
  border: 1px solid var(--grey-300);
}
.service-detail h2 { font-size: 2rem; }
.service-detail ul { margin: 18px 0; list-style: none; }
.service-detail ul li { padding: 6px 0 6px 24px; position: relative; color: var(--grey-600); }
.service-detail ul li::before { content: '→'; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 700; }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--cream); position: relative; overflow: hidden;
  border: 1px solid var(--grey-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1rem; text-align: center; padding: 12px;
}
.gallery-item .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(11,37,69,0.92));
  color: var(--white); padding: 18px 14px 12px; font-weight: 600;
  font-size: 0.9rem; text-align: left;
}
.gallery-item.placeholder { background-color: var(--cream); }

/* ---------- PHOTO GALLERY (real photos, masonry) ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px;
}
.gallery-filters button {
  background: var(--white); border: 1px solid var(--grey-300); color: var(--grey-800);
  padding: 9px 18px; border-radius: 100px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.gallery-filters button:hover { border-color: var(--yellow); color: var(--navy); }
.gallery-filters button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.photo-gallery { columns: 3; column-gap: 16px; }
.photo {
  break-inside: avoid; margin-bottom: 16px; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-300);
  transition: transform 0.25s, box-shadow 0.25s;
}
.photo img { width: 100%; display: block; transition: transform 0.4s ease; }
.photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.photo:hover img { transform: scale(1.04); }
.photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(31,46,35,0.92));
  color: var(--white); padding: 30px 16px 14px; font-weight: 600;
  font-size: 0.92rem; opacity: 0; transform: translateY(8px); transition: all 0.25s;
}
.photo:hover .cap { opacity: 1; transform: translateY(0); }
.photo .zoom {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1rem; opacity: 0; transition: opacity 0.25s;
}
.photo:hover .zoom { opacity: 1; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,28,22,0.94); display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox .lb-cap {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: var(--white); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.3px;
}
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- HOME FEATURE STRIP (real photos on homepage) ---------- */
.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.feature-split .imgwrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-split .imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.showcase-grid a { border-radius: 8px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.showcase-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.showcase-grid a:hover img { transform: scale(1.08); }
.hero-photo { margin-top: 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 760px; }
.hero-photo img { width: 100%; display: block; }

@media (max-width: 900px) {
  .photo-gallery { columns: 2; }
  .feature-split { grid-template-columns: 1fr; gap: 30px; }
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .photo-gallery { columns: 1; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox .lb-nav { width: 42px; height: 42px; }
}

/* ---------- ABOUT ---------- */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-intro .photo {
  aspect-ratio: 4/5; border-radius: var(--radius); background: var(--cream);
  border: 1px solid var(--grey-300); display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 4rem;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.value-card { padding: 30px; background: var(--cream); border-radius: var(--radius); border-left: 4px solid var(--yellow); }
.value-card h3 { color: var(--navy); margin-bottom: 8px; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .block { padding: 24px 0; border-bottom: 1px solid var(--grey-300); }
.contact-info .block:last-child { border-bottom: none; }
.contact-info h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; }
.contact-info p, .contact-info a { color: var(--grey-600); font-size: 1.05rem; margin: 0; }
.contact-info a { color: var(--navy); font-weight: 600; }

.form-card { background: var(--cream); padding: 36px; border-radius: var(--radius); }
.form-card h3 { color: var(--navy); margin-bottom: 6px; }
.form-card p { color: var(--grey-600); margin-bottom: 22px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-300);
  border-radius: 8px; font-family: var(--font-body); font-size: 1rem; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(201,146,94,0.2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 20px;
    box-shadow: var(--shadow-md); gap: 14px; }
  .menu.open { display: flex; }
  .menu-toggle { display: block; }
  .services-grid, .gallery-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar .grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus .row, .about-intro, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 30px; }
  .service-detail:nth-child(even) > div:first-child { order: 0; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section, .hero { padding: 60px 0; }
}
@media (max-width: 540px) {
  .services-grid, .gallery-grid, .values-grid, .trustbar .grid, .areas-grid { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; }
}
