/* ============================================
   Ober Plumbing — Clean Minimalist Styles
   Color Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
    --cream-300: #f5e6c8;
    
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-800);
    letter-spacing: -0.02em;
}

.nav__logo-icon {
    display: flex;
    align-items: center;
    color: var(--emerald-600);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-600);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--emerald-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--emerald-600);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
    transition: all 0.2s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--emerald-50);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--stone-700);
    transition: all 0.3s ease;
}

.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 Section
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream-50);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-lg);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--stone-900);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--emerald-700);
}

.hero__description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--stone-600);
}

.trust-item svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.hero__image {
    position: relative;
}

.hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-600);
    color: #fff;
    border: 1px solid var(--emerald-600);
}

.btn--primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-300);
}

.btn--outline:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
}

.btn--white {
    background: #fff;
    color: var(--emerald-800);
    border: 1px solid #fff;
}

.btn--white:hover {
    background: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-4xl);
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--stone-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--stone-500);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-600);
    margin-bottom: var(--space-lg);
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-card__description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-500);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 7/6;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: var(--space-lg);
}

.about__stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--stone-200);
}

.stat {
    flex: 1;
    text-align: left;
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--stone-200);
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-us {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.why-item {
    padding: var(--space-2xl);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: var(--cream-50);
    transition: all 0.3s ease;
}

.why-item:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-md);
}

.why-item__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--emerald-100);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.why-item__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: var(--space-sm);
}

.why-item__description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--stone-500);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--cream-100);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}

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

.testimonial-card__quote {
    margin-bottom: var(--space-lg);
}

.testimonial-card__text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-card__author {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--space-4xl) 0;
    background: var(--emerald-800);
}

.cta__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3xl);
}

.cta__eyebrow {
    color: var(--emerald-300);
}

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.cta__description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--emerald-200);
    max-width: 480px;
}

.cta__actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact__description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--stone-500);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-detail__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-600);
    flex-shrink: 0;
}

.contact-detail__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 2px;
}

.contact-detail__value {
    font-size: 1rem;
    color: var(--stone-800);
    line-height: 1.6;
}

.contact-detail__value a {
    color: var(--emerald-700);
    transition: color 0.2s ease;
}

.contact-detail__value a:hover {
    color: var(--emerald-500);
}

/* Contact Form */
.contact-form {
    background: var(--cream-100);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-form__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--stone-600);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--stone-800);
    background: var(--cream-50);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--stone-400);
}

.form-input:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--emerald-700);
}

.form-success p {
    font-size: 1rem;
    color: var(--stone-600);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--stone-900);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.footer__logo-icon {
    color: var(--emerald-400);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--stone-400);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer__link {
    font-size: 0.875rem;
    color: var(--stone-400);
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--emerald-400);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__phone {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--emerald-400);
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: var(--emerald-300);
}

.footer__address {
    font-size: 0.875rem;
    color: var(--stone-500);
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--stone-800);
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--stone-600);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for reveal elements — visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Only animate when JS adds the class */
.reveal.animated {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal.animated {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__container {
        gap: var(--space-2xl);
    }
    
    .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;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-2xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--stone-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .hero__trust {
        justify-content: center;
    }
    
    .hero__image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero__image-accent {
        display: none;
    }
    
    .about__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 1;
    }
    
    .cta__container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta__actions {
        justify-content: center;
        width: 100%;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__links {
        justify-content: center;
    }
    
    .footer__brand {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .cta__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta__actions .btn {
        width: 100%;
    }
}
