/* ================================================================
   KRASHI CONTRACTING v2 — Main Stylesheet
   Design: DNB Renovations layout + Liberty NY colors
   Colors: #02314b navy | #0093e5 sky blue | #fff white | #0a0a0a black
================================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
  --navy:      #02314b;
  --blue:      #0093e5;
  --black:     #0a0a0a;
  --white:     #ffffff;
  --off-white: #f5f6f8;
  --gray:      #e8eaed;
  --text:      #1a1a1a;
  --text-mid:  #5a6472;
  --max-w:     1280px;
  --transition: 0.28s ease;
  --radius:    4px;
}

/* ================================================================
   ANNOUNCEMENT TICKER
================================================================ */
.ticker-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-item { padding: 0 2rem; }
.ticker-item strong { color: var(--blue); }
.ticker-sep { color: var(--blue); opacity: 0.6; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   NAVIGATION
================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--black);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img {
  height: 50px; width: auto;
  background: white;
  border-radius: 4px;
  padding: 3px 8px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  align-items: center;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--blue);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  border-bottom: none !important;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { background: #007acc; transform: translateY(-1px); }
.nav-cta .arrow-circle {
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: white;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--black);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .mobile-cta {
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 600;
  border-bottom: none;
}

/* ================================================================
   SHARED SECTION COMPONENTS
================================================================ */
/* Page hero (used on inner pages) */
.page-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,49,75,0.85) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.page-hero-inner h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero-badge .stars { color: #fbbf24; letter-spacing: 1px; }
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #007acc; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 100px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.arrow-circle {
  width: 24px; height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  transition: gap var(--transition), color var(--transition);
}
.text-link:hover { gap: 14px; color: var(--blue); }
.text-link-white { color: rgba(255,255,255,0.85); }
.text-link-white:hover { color: #fff; }

/* Eyebrow label */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
  display: block;
}

/* Section headings */
.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}
.section-heading.light { color: #fff; }
.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 580px;
  margin-top: 0.8rem;
}

/* Lead gen form (shared, appears on every page) */
.lead-form-section {
  background: var(--off-white);
  padding: 5rem 2rem;
}
.lead-form-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lead-form-inner .section-heading { margin-bottom: 0.5rem; }
.lead-form-inner .section-sub { margin: 0 auto 2rem; }
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d0d5dd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  appearance: none;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.lead-form .full { grid-column: 1 / -1; }
.lead-form textarea { resize: vertical; min-height: 100px; }
.lead-form-submit {
  grid-column: 1 / -1;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.lead-form-submit:hover { background: #007acc; }
.form-consent {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-mid);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-consent input { width: auto; margin-top: 2px; }

/* CTA Banner */
.cta-banner {
  background: var(--navy);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner .section-heading { color: #fff; margin-bottom: 0.5rem; }
.cta-banner .section-sub { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; }
.cta-banner .hero-btns { justify-content: center; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); }
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 3rem;
}
.footer-logo { height: 50px; margin-bottom: 1.2rem; background: white; padding: 4px 8px; border-radius: 4px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition), color var(--transition);
}
.social-btn:hover { border-color: var(--blue); color: var(--blue); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
  margin-top: 1.5rem;
}
.footer-col h4:first-child { margin-top: 0; }
.footer-col p, .footer-col li {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue); }
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--blue); }
.footer-form input,
.footer-form textarea,
.footer-form select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.footer-form input:focus,
.footer-form textarea:focus,
.footer-form select:focus {
  outline: none;
  border-color: var(--blue);
}
.footer-form select option { background: var(--black); }
.footer-form textarea { resize: vertical; min-height: 80px; }
.footer-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}
.footer-submit:hover { background: #007acc; }
.footer-certs {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-certs img {
  height: 44px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.footer-certs img:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.4rem 2rem;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--blue); }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ================================================================
   LIGHTBOX
================================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { max-width: 90vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lb-cap { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 1rem; }
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: white; font-size: 2rem; line-height: 1;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lb-close:hover { background: var(--blue); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: white; font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: var(--blue); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .full { grid-column: 1; }
  .footer-form-row { grid-template-columns: 1fr; }
  .page-hero { height: 360px; }
}
