/* ============================================
   Denns Well Services — Custom Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    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;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-800);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--teal-600);
}

.nav-cta {
    background: var(--teal-600);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 500 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta:hover {
    background: var(--teal-700);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    /* Explicit dark gradient background with light text */
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 25%, #14b8a6 50%, #0f766e 75%, #134e4a 100%);
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 148, 136, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(15, 118, 110, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--teal-200);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 8px 16px;
    border: 1px solid rgba(153, 246, 228, 0.25);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--teal-200);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.75;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #ffffff;
    color: var(--teal-700);
}

.btn-primary:hover {
    background: var(--teal-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--teal-600);
    border: 1px solid var(--teal-300);
}

.btn-outline-dark:hover {
    background: var(--teal-50);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Section Shared --- */
.section {
    padding: 120px 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--slate-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 560px;
    line-height: 1.75;
    font-weight: 300;
}

/* --- Services --- */
.services {
    background: var(--slate-50);
}

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

.service-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 36px 32px;
    transition: all 0.35s var(--ease-out);
}

.service-card:hover {
    border-color: var(--teal-200);
    box-shadow: 0 8px 40px rgba(13, 148, 136, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--teal-600);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card > p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
    margin-bottom: 20px;
}

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

.service-list li {
    font-size: 0.85rem;
    color: var(--slate-600);
    padding-left: 18px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
}

/* --- About --- */
.about {
    background: #ffffff;
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: 12px;
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--teal-200);
    border-radius: 12px;
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--slate-700);
    font-weight: 400;
}

.about-feature svg {
    color: var(--teal-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-content .btn {
    margin-top: 8px;
}

/* --- Process --- */
.process {
    background: var(--slate-900);
    color: #ffffff;
}

.process .section-label {
    color: var(--teal-400);
}

.process .section-title {
    color: #ffffff;
}

.process .section-desc {
    color: var(--slate-400);
}

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

.process-step {
    position: relative;
}

.process-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--teal-700);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.7;
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* --- Areas --- */
.areas {
    background: #ffffff;
}

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

.areas-content .section-title {
    margin-bottom: 20px;
}

.areas-content > p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.75;
    margin-bottom: 32px;
}

.areas-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.area-item {
    font-size: 0.9rem;
    color: var(--slate-700);
    padding: 10px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.area-item:hover {
    border-color: var(--teal-300);
    background: var(--teal-50);
    color: var(--teal-700);
}

.areas-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--slate-50);
    padding: 120px 0;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 64px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
}

.cta-title {
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.75;
    margin-bottom: 32px;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--slate-700);
    transition: color 0.2s ease;
}

.cta-contact:hover {
    color: var(--teal-600);
}

.cta-contact svg {
    color: var(--teal-500);
    flex-shrink: 0;
}

/* --- Form --- */
.cta-form-wrap h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-400);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: 8px;
    color: var(--teal-800);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-success svg {
    color: var(--teal-500);
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--teal-400);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--slate-400);
    max-width: 300px;
}

.footer-info h4,
.footer-hours h4 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-300);
    margin-bottom: 16px;
}

.footer-info p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-phone {
    display: inline-block;
    color: var(--teal-400);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: var(--teal-300);
}

.footer-hours p {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-emergency {
    margin-top: 12px;
    font-size: 0.8rem !important;
    color: var(--teal-400) !important;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

    .about-grid,
    .areas-grid,
    .cta-card {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.4s var(--ease-out);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 24px 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .about-grid,
    .areas-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-image-wrap img {
        height: 400px;
    }

    .about-image-accent {
        display: none;
    }

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

    .areas-list {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
        gap: 48px;
    }

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

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
