/* ============================================================
   Aguilar Renovations Group Corp
   Design read: local home-renovation / construction landing page
   for US homeowners. Trustworthy-premium-craft language.
   Native HTML/CSS/JS, restrained scroll-reveal motion, brand
   navy/gold identity locked from the existing logo.
   Dials -> variance:6  motion:5  density:4
   ============================================================ */

:root {
  /* Brand accents - locked, mode independent */
  --navy: #1a2a3e;
  --navy-deep: #0e1720;
  --gold: #c9a15a;
  --gold-light: #ddbd85;

  /* Light mode tokens */
  --bg: #fbfaf8;
  --bg-alt: #f2efe9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #17222f;
  --text-muted: #5b6472;
  --border: #e7e2d8;
  --shadow-color: 220 30% 20%;

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* Light theme locked as the brand default - the navy/gold sections below
   already carry the "dark" moments, so content sections stay bright and
   airy rather than following the visitor's system dark-mode preference. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
i.ph, i.ph-fill { line-height: 1; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 2000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal],
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible,
[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -6px hsl(var(--shadow-color) / 0.35);
}
.btn--primary:hover { transform: translateY(-3px); filter: brightness(1.04); }
.btn--primary:active { transform: translateY(-1px) scale(0.98); }

.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.4);
}
.btn--whatsapp:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn--whatsapp:active { transform: translateY(-1px) scale(0.98); }

.btn--small { padding: 10px 22px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px hsl(var(--shadow-color) / 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo { height: 72px; width: auto; }
.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- Photo placeholder (blueprint motif, swap for real photography) ---------- */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f2ece0 0%, #e8dfcd 100%);
  overflow: hidden;
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,42,62,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,42,62,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.photo-placeholder i {
  position: relative;
  font-size: 56px;
  color: rgba(26, 42, 62, 0.3);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  background: radial-gradient(circle at 12% 8%, #253a54 0%, var(--navy) 45%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero__logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.hero__logo { height: 150px; width: auto; display: block; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  color: #c3ccd8;
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__badge {
  position: absolute;
  left: -20px;
  bottom: -20px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.45);
  border: 1px solid var(--border);
}
.hero__badge strong { font-size: 28px; color: var(--gold); font-weight: 800; line-height: 1; }
.hero__badge span { font-size: 13px; color: var(--text-muted); max-width: 140px; }

/* ---------- Marquee (single use on page) ---------- */
.marquee {
  background: var(--navy-deep);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  color: #cfd8e3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee__track i { color: var(--gold); font-size: 6px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; overflow-x: auto; }
}

/* ---------- Stats ---------- */
.stats { background: var(--surface); padding: 44px 0; border-bottom: 1px solid var(--border); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}
.stat__num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Section headers ---------- */
.section__eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
}
.services .section__title,
.gallery .section__title,
.testimonials .section__title { text-align: center; }
.section__title--left { text-align: left; }
.section__subtitle {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}
.services .section__subtitle,
.gallery .section__subtitle { text-align: center; }

/* ---------- Services: bento ---------- */
.services { padding: 96px 0; background: var(--bg); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 18px;
  grid-template-areas:
    "a a b c c d"
    "a a e e f f";
}
.bento__cell {
  position: relative;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background-size: cover;
  background-position: center;
}
.bento__cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -18px hsl(var(--shadow-color) / 0.3);
}
.bento__cell i {
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 12px;
}
.bento__cell h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.bento__cell p { font-size: 14px; color: var(--text-muted); max-width: 34ch; }

.bento__cell--dark {
  background: linear-gradient(150deg, #f2ece0 0%, #e8dfcd 100%);
  border: none;
  position: relative;
  overflow: hidden;
}
.bento__cell--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,42,62,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,42,62,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bento__cell--dark i { color: var(--gold); position: relative; }
.bento__cell--dark h3 { color: var(--text); position: relative; }
.bento__cell--dark p { color: var(--text-muted); position: relative; }

.bento__cell--gold {
  color: #fff;
  justify-content: flex-end;
  border: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--gold) 140%);
}
.bento__cell--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bento__cell--gold i { color: var(--gold-light); position: relative; }
.bento__cell--gold h3 { color: #fff; position: relative; }
.bento__cell--gold p { color: #efe4d1; position: relative; }

.bento__cell--a { grid-area: a; min-height: 420px; }
.bento__cell--b { grid-area: b; }
.bento__cell--c { grid-area: c; }
.bento__cell--d { grid-area: d; }
.bento__cell--e { grid-area: e; }
.bento__cell--f { grid-area: f; }

/* ---------- About ---------- */
.about { padding: 96px 0; background: var(--bg-alt); }
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about__image { position: relative; }
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px -18px hsl(var(--shadow-color) / 0.35);
}
.about__photo-caption {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  background: rgba(14, 23, 32, 0.72);
  color: #fff;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}
.about__content p { color: var(--text-muted); margin-bottom: 22px; max-width: 60ch; }
.about__list { margin-bottom: 4px; display: grid; gap: 12px; }
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
}
.about__list i { color: var(--gold); font-size: 20px; flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery { padding: 96px 0; background: var(--bg); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}
.gallery__item:hover { transform: scale(1.02); }
.gallery__item i { font-size: 40px; }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(10,14,20,0.85), transparent);
  color: #f2f4f6;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 96px 0; background: var(--bg-alt); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.55;
}
.testimonial-card figcaption { display: flex; flex-direction: column; font-weight: 700; color: var(--gold); font-size: 14px; }
.testimonial-card figcaption span { font-weight: 500; color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 84px 0;
  text-align: center;
}
.cta__inner h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta__inner p { color: #c3ccd8; margin-bottom: 30px; }
.cta .hero__buttons { justify-content: center; }

/* ---------- Contact ---------- */
.contact { padding: 96px 0; background: var(--bg); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact__info p { color: var(--text-muted); margin-bottom: 26px; max-width: 48ch; }
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact__item i { font-size: 20px; color: var(--gold); margin-top: 3px; }
.contact__item strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
.contact__item span { color: var(--text-muted); font-size: 14.5px; }
.contact__item a:hover { color: var(--gold); }
.contact__whatsapp { margin-top: 10px; }

.contact__form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -24px hsl(var(--shadow-color) / 0.3);
}
.contact__form h3 { margin-bottom: 22px; color: var(--text); font-size: 20px; font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 18px; }
.form__group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px hsl(var(--shadow-color) / 0.12);
  background: var(--surface);
}
.form__note { font-size: 12px; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 54px 0 40px; text-align: center; }
.footer__logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  margin: 0 auto 20px;
}
.footer__logo { height: 76px; display: block; }
.footer__nav { display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; flex-wrap: wrap; }
.footer__nav a { color: #c3ccd8; font-size: 14px; }
.footer__nav a:hover { color: var(--gold-light); }
.footer p { color: #8b96a4; font-size: 13.5px; }
.footer__tagline { color: var(--gold-light); margin-top: 6px; font-weight: 600; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.4s infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .about__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas:
    "a a" "b c" "d e" "f f"; }
  .bento__cell--a { min-height: 320px; }
}

@media (max-width: 768px) {
  .header__logo { height: 56px; }
  .hero__logo { height: 100px; }
  .nav {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .bento__cell--a { min-height: 280px; }
  .hero__badge { position: static; margin-top: -40px; margin-left: 20px; width: fit-content; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 140px 0 80px; background: var(--bg); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal__meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal p { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: var(--text-muted); }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal-page .header { border-bottom-color: var(--border); }
