/* ═══════════════════════════════════════════════
   HANDRAHAN REMODELING — style.css
   Color palette:
     --navy     #1a2b3c   (dark background)
     --navy-2   #243d54   (hover state)
     --gold     #b8922e   (accent)
     --gold-lt  #d4a949   (hover)
     --cream    #f8f4ef   (light sections)
     --charcoal #2c2c2c   (body text)
     --mid      #717171   (secondary text)
     --border   #e2dcd3   (dividers)
═══════════════════════════════════════════════ */

:root {
  --navy:     #1a2b3c;
  --navy-2:   #243d54;
  --navy-3:   #0f1e2c;
  --gold:     #b8922e;
  --gold-lt:  #d4a949;
  --cream:    #f8f4ef;
  --white:    #ffffff;
  --charcoal: #2c2c2c;
  --mid:      #717171;
  --border:   #e2dcd3;
  --radius:   6px;
  --shadow:   0 4px 24px rgba(0,0,0,0.12);
  --trans:    0.25s ease;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

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

a { text-decoration: none; transition: color var(--trans); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
}

/* ── SECTION PADDING ── */
.section-pad { padding: 100px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
}

/* ── BACKGROUNDS ── */
.bg-cream  { background: var(--cream); }
.bg-white  { background: var(--white); }
.bg-dark   { background: var(--navy); }

/* ── SECTION TYPOGRAPHY ── */
.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.eyebrow-gold { color: var(--gold-lt); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-title.text-white { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.text-muted-light { color: #9eb0c2 !important; }

.section-header { margin-bottom: 3rem; }

.lead-body {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.5);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  transition: all var(--trans);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  transition: all var(--trans);
}
.btn-navy:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-lt);
  border: 1.5px solid var(--gold);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  transition: all var(--trans);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ═══════════ NAVBAR ═══════════ */
#mainNav {
  background: rgba(15, 30, 44, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 146, 46, 0.2);
  padding: 0.9rem 0;
  transition: background var(--trans), padding var(--trans), box-shadow var(--trans);
  z-index: 1030;
}

#mainNav.scrolled {
  background: rgba(15, 30, 44, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}

.nav-logo {
  height: 36px;
  width: auto;
  margin-right: 0.6rem;
}

.nav-brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar-brand { display: flex; align-items: center; }

#mainNav .nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0.6rem;
  transition: color var(--trans);
}
#mainNav .nav-link:hover { color: var(--gold-lt); }

.nav-cta { margin-left: 0.5rem; }

/* ═══════════ HERO ═══════════ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(15, 30, 44, 0.93) 0%,
    rgba(15, 30, 44, 0.78) 40%,
    rgba(15, 30, 44, 0.35) 70%,
    rgba(15, 30, 44, 0.15) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-lt);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  animation: bounce 2s ease infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════ CREDENTIALS STRIP ═══════════ */
.cred-strip {
  background: var(--gold);
  padding: 0;
}
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.25);
  text-align: center;
}
.cred-item:last-child { border-right: none; }

.cred-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.cred-number sup { font-size: 1rem; vertical-align: super; }

.cred-icon {
  font-size: 1.6rem;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cred-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.35rem;
}

@media (max-width: 576px) {
  .cred-item { border-bottom: 1px solid rgba(255,255,255,0.25); border-right: none; }
  .cred-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.25); }
}

/* ═══════════ SERVICES ═══════════ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform var(--trans), box-shadow var(--trans);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.service-img {
  height: 220px;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.6rem 1.5rem 1.75rem;
}
.service-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.service-body p {
  font-size: 0.92rem;
  color: var(--mid);
  margin: 0;
  line-height: 1.7;
}

/* ═══════════ GALLERY ═══════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,30,44,0.85));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2rem 0.75rem 0.75rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.gallery-item:hover .gallery-cap { opacity: 1; }

/* ═══════════ MILLWORK DIVISION ═══════════ */
.millwork-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}
.mm-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
.mm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mm-item:hover img { transform: scale(1.04); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.check-list li {
  font-size: 0.92rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check-list li i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .check-list { grid-template-columns: 1fr; }
}

/* ═══════════ BEFORE / AFTER ═══════════ */
.ba-section { background: var(--navy-3); }

.ba-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ba-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.ba-label {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.before-label { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.7); }
.after-label  { background: var(--gold); color: var(--white); }

.ba-attribution {
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════ TESTIMONIALS ═══════════ */
.t-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  transition: box-shadow var(--trans);
}
.t-card:hover { box-shadow: var(--shadow); }

.t-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.t-quote {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.t-footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: auto;
}

.t-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}
.t-loc {
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.03em;
}

/* ═══════════ ABOUT ═══════════ */
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 70%;
  height: 70%;
  background: var(--gold);
  opacity: 0.12;
  border-radius: var(--radius);
  z-index: -1;
}

.cred-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cred-badge-img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}
.cred-badge-text {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
}
.cred-badge-text strong { color: var(--charcoal); }

/* ═══════════ RESOURCES ═══════════ */
.res-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--trans);
  height: 100%;
}
.res-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.res-link i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color var(--trans);
}
.res-link:hover i { color: var(--gold-lt); }

/* ═══════════ CONTACT ═══════════ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255,255,255,0.85);
}
.ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(184,146,46,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-lt);
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-item strong {
  display: block;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.ci-item p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255,255,255,0.7);
}
.ci-item a { color: var(--gold-lt); }
.ci-item a:hover { color: var(--white); }

.cf-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  transition: border-color var(--trans), background var(--trans);
}
.cf-input::placeholder { color: rgba(255,255,255,0.4); }
.cf-input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  color: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,146,46,0.2);
}
.form-select.cf-input option { background: var(--navy); color: var(--white); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.map-wrap iframe { display: block; }

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  background: var(--navy-3);
  padding: 80px 0 0;
  border-top: 1px solid rgba(184,146,46,0.2);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-lt);
  margin-bottom: 0.75rem;
}

.footer-addr {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  font-style: normal;
}
.footer-addr a { color: rgba(255,255,255,0.5); }
.footer-addr a:hover { color: var(--gold-lt); }

.footer-heading {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--gold-lt); }

.footer-service-area {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 0;
}

/* Wicked Fast Badge */
.wf-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #1a3354, #243d54);
  border: 1px solid rgba(184,146,46,0.35);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  transition: all var(--trans);
  max-width: 240px;
}
.wf-badge:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, #1d3a5e, #2a4662);
}
.wf-icon {
  font-size: 1.5rem;
  color: var(--gold-lt);
  flex-shrink: 0;
}
.wf-text {
  display: flex;
  flex-direction: column;
}
.wf-text strong {
  font-size: 0.9rem;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}
.wf-text small {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background: rgba(15,30,44,0.97);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    margin-top: 0.5rem;
  }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
  .check-list { grid-template-columns: 1fr; }
  .millwork-mosaic { margin-top: 2rem; }
}

@media (max-width: 767px) {
  .hero-headline { font-size: 3.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cred-badges { flex-direction: column; align-items: flex-start; }
  .ba-card img { height: 220px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section-pad { padding: 60px 0; }
  .service-img { height: 180px; }
}
