/* ==========================================================================
   ACUITY — HOME PROVISIONAL
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
  --bg:     #f2f4f0;
  --fg:     #1a1e15;
  --accent: #2b6d0c;
  --muted:  rgba(26, 30, 21, 0.38);
  --border: rgba(26, 30, 21, 0.08);
  --text-secondary: #474d41;
}

/* ==========================================================================
   BASE
   ========================================================================== */

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Radial glow */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(43, 109, 12, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wrapper {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 8vw, 7rem);
}

/* ==========================================================================
   NAV
   ========================================================================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.logo {
  font-family: 'neue-haas-grotesk-display', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav .logo-img {
  height: 28px;
  width: auto;
  display: block;
}

footer .logo-img {
  height: 18px;
  width: auto;
  display: block;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 1rem;
}

.hero-claim {
  font-family: 'neue-haas-grotesk-display', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.45s;
}

.hero-claim em {
  font-style: normal;
  color: var(--accent);
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 1.5px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

/* ==========================================================================
   SERVICES BUTTONS (footer)
   ========================================================================== */

.service-btn {
  all: unset;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.service-btn::before {
  content: '— ';
  color: var(--accent);
}

.service-btn:hover,
.service-btn:focus-visible {
  color: var(--accent);
}

.service-btn:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   MODAL FLOTANTE
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(26, 30, 21, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  width: min(540px, 100%);
  box-shadow: 0 24px 60px rgba(26, 30, 21, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
  text-align: center;
}

.modal-overlay.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--fg);
  background: var(--border);
}

.modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal-eyebrow::before,
.modal-eyebrow::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
}

.modal-eyebrow::before { margin-right: 0.6rem; }
.modal-eyebrow::after  { margin-left: 0.6rem; }

.modal-title {
  font-family: 'neue-haas-grotesk-display', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0;
}

.modal-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.services-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.services-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.location {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-align: right;
}

.location a {
  color: var(--accent);
  text-decoration: none;
}

.location a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   LINE ACCENT
   ========================================================================== */

.line-accent {
  position: fixed;
  right: clamp(2rem, 5vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  animation: lineGrow 1.2s ease forwards 0.8s;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  from { height: 0; opacity: 0; }
  to   { height: 35vh; opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 768px) {
  .line-accent { display: none; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 600px) {
  body { overflow: auto; }
  html, body { height: auto; }

  .wrapper {
    padding: 2rem 1.75rem;
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero {
    padding: 2.75rem 0 2.5rem;
    justify-content: flex-start;
    align-self: start;
  }

  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
  }

  .eyebrow::before {
    width: 1.25rem;
    margin-right: 0.6rem;
  }

  .hero-claim {
    font-size: clamp(2.3rem, 9.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
  }

  .subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 2.25rem;
  }

  .cta-row { gap: 1rem; }

  .btn {
    font-size: 0.72rem;
    padding: 0.8rem 1.75rem;
  }

  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
  }

  .services-list li {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .service-btn {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .modal-panel {
    padding: 1.75rem;
  }

  .location {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-align: right;
  }
}

@media (max-width: 380px) {
  .wrapper { padding: 1.75rem 1.5rem; }
}
