/* ============================================================
   Burgh Custom Homes — site stylesheet
   Plain CSS, no framework. Edit freely.
   Colors: gold #f5bc3c (brand), gold-dark #e8b60f (hover),
           navy #2c3e50 (top bar / footer), charcoal #333 (text)
   ============================================================ */

:root {
  --gold: #f5bc3c;
  --gold-dark: #e8b60f;
  --navy: #2c3e50;
  --navy-dark: #1f2d3b;
  --charcoal: #333333;
  --text: #444444;
  --muted: #777777;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --max: 1170px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4, h5 { color: var(--charcoal); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
strong { color: var(--charcoal); }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .6em .8em; vertical-align: top; text-align: left; }
th { background: var(--gold); color: var(--charcoal); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7em 1.8em;
  border-radius: 100px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn-white:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-sm { padding: .5em 1.3em; font-size: .78rem; }

/* ---------- Top bar (social) ---------- */
.topbar { background: var(--navy); color: #ecf0f1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar .contact-line a { color: #ecf0f1; margin-right: 1.2em; }
.topbar .contact-line a:hover { color: var(--gold); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: #ecf0f1; border-radius: 4px;
}
.social a:hover { color: var(--gold); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social.dark a { color: var(--charcoal); background: #f0f0f0; }
.social.dark a:hover { background: var(--gold); }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; }
.logo img { height: 62px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--gold); border-radius: 6px;
  padding: 6px 10px; cursor: pointer; color: var(--charcoal);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; }
.nav { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 32px 14px; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal);
}
.nav > li > a:hover, .nav > li.active > a { color: var(--gold-dark); }
.nav > li.active > a { box-shadow: inset 0 -3px 0 var(--gold); }
.nav .has-sub > a::after { content: " \25BE"; font-size: .75em; color: var(--muted); }
.nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 6px 0; background: #fff;
  border-top: 3px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.nav .sub a { display: block; padding: 10px 18px; font-size: .82rem; color: var(--navy); white-space: nowrap; }
.nav .sub a:hover { background: var(--gold); color: var(--charcoal); }
.nav > li:hover > .sub, .nav > li:focus-within > .sub { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; min-height: 70px; }
  .logo img { height: 48px; }
  .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav > li > a { padding: 12px 6px; border-top: 1px solid var(--line); }
  .nav .sub { display: block; position: static; box-shadow: none; border-top: none; padding: 0 0 6px 16px; }
  .nav .sub a { padding: 8px 6px; }
  .nav > li.active > a { box-shadow: none; }
  .topbar .contact-line { display: none; }
}

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; height: 72vh; min-height: 420px; max-height: 720px; overflow: hidden; background: var(--navy-dark); }
.hero .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.hero .slide.active { opacity: 1; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.hero .caption {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px;
}
.hero .caption img.hero-logo { width: min(520px, 80vw); margin-bottom: 18px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.hero .caption h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .2em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero .caption p { font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .25em; text-transform: uppercase; margin: 0 0 1.4em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero .caption .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero .dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero .dots button.active { background: var(--gold); border-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-dark); color: #d6dde3; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--gold); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3em; }
.section-title p { color: var(--muted); margin: 0; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; }
.section-dark .section-title p { color: #aab4bd; }

/* Gold call-to-action band */
.cta-band { background: var(--gold); color: var(--charcoal); padding: 34px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 1.5rem; color: var(--charcoal); }
@media (max-width: 700px) { .cta-band .container { justify-content: center; text-align: center; } }

/* Intro text block */
.intro { max-width: 900px; margin: 0 auto; text-align: center; font-size: 1.1rem; }

/* Feature boxes (3-up) */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.feature { text-align: center; }
.feature .media { border-radius: 6px; overflow: hidden; margin-bottom: 18px; background: #fff; aspect-ratio: 495 / 400; display: flex; align-items: center; justify-content: center; }
.feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature .media.contain img { object-fit: contain; padding: 18px; }
.feature:hover .media img { transform: scale(1.04); }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Portfolio / home grid */
.homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .homes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .homes { grid-template-columns: 1fr; } }
.home-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.home-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.home-card:hover img { transform: scale(1.06); }
.home-card .mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%);
}
.home-card .mask strong { font-size: 1.15rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.home-card .mask span { font-size: .8rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.home-card.hidden { display: none; }
.filters { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button {
  background: none; border: 2px solid var(--line); border-radius: 100px; padding: .45em 1.2em;
  font: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--charcoal); cursor: pointer;
}
.filters button.active, .filters button:hover { background: var(--gold); border-color: var(--gold); }

/* Team cards */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 40px; justify-content: center; }
@media (max-width: 700px) { .team { grid-template-columns: minmax(0, 360px); } }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.member h3 { margin-bottom: .1em; }
.member .role { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.member .social { justify-content: center; margin: 8px 0; }

/* News cards */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb.contain img { object-fit: contain; padding: 20px; }
.post-card .body { padding: 18px 20px 20px; }
.post-card .cat { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--charcoal); background: var(--gold); padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.post-card h3 a { color: var(--charcoal); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card .date { font-size: .8rem; color: var(--muted); }

/* Partner logos */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partners div { background: #fff; border: 1px solid var(--line); border-radius: 6px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.partners img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partners div:hover img { filter: none; opacity: 1; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy-dark) center/cover no-repeat;
  color: #fff; padding: 70px 0; position: relative;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,40,.6); }
.page-header .container { position: relative; }
.page-header h1 { color: #fff; margin: 0 0 .2em; font-size: 2.4rem; text-transform: uppercase; letter-spacing: .05em; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #cfd6dc; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #8a97a3; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--gold); }

/* ---------- Content layouts ---------- */
.content { max-width: 860px; margin: 0 auto; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
@media (max-width: 900px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar .widget { margin-bottom: 36px; }
.sidebar .widget h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 14px; }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sidebar .widget li a { color: var(--charcoal); }
.sidebar .widget li a:hover { color: var(--gold-dark); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs a { aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: none; }
.service-row.flip .media { order: 2; }
.service-row .media { border-radius: 6px; overflow: hidden; aspect-ratio: 750 / 480; background: #fff; }
.service-row .media img { width: 100%; height: 100%; object-fit: cover; }
.service-row .media.contain img { object-fit: contain; padding: 20px; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } .service-row.flip .media { order: 0; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

.values { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.values li { background: var(--bg-alt); border-left: 4px solid var(--gold); padding: 12px 16px; font-weight: 700; color: var(--charcoal); }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

.bio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; } .bio img { max-width: 320px; } }
.bio img { border-radius: 6px; }
.bio .facts { list-style: none; padding: 0; margin: 1em 0; }
.bio .facts li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--line); }
.bio .facts li::before { content: "\25B8"; position: absolute; left: 4px; color: var(--gold-dark); }

.notice { background: var(--bg-alt); border-left: 4px solid var(--gold); padding: 20px 24px; margin: 1.5em 0; }
.notice h2 { margin-bottom: .3em; }

.badge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
@media (max-width: 700px) { .badge-row { grid-template-columns: 1fr; } }
.badge-row .card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 20px; text-align: center; }
.badge-row .card img { margin: 0 auto 14px; max-height: 180px; width: auto; }

/* Blog post */
.post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 1.5em; }
.post-meta .cat { background: var(--gold); color: var(--charcoal); padding: 2px 8px; border-radius: 3px; font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.post-hero { border-radius: 6px; margin-bottom: 28px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.post-nav a { color: var(--charcoal); }
.post-nav a:hover { color: var(--gold-dark); }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 1.5em 0; }
.figure-grid figure { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.figure-grid img { border-radius: 4px; margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .85rem; color: var(--charcoal); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #ccc; border-radius: 4px; background: #fff; margin-bottom: 18px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,188,60,.25); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; }
.alert.ok { background: #e6f5e9; border: 1px solid #9ad2a6; color: #1d5a2c; }
.alert.err { background: #fbe9e7; border: 1px solid #f0a89d; color: #7a2a1d; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.info-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.info-list li svg { position: absolute; left: 0; top: 11px; width: 18px; height: 18px; fill: var(--gold-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8c2cb; padding: 56px 0 0; font-size: .93rem; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .tagline { color: #d6dde3; }
.site-footer .social a { color: #b8c2cb; }
.subfooter { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; font-size: .82rem; color: #8a97a3; }
.subfooter .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
