/* ============================================
   Graven Plumbing Heating and Electrical
   Bold Editorial — Forest Green + Off-White
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #1a1a1a;
    background-color: #F5F0EB;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1B4332;
    color: #F5F0EB;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #D4A373;
    color: #1B4332;
    border-color: #D4A373;
}
.btn-primary:hover, .btn-primary:focus {
    background: #c49261;
    border-color: #c49261;
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: #F5F0EB;
    border-color: #F5F0EB;
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background: #F5F0EB;
    color: #1B4332;
}

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

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

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4A373;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1B4332;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5F0EB;
    letter-spacing: -0.01em;
}
.logo-accent {
    color: #D4A373;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.main-nav ul {
    display: flex;
    gap: 1.75rem;
}
.main-nav ul li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(245, 240, 235, 0.8);
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}
.main-nav ul li a:hover {
    color: #D4A373;
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #F5F0EB;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #1B4332;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-content {
    padding-right: 1rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4A373;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: #F5F0EB;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.0625rem;
    color: rgba(245, 240, 235, 0.75);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1B4332;
    background: #D4A373;
    padding: 0.375rem 0.875rem;
    border-radius: 2px;
}

.hero-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 7rem 0;
    background: #F5F0EB;
}

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

.service-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(27, 67, 50, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1B4332;
    margin-bottom: 1rem;
}

.service-card p {
    color: #4a4a4a;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #D4A373;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}
.service-link:hover {
    color: #1B4332;
}
.service-link span {
    transition: transform 0.2s ease;
    display: inline-block;
}
.service-link:hover span {
    transform: translateX(4px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 7rem 0;
    background: #E8E0D6;
}

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

.about-image {
    border-radius: 6px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/6;
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-content > p {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(27, 67, 50, 0.15);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1B4332;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 7rem 0;
    background: #1B4332;
}

.why-us .section-eyebrow {
    color: #D4A373;
}

.why-us .section-title {
    color: #F5F0EB;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.why-item {
    padding: 2rem;
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}
.why-item:hover {
    border-color: rgba(212, 163, 115, 0.5);
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(212, 163, 115, 0.3);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.why-item h3 {
    font-size: 1.375rem;
    color: #F5F0EB;
    margin-bottom: 0.75rem;
}

.why-item p {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 7rem 0;
    background: #F5F0EB;
}

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

.testimonial-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(27, 67, 50, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.1);
}

.testimonial-quote {
    margin-bottom: 1.25rem;
}

.testimonial-card p {
    font-size: 0.9375rem;
    color: #4a4a4a;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1B4332;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: #6b6b6b;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 6rem 0;
    background: #D4A373;
}

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

.cta-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(27, 67, 50, 0.7);
    margin-bottom: 1rem;
}

.cta-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: #1B4332;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(27, 67, 50, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 7rem 0 0;
    background: #F5F0EB;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-desc {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #1B4332;
    margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
    font-size: 0.9375rem;
    color: #4a4a4a;
}
.contact-item a:hover {
    color: #D4A373;
}

/* --- Form --- */
.contact-form-wrap {
    background: #ffffff;
    border-radius: 6px;
    padding: 2.5rem;
    border: 1px solid rgba(27, 67, 50, 0.08);
}

.form-title {
    font-size: 1.5rem;
    color: #1B4332;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1B4332;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #F5F0EB;
    border: 1px solid rgba(27, 67, 50, 0.15);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4A373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

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

.form-note {
    font-size: 0.8125rem;
    color: #6b6b6b;
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}
.form-success svg {
    margin: 0 auto 1rem;
}
.form-success h3 {
    font-size: 1.5rem;
    color: #1B4332;
    margin-bottom: 0.5rem;
}
.form-success p {
    color: #4a4a4a;
    font-size: 0.9375rem;
}

/* --- Map --- */
.map-wrap {
    border-radius: 6px;
    overflow: hidden;
    margin: 0 1.5rem 4rem;
}
.map-wrap iframe {
    border-radius: 6px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0f2b20;
    padding: 4rem 0 2rem;
    color: #F5F0EB;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(245, 240, 235, 0.6);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4A373;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links ul li a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
    transition: color 0.2s ease;
}
.footer-links ul li a:hover {
    color: #D4A373;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(245, 240, 235, 0.7);
    line-height: 1.75;
}
.footer-contact a {
    color: rgba(245, 240, 235, 0.7);
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: #D4A373;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 235, 0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 240, 235, 0.4);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2.5rem;
    }
    .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;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(27, 67, 50, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul li a {
        font-size: 1rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 2rem 0 3rem;
        gap: 2rem;
    }
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    .hero-image {
        order: 2;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }
    .about-content > p {
        text-align: center;
    }
    .about-stats {
        justify-content: center;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}
