/* === RESET & BASE === */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-feature-settings: "tnum" 1, "lnum" 1; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 32px; transition: all 0.3s ease; }
nav.scrolled { background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); padding: 10px 32px; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; transition: height 0.3s; }
nav.scrolled .nav-logo img { height: 32px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: #fff; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; opacity: 0.9; transition: opacity 0.2s; }
.nav-phone:hover { opacity: 1; }
.nav-cta { background: #f8002d; color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.nav-cta:hover { background: #d9001f; }

/* === HERO === */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #111; }
#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-calculator { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; padding: 80px 24px 40px; display: flex; justify-content: center; }
#calc-iframe { width: 100%; height: calc(100vh - 120px); max-height: 800px; min-height: 600px; border: none; border-radius: 16px; background: transparent; }
.btn { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: #f8002d; color: #fff; }
.btn-primary:hover { background: #d9001f; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.scroll-arrow { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: 0.6; transition: opacity 0.2s; animation: bounce 2s infinite; }
.scroll-arrow:hover { opacity: 1; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-8px); } 60% { transform: translateX(-50%) translateY(-4px); } }

/* === STATS === */
#stats { background: #1a1a1a; padding: 48px 24px; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat-icon { color: #f8002d; font-size: 28px; }
.stat-svg { display: inline-block; }
.stat-label { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

/* === ABOUT (NEW) === */
#about { padding: 80px 24px; background: #fff; }
#about .container { max-width: 900px; }
.about-content { max-width: 780px; margin: 0 auto; }
.about-content p { font-size: 16px; color: #444; line-height: 1.75; margin-bottom: 16px; }
.about-content strong { color: #1a1a1a; }

/* === SECTION SHARED === */
.section-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #f8002d; margin-bottom: 12px; text-align: center; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: #666; font-size: 17px; max-width: 600px; margin: 0 auto 48px; }

/* === GALLERY === */
#gallery { padding: 80px 0; background: #f9f9f9; }
#gallery .container { margin-bottom: 40px; }
.gallery-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item { overflow: hidden; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; aspect-ratio: 4/3; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-large { grid-column: span 2; }
.gallery-large img { aspect-ratio: 16/9; }

/* === WHY ENSIGN === */
#why { padding: 80px 24px; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature-card { background: #f9f9f9; border: 1px solid #eee; border-radius: 12px; padding: 32px 28px; transition: border-color 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: #ddd; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feature-icon { width: 48px; height: 48px; background: rgba(248,0,45,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #f8002d; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* === PROCESS === */
#process { padding: 80px 24px; background: #f9f9f9; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-step { background: #fff; border-radius: 12px; padding: 32px 24px; border: 1px solid #eee; }
.step-number { width: 40px; height: 40px; background: #f8002d; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: #555; line-height: 1.65; }

/* === FEATURED HOME === */
#featured { padding: 80px 24px; background: #fff; }
.featured-grid { max-width: 900px; margin: 0 auto; }
.featured-images img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.featured-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.featured-thumbs img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.featured-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.featured-stat { text-align: center; padding: 16px 8px; background: #f9f9f9; border-radius: 8px; }
.fs-num { display: block; font-size: 22px; font-weight: 800; color: #1a1a1a; }
.fs-label { display: block; font-size: 12px; color: #888; margin-top: 2px; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #f0f0f0; color: #444; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }

/* === FAQ (NEW) === */
#faq { padding: 80px 24px; background: #f9f9f9; }
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: #ccc; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 16px; font-weight: 600; color: #1a1a1a; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; line-height: 1.4; }
.faq-chevron { transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; color: #999; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #f8002d; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 24px 20px; }
.faq-answer p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 10px; }
.faq-answer ul, .faq-answer ol { margin: 10px 0 10px 20px; }
.faq-answer li { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 6px; }
.faq-answer strong { color: #1a1a1a; }

/* === SPINNER === */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === CONTACT === */
#contact { padding: 80px 24px; background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); }
.contact-wrapper { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-text h2 { text-align: left; }
.contact-text p { font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 15px; }
.contact-form { background: #fff; border-radius: 16px; overflow: hidden; min-height: 500px; }

/* === FOOTER === */
footer { background: #0d0d0d; padding: 40px 32px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-left p { color: rgba(255,255,255,0.4); font-size: 13px; max-width: 320px; line-height: 1.6; }
.footer-right { display: flex; align-items: center; gap: 12px; }
.footer-right a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color 0.2s; }
.footer-right a:hover { color: #fff; }
.footer-sep { color: rgba(255,255,255,0.2); }
.footer-bottom { max-width: 1200px; margin: 16px auto 0; }
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 12px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    nav { padding: 12px 16px; }
    nav.scrolled { padding: 8px 16px; }
    .nav-phone { display: none; }
    .hero-calculator { padding: 70px 12px 20px; }
    #calc-iframe { height: calc(100vh - 90px); min-height: 500px; border-radius: 12px; }
    .btn { padding: 12px 20px; font-size: 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 28px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-large { grid-column: span 2; }
    .features-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-text h2 { text-align: center; }
    .featured-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; }
    h2 { font-size: 28px; }
    #about, #gallery, #why, #process, #featured, #faq, #contact { padding: 56px 16px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    #calc-iframe { min-height: 480px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-large { grid-column: span 1; }
    .featured-thumbs { grid-template-columns: 1fr; }
}
