/* ============================================================
   ATi Website 2026 — style.css
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #e92227;
  --red-dark:   #c41b1f;
  --bg:         #f8f8f8;
  --surface:    #ffffff;
  --text:       #1a1a1a;
  --text-muted: #555555;
  --border:     #e0e0e0;
  --radius:     6px;
  --max-w:      1200px;
  --section-py: 90px;
  --transition: 0.3s ease;
  --font:       'Montserrat', sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}
.section-header.centered .section-sub {
  margin: 0 auto;
}

/* ── Scroll Fade-In Animation ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }
.fade-up.delay-6 { transition-delay: 0.6s; }


/* ── Navigation ──────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--red);
  background: rgba(233,34,39,0.06);
}
.nav-links a.nav-external::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.6;
}
.nav-links a.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 7px 16px;
}
.nav-links a.nav-cta:hover {
  background: var(--red-dark);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 0.9rem; }
  .nav-links a.nav-cta { text-align: center; margin-top: 8px; }
}


/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 24px;
  max-width: 820px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 15px 36px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,34,39,0.35);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2s infinite;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-hint svg { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ── About ───────────────────────────────────────────────── */
#about {
  padding: var(--section-py) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}

.about-left .section-heading { margin-bottom: 8px; }
.about-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}
.about-license {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}

.about-right p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ── Services ────────────────────────────────────────────── */
#services {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--red);
}

.service-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  line-height: 1;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.residential-note {
  background: var(--surface);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}

.residential-note h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.residential-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 760px;
}


/* ── Markets ─────────────────────────────────────────────── */
#markets {
  padding: var(--section-py) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.market-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}
.market-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  border-color: var(--red);
}
.market-item .market-icon { display: flex; align-items: center; justify-content: center; color: var(--red); }
.market-item span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}


/* ── Gallery ─────────────────────────────────────────────── */
#gallery {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233,34,39,0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(233,34,39,0.18);
}

.gallery-no-images {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 48px 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-close { top: 20px; right: 20px; font-size: 1.2rem; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }


/* ── Partners ────────────────────────────────────────────── */
#partners {
  padding: var(--section-py) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 80px;
}
.partner-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.partner-item img {
  max-height: 50px;
  max-width: 120px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
  object-fit: contain;
}
.partner-item:hover img { filter: grayscale(0%) opacity(1); }

/* Fallback text if logo not found */
.partner-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── Contact ─────────────────────────────────────────────── */
#contact {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info .section-sub { margin-bottom: 36px; }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.contact-item-text .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  display: block;
}
.contact-item-text a:hover { color: var(--red); }

.contact-license {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-cta-box {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-cta-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.contact-cta-box p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.7;
}

.contact-cta-box .btn-primary {
  align-self: flex-start;
}

.contact-cta-box .cta-support-link {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.contact-cta-box .cta-support-link:hover { opacity: 1; color: #fff; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ── Footer ──────────────────────────────────────────────── */
#footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo img {
  height: 44px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
}

.footer-instagram a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-instagram a:hover { color: #fff; }


/* ── Service Pricing Page ────────────────────────────────── */
.pricing-page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.pricing-rule {
  border: none;
  border-top: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.pricing-hero {
  background: var(--text);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-hero p {
  opacity: 0.7;
  font-size: 1rem;
}

.pricing-hero .pricing-contact {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
}

.pricing-hero .pricing-contact a { color: var(--red); }

.pricing-section {
  padding: 64px 0;
  background: var(--bg);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.pricing-card-header {
  background: var(--text);
  color: #fff;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-card-header h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card-header .effective-date {
  font-size: 0.78rem;
  opacity: 0.6;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 28px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #fafafa;
}

.pricing-table td:first-child { color: var(--text); font-weight: 500; }
.pricing-table td:nth-child(2) { font-weight: 700; color: var(--red); white-space: nowrap; }
.pricing-table td:nth-child(3) { color: var(--text-muted); font-size: 0.85rem; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: #fafafa; }

.pricing-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .pricing-info-grid { grid-template-columns: 1fr; }
  .pricing-table th,
  .pricing-table td { padding: 12px 16px; }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.info-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.credentials-card {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.credentials-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.credentials-card p {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
}

/* Back to site link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 10px; }


/* ── Utility ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .markets-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
}
