/* =====================================================================
   SKY | NY Construction — styles.css
   Palette sampled from logo: brand blue #1A42A1
   ===================================================================== */

:root {
  --blue:        #1A42A1;   /* sampled from logo roof */
  --blue-bright: #2B54C7;   /* hover / highlight */
  --blue-soft:   #eaf0ff;
  --black:       #111113;
  --charcoal:    #1a1a1c;
  --charcoal-2:  #202024;
  --gray:        #6b7280;
  --gray-light:  #9ca3af;
  --line:        #e6e7ea;
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --text:        #16171a;
  --text-soft:   #4b5563;

  --maxw: 1160px;
  --radius: 6px;
  --shadow: 0 10px 40px rgba(17,17,19,.10);
  --ease: cubic-bezier(.2,.7,.2,1);

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section-dark { background: var(--charcoal); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  letter-spacing: .01em;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,66,161,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-bright); outline-offset: 2px;
}

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow-light { color: var(--blue-bright); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; color: var(--black); }
.section-title.light { color: #fff; }
.section-lead { color: var(--text-soft); max-width: 620px; margin-top: 14px; font-size: 1.05rem; }
.section-dark .section-lead { color: var(--gray-light); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(17,17,19,.08); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--text); transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-cta {
  background: var(--blue); color: #fff; padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--blue-bright); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--black); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 12px 22px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .nav-cta { color: var(--blue); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,19,.55) 0%, rgba(17,17,19,.72) 100%),
    radial-gradient(1200px 600px at 20% 30%, rgba(26,66,161,.28), transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 22px 90px; max-width: 780px; }
.hero-logo { height: 76px; width: auto; margin-bottom: 30px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-sub { margin: 22px 0 34px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e7e9ee; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,12px)} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.about-body p { color: var(--text-soft); margin-bottom: 16px; font-size: 1.06rem; }
.about-points { margin-top: 24px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; color: var(--text); }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px;
  background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.about-points strong { color: var(--black); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.07);
  padding: 26px 22px; border-radius: var(--radius);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(43,84,199,.6); background: #23242a; }
.service-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: var(--radius); background: rgba(43,84,199,.16); margin-bottom: 16px; }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.service-card p { color: var(--gray-light); font-size: .93rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--charcoal); border: 0; padding: 0; width: 100%;
}
.gallery-item:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 8 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; text-align: left;
  background: linear-gradient(180deg, transparent 40%, rgba(17,17,19,.78) 100%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; }
.gallery-cap .gc-cat { font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); font-weight: 700; }
.gallery-cap .gc-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-top: 4px; }

/* ---------- Process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { position: relative; padding: 28px 20px 24px; border-top: 2px solid rgba(255,255,255,.12); }
.process-step .step-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--blue-bright); display: block; margin-bottom: 10px; letter-spacing: -.03em; }
.process-step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--gray-light); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 8px; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--black); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.contact-list a { font-size: 1.15rem; font-weight: 600; color: var(--black); }
.contact-list a:hover { color: var(--blue); }

.estimate-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: 7px; color: var(--black); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,66,161,.12); outline: none; }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: .95rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfd2d8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 22px; flex-wrap: wrap; }
.footer-logo { height: 56px; width: auto; }
.footer-tag { font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--gray-light); margin-top: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-contact a { font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.footer-bottom p { font-size: .85rem; color: var(--gray-light); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.94); padding: 40px; opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.open { opacity: 1; }
.lb-figure { max-width: 1000px; width: 100%; }
.lb-figure img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 6px; }
.lb-figure figcaption { color: #fff; text-align: center; margin-top: 16px; font-family: var(--font-head); font-weight: 600; }
.lb-close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; transition: background .18s; }
.lb-nav:hover { background: var(--blue); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 16/9; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(6n+1) { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-contact { text-align: left; }
  .lightbox { padding: 16px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none; }
}
