/* ============================================================
   A&A Drywall & Painting — styles
   Palette: deep slate-navy + warm amber accent
   ============================================================ */

:root {
  --navy-900: #0b2338;
  --navy-800: #0f2a43;
  --navy-700: #16395a;
  --navy-600: #1f4a72;
  --amber-500: #f5a623;
  --amber-600: #e0900f;
  --amber-100: #fdefd4;
  --ink: #16202b;
  --slate-700: #384656;
  --slate-500: #5c6a7a;
  --slate-300: #c6cfd8;
  --slate-100: #eef2f6;
  --paper: #ffffff;
  --bg: #f7f9fb;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 35, 56, .08);
  --shadow-md: 0 10px 30px rgba(11, 35, 56, .10);
  --shadow-lg: 0 24px 60px rgba(11, 35, 56, .16);

  --maxw: 1160px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }

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

a { color: var(--navy-600); text-decoration: none; }

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

.section { padding: 92px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--amber-600);
  margin: 0 0 14px;
}

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; color: var(--navy-900); }
.section-sub { color: var(--slate-500); font-size: 1.08rem; margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--amber-600); box-shadow: 0 12px 26px rgba(245,166,35,.45); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.02em; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.brand-sub { font-size: .74rem; color: var(--amber-600); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-menu > li > a:not(.btn) {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: var(--slate-700); font-weight: 600; font-size: .96rem;
  transition: background .15s ease, color .15s ease;
}
.nav-menu > li > a:not(.btn):hover { background: var(--slate-100); color: var(--navy-900); }
.nav-phone { color: var(--navy-800) !important; font-weight: 700 !important; }

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

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(245,166,35,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, #071a2b 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000, transparent 70%);
  opacity: .6;
}
.hero-inner { position: relative; z-index: 1; padding: 92px 0 104px; }
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--amber-500); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; margin: 0 0 20px; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: #cdd9e6; max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #b9c8d8; font-weight: 500; font-size: .98rem; }
.hero-trust svg { width: 20px; height: 20px; color: var(--amber-500); background: rgba(245,166,35,.14); border-radius: 50%; padding: 2px; }

/* ---------- Stats ---------- */
.stats { margin-top: -44px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--slate-100);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--slate-100);
}
.stat { background: var(--paper); padding: 26px 22px; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy-800); }
.stat-label { display: block; font-size: .9rem; color: var(--slate-500); margin-top: 2px; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.card {
  background: var(--paper); border: 1px solid var(--slate-100);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber-100); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--amber-100), #fff6e6);
}
.card h3 { font-size: 1.14rem; margin: 0 0 8px; color: var(--navy-900); }
.card p { margin: 0; color: var(--slate-500); font-size: .96rem; }

.services-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;
  margin-top: 48px; text-align: center;
}
.services-cta p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy-800); }

/* ---------- Why / About ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.why-media { position: relative; }
.why-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(245,166,35,.25), transparent 55%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.why-photo::after {
  content: "🎨🧱🖌️"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 3rem; opacity: .9; letter-spacing: 12px;
}
.why-badge {
  position: absolute; right: -16px; bottom: -22px;
  background: var(--amber-500); color: var(--navy-900);
  border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.why-badge-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.why-badge-text { font-size: .82rem; font-weight: 600; line-height: 1.2; }

.why-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 16px; color: var(--navy-900); }
.why-content p { color: var(--slate-700); margin: 0 0 16px; }
.why-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.why-list li { position: relative; padding-left: 30px; color: var(--slate-700); font-weight: 500; }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 4; column-gap: 16px; margin-bottom: 56px;
}
.gallery-item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0;
  background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); break-inside: avoid; line-height: 0;
}
.gallery-item img {
  width: 100%; height: auto; border-radius: var(--radius);
  transition: transform .35s ease, filter .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.94); }
.gallery-item:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.work-sub {
  text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy-900); margin: 0 0 34px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 18, 30, .92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox-img {
  max-width: min(92vw, 1000px); max-height: 86vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: contain;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Testimonials ---------- */
.work { background: var(--bg); }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testimonial {
  background: var(--paper); border: 1px solid var(--slate-100);
  border-radius: var(--radius); padding: 28px; margin: 0; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.stars { color: var(--amber-500); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 18px; color: var(--slate-700); font-size: 1rem; }
.testimonial figcaption { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); margin-top: auto; }
.featured-testimonial { border-color: var(--amber-500); box-shadow: 0 0 0 1px var(--amber-500), var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: #e7eef5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact .eyebrow { color: var(--amber-500); }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 16px; color: #fff; }
.contact-info > p { color: #b7c6d6; margin: 0 0 28px; max-width: 460px; }

.contact-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(245,166,35,.15); color: var(--amber-500);
}
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8ea3b8; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--amber-500); }

.hours h3 { font-size: 1.05rem; color: #fff; margin: 0 0 12px; }
.hours dl { margin: 0; display: grid; gap: 8px; max-width: 320px; }
.hours dl > div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,.14); padding-bottom: 6px; }
.hours dt { color: #b7c6d6; } .hours dd { margin: 0; color: #fff; font-weight: 600; }

.contact-form-wrap { background: var(--paper); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.contact-form h3 { margin: 0 0 22px; font-size: 1.4rem; color: var(--navy-900); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field label span[aria-hidden] { color: var(--amber-600); }
.optional { color: var(--slate-500); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--slate-300);
  border-radius: 10px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fdfefe; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,166,35,.2);
}
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.15); }
.form-note { text-align: center; color: var(--slate-500); font-size: .84rem; margin: 12px 0 0; }
.form-status { text-align: center; font-weight: 600; margin: 12px 0 0; min-height: 1.2em; }
.form-status.success { color: #1f9d55; }
.form-status.error { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer { background: #071a2b; color: #93a7ba; padding: 54px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { color: #fff; font-family: var(--font-head); font-weight: 800; margin: 0; }
.footer-tag { margin: 4px 0 0; font-size: .92rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: #b7c6d6; }
.footer-links a:hover, .footer-contact a:hover { color: var(--amber-500); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: none;
  place-items: center; background: var(--amber-500); color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(245,166,35,.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 70px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 3; }
}


@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--slate-100);
    padding: 14px 20px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li > a:not(.btn) { padding: 12px 14px; }
  .nav-menu .btn { width: 100%; margin-top: 6px; }
  .nav-phone { padding: 12px 14px !important; }
  .hero-inner { padding: 66px 0 80px; }
  .fab-call { display: grid; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .why-badge { right: 12px; }
  .gallery { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
}

@media (max-width: 760px) {
  .gallery { columns: 2; }
}

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