/* ===========================
   Sunshine Custom Homes
   Master Stylesheet
   =========================== */

:root {
  --color-bg:        #ffffff;
  --color-sand:      #f7f1e7;
  --color-cream:     #faf6ed;
  --color-ink:       #1c2a3a;
  --color-ink-soft:  #3a4a5e;
  --color-muted:     #6b7785;
  --color-line:      #e6dfd1;
  --color-sun:       #d6a64a;
  --color-sun-deep:  #b9892f;
  --color-sky:       #4d6a82;
  --color-success:   #2e7d4f;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius:       4px;
  --radius-lg:    10px;
  --shadow-sm:    0 2px 8px rgba(28,42,58,.06);
  --shadow-md:    0 10px 30px rgba(28,42,58,.10);
  --shadow-lg:    0 24px 60px rgba(28,42,58,.18);

  --container:    1180px;
  --gutter:       24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-sun-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; color: var(--color-ink-soft); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-sun-deep);
  margin-bottom: 18px;
}

.divider {
  width: 56px; height: 2px;
  background: var(--color-sun);
  margin: 0 0 22px;
  border: 0;
}
.center .divider { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--color-sun);
  color: #fff;
  border-color: var(--color-sun);
}
.btn-primary:hover {
  background: var(--color-sun-deep);
  border-color: var(--color-sun-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.85);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-ink);
}
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: block;
}
.brand-logo img {
  display: block;
  height: 72px;
  width: auto;
}
.brand-name { display: none; }

.nav-links {
  display: flex; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--color-sun);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-weight: 600; color: var(--color-ink);
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-phone .dot { width: 7px; height: 7px; background: var(--color-sun); border-radius: 50%; display:inline-block; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--color-ink);
  transform: translate(-50%, -50%);
  transition: all .25s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%,  5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  /* Hero background photo (great-room with backyard view).
     If file missing, page falls back to the dark gradient -- never AI art. */
  background:
    linear-gradient(180deg, rgba(12,20,32,.55) 0%, rgba(12,20,32,.78) 100%),
    url('../images/kitchen-greatroom.jpg') center center / cover no-repeat,
    linear-gradient(135deg, #1c2a3a, #2c3e54 60%, #3a536b);
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 35%, rgba(214,166,74,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  padding-top: 130px;
  padding-bottom: 140px;
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero p.lead {
  color: rgba(255,255,255,.85);
  font-size: 1.18rem;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero .eyebrow { color: var(--color-sun); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 620px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-sun);
}
.hero-stats div span {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---------- Page Header (interior pages) ---------- */
.page-header {
  position: relative;
  color: #fff;
  padding: 100px 0 80px;
  isolation: isolate;
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,25,40,.65), rgba(15,25,40,.82)),
    url('../images/interior-staircase.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #1c2a3a, #2c3e54 60%, #3a536b);
}
.page-header h1 { color: #fff; }
.page-header .crumbs {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.page-header .crumbs a { color: var(--color-sun); }

/* ---------- Section ---------- */
section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-cream { background: var(--color-cream); }
.section-sand  { background: var(--color-sand); }
.section-ink {
  background: var(--color-ink);
  color: #fff;
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: rgba(255,255,255,.78); }
.section-ink .eyebrow { color: var(--color-sun); }
.section-ink .divider { background: var(--color-sun); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Two-column intro ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sand);
  border: 1px dashed var(--color-line);
  box-shadow: var(--shadow-md);
}
.img-wrap:has(> img) { border: 0; }
.img-wrap > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.image-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg, var(--color-sand) 0 14px, var(--color-cream) 14px 28px);
  color: var(--color-sun-deep);
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.image-placeholder .ph-icon {
  width: 46px; height: 46px;
  border: 2px solid var(--color-sun-deep);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  font-family: var(--font-serif);
}

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--color-sand);
  color: var(--color-sun-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.svc-card h3 { margin-bottom: 10px; }
.svc-card p  { margin-bottom: 0; font-size: .96rem; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--color-sun);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px; left: 0;
  background: var(--color-sun);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: .1em;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p  { font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-filters button {
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  transition: all .2s ease;
}
.gallery-filters button:hover { color: var(--color-ink); }
.gallery-filters button.active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sand);
  border: 1px dashed var(--color-line);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:has(> img) { border: 0; }
.gallery-item > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover > img { transform: scale(1.04); }
.gallery-item.tall { aspect-ratio: 3 / 4; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item .image-placeholder { font-size: .68rem; }
.gallery-item .label { display: none; }

/* ---------- Featured project grid (homepage) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
  margin-top: 20px;
}
.featured-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sand);
}
.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-hero {
  grid-row: 1 / 3;
}
@media (max-width: 960px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .featured-hero {
    grid-row: auto;
    grid-column: 1 / 3;
  }
}
@media (max-width: 720px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }
  .featured-hero {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Testimonials ---------- */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.tst {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
}
.tst::before {
  content: "\201C";
  position: absolute;
  top: 10px; left: 18px;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-sun);
  opacity: .35;
}
.tst p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-ink);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.tst .who {
  margin-top: 18px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-ink);
}
.tst .who span {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  color: var(--color-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ---------- Service Area ---------- */
.zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.zip-grid span {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: .02em;
}
.cities-list {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cities-list span {
  background: rgba(214,166,74,.12);
  color: var(--color-sun-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info .info-row {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}
.contact-info .info-row:last-child { border-bottom: 0; }
.contact-info .info-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-sand);
  color: var(--color-sun-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.contact-info h4 {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 0 0 4px;
}
.contact-info p { margin: 0; color: var(--color-ink); font-weight: 500; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sun);
  box-shadow: 0 0 0 3px rgba(214,166,74,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-success {
  display: none;
  padding: 16px;
  background: rgba(46,125,79,.08);
  border: 1px solid var(--color-success);
  border-radius: var(--radius);
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-sun) 0%, var(--color-sun-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
  border-radius: var(--radius-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.92); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--color-sun-deep); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: #131e2c;
  color: rgba(255,255,255,.72);
  padding: 70px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-grid p { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-grid ul {
  list-style: none; margin: 0; padding: 0;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: var(--color-sun); }
.footer-brand .brand-logo img {
  height: 80px;
  width: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
}
.footer-brand .brand-name { display: none; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--color-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 10px; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 22px var(--gutter);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-sm);
    gap: 18px;
  }
  .hero-inner { padding-top: 80px; padding-bottom: 90px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
