/* ============================================
   Top Notch Home Renovations — Stylesheet
   ============================================ */

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

:root {
  --charcoal: #2C2C2C;
  --charcoal-deep: #1A1A1A;
  --charcoal-light: #3D3D3D;
  --coral: #E8634A;
  --coral-dark: #D14E36;
  --coral-light: #F4845F;
  --cream: #FDF6F0;
  --cream-dark: #F5E6DA;
  --warm-gray: #6B6560;
  --warm-gray-light: #9E9790;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 44, 44, 0.10);
  --shadow-lg: 0 8px 40px rgba(44, 44, 44, 0.14);
  --shadow-coral: 0 4px 20px rgba(232, 99, 74, 0.35);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-coral {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}

.btn-outline-coral:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; }

/* ============================================
   Section Shared
   ============================================ */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.7;
}

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

.section-header .section-sub {
  margin: 0 auto;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 44, 0.07);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  flex-shrink: 0;
}

.logo-icon {
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--coral);
  background: var(--cream);
}

.nav-cta {
  margin-left: 8px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(44, 44, 44, 0.07);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  background: var(--cream);
  color: var(--coral);
}

.mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal-deep);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.82) 0%,
    rgba(44, 44, 44, 0.65) 50%,
    rgba(232, 99, 74, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-light);
  background: rgba(232, 99, 74, 0.15);
  border: 1px solid rgba(232, 99, 74, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-title em {
  color: var(--coral-light);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid rgba(44, 44, 44, 0.06);
  transition: all var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--coral);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -40px;
  right: -30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.about-img-float img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-coral);
}

.about-badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.about-badge-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.about-lead {
  font-size: 18px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-content p {
  font-size: 16px;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  padding: 100px 0;
  background: var(--cream);
}

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

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid rgba(44, 44, 44, 0.05);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}

.testimonial-location {
  font-size: 13px;
  color: var(--warm-gray-light);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  padding: 100px 0;
  background: var(--charcoal-deep);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 99, 74, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}

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

.contact-lead {
  font-size: 17px;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}

.contact-item a {
  color: var(--coral);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--coral-dark);
  text-decoration: underline;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 44, 44, 0.05);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-note {
  font-size: 14px;
  color: var(--warm-gray-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1.5px solid rgba(44, 44, 44, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 99, 74, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

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

.form-success h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--warm-gray);
}

/* ============================================
   Map
   ============================================ */
.map-section {
  height: 350px;
  filter: grayscale(30%);
}

.map-section iframe {
  width: 100%;
  height: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--coral-light);
}

.footer-contact p {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--coral-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for no-JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-float {
    right: 0;
    bottom: -30px;
  }

  .about-badge {
    right: 0;
  }

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

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
