/* =========================================================
   ATLANTA HOME PROJECTS — STYLESHEET
   Table of Contents:
   1. Custom Properties / Reset
   2. Base Typography
   3. Layout Helpers
   4. Buttons
   5. Header
   6. Hero
   7. Benefits Bar
   8. Services
   9. Gallery + Lightbox
   10. Process
   11. Contact CTA + Form
   12. Footer
   13. Animations
   14. Responsive Breakpoints
   ========================================================= */

/* ---------------------------------------------------------
   1. Custom Properties / Reset
   --------------------------------------------------------- */
:root {
  --color-charcoal: #2F3133;
  --color-dark-gray: #424242;
  --color-coral: #F05B57;
  --color-coral-dark: #DB4B47;
  --color-white: #FFFFFF;
  --color-bg-light: #F7F7F7;
  --color-border: #E7E7E7;
  --color-text-muted: #6B6D6F;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);

  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Keeps anchor targets clear of the sticky header */
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-dark-gray);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

svg {
  display: block;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   2. Base Typography
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: 2.25rem; }
h3 { font-weight: 600; font-size: 1.15rem; }

p { color: var(--color-text-muted); }

.accent { color: var(--color-coral); }

/* ---------------------------------------------------------
   3. Layout Helpers
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #1c1d1f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-weight: 600;
  padding: 13px 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  transition: gap var(--transition-fast), border-color var(--transition-fast);
}

.btn-link:hover {
  gap: 12px;
  border-color: var(--color-white);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-link:hover .icon-arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   5. Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-med), padding var(--transition-med);
}

/* Slight condense once the user starts scrolling */
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-charcoal);
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-coral);
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  transition: color var(--transition-fast);
}

.header-phone:hover {
  color: var(--color-coral);
}

.icon-phone {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(90vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(20, 21, 22, 0.88) 0%,
    rgba(20, 21, 22, 0.72) 32%,
    rgba(20, 21, 22, 0.38) 58%,
    rgba(20, 21, 22, 0.15) 100%
  );
}

.hero-content {
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 680px;
}

.hero-headline {
  font-size: 3.4rem;
  color: var(--color-white);
  margin-bottom: 22px;
}

.hero-subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   7. Benefits Bar
   --------------------------------------------------------- */
.benefits {
  background: var(--color-charcoal);
  padding: 44px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.icon-benefit {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--color-coral);
  margin-top: 2px;
}

.benefit h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.benefit p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   8. Services
   --------------------------------------------------------- */
.services {
  background: var(--color-white);
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: left;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-coral);
}

.icon-service {
  width: 34px;
  height: 34px;
  color: var(--color-coral);
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.3;
  hyphens: none;
  /* Reserve two lines so card copy aligns across the row */
  min-height: 2.6em;
}

.service-card p {
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   9. Gallery + Lightbox
   --------------------------------------------------------- */
.gallery {
  background: var(--color-bg-light);
  padding: 96px 0;
}

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

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 21, 22, 0.75) 0%, rgba(20, 21, 22, 0) 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-med), transform var(--transition-med);
  z-index: 1;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 16, 17, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: 900px;
  max-height: 85vh;
  width: 100%;
  text-align: center;
}

.lightbox-figure img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-figure figcaption {
  color: var(--color-white);
  margin-top: 16px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-nav svg {
  width: 26px;
  height: 26px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------------------------------------------------------
   10. Process
   --------------------------------------------------------- */
.process {
  background: var(--color-white);
  padding: 96px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: left;
}

.process-step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.process-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-white);
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   11. Contact CTA + Form
   --------------------------------------------------------- */
.contact-cta {
  background: var(--color-charcoal);
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.accent-underline {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-coral);
  border-radius: 2px;
  margin-bottom: 20px;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 32px;
  max-width: 380px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-coral);
}

.contact-link .icon {
  width: 20px;
  height: 20px;
  color: var(--color-coral);
  flex-shrink: 0;
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  align-self: center;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-coral);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.testimonial p {
  color: var(--color-dark-gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  color: var(--color-coral);
  margin-bottom: 12px;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
}

.testimonial cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  font-style: normal;
}

.estimate-form-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.estimate-form-card h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-charcoal);
  background: var(--color-bg-light);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-coral);
  background: var(--color-white);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.estimate-form-card .btn {
  margin-top: 6px;
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.icon-lock {
  width: 14px;
  height: 14px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--color-coral);
  margin: 0 auto 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.92rem;
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(240, 91, 87, 0.08);
  border: 1px solid rgba(240, 91, 87, 0.35);
  color: var(--color-charcoal);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-error a {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 24px 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li,
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-coral);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-charcoal);
  color: var(--color-white);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-icons a:hover {
  background: var(--color-coral);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   13. Animations
   --------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0) * 90ms);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero items should animate immediately without waiting on scroll observer delay quirks */
.hero .fade-up {
  transition-delay: calc(var(--delay, 0) * 150ms + 200ms);
}

/* ---------------------------------------------------------
   14. Responsive Breakpoints
   --------------------------------------------------------- */

/* 1440 and below: slightly tighten container */
@media (max-width: 1440px) {
  :root { --container-width: 1140px; }
}

/* 1200 and below */
@media (max-width: 1200px) {
  :root { --container-width: 96%; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-headline { font-size: 3rem; }
}

/* 992 and below (tablet) */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonial { order: 3; }
  .estimate-form-card { order: 2; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .process-steps::before { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 32px; }

  .hero-headline { font-size: 2.6rem; }

  .services, .gallery, .process, .contact-cta { padding: 72px 0; }
}

/* 768 and below (mobile landscape / large phones) */
@media (max-width: 768px) {
  .header-actions { gap: 12px; }

  .header-phone-number { display: none; }

  .header-phone {
    width: 38px;
    height: 38px;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 50%;
  }

  .btn-large { padding: 14px 24px; font-size: 0.92rem; }

  .hero { min-height: auto; padding: 130px 0 64px; }

  .hero-content { padding: 0; }

  .hero-headline { font-size: 2.2rem; }

  .hero-subhead { font-size: 1rem; }

  .hero-buttons { gap: 18px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { grid-template-columns: 1fr; row-gap: 32px; }

  .contact-info h2 { font-size: 1.65rem; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

/* 480 and below (small phones) */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .logo-tagline { display: none; }

  .hero-headline { font-size: 1.85rem; }

  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 16px; }

  .section-heading h2 { font-size: 1.75rem; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .service-card { padding: 22px 16px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .benefits-grid { grid-template-columns: 1fr; }

  .estimate-form-card { padding: 24px 20px; }

  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: 14px; right: 14px; }
}
