/* ============================================
   ROOTER GUY — CSS
   Bold editorial style: forest green + off-white
   Playfair Display + Inter
   ============================================ */

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

:root {
    --green-900: #0B1F14;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52A07A;
    --green-100: #D8F3DC;
    --green-50: #F0FFF4;
    --cream: #FAF9F6;
    --cream-dark: #F5F4F0;
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray-900: #1A1A1A;
    --gray-700: #3A3A3A;
    --gray-500: #6B6B6B;
    --gray-300: #B0B0B0;
    --gray-100: #E8E8E8;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background-color: var(--cream);
    line-height: 1.6;
    -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;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--green-800);
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn--primary:hover {
    background-color: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn--outline-light:hover {
    background-color: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-logo-icon {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover {
    color: var(--green-800);
}

.nav-link--cta {
    background-color: var(--green-600);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background-color: var(--green-700);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link--cta {
    background-color: var(--green-700);
}

.navbar.scrolled .nav-link--cta:hover {
    background-color: var(--green-800);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--green-800);
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.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;
    background: linear-gradient(
        135deg,
        rgba(11, 31, 20, 0.88) 0%,
        rgba(27, 67, 50, 0.80) 50%,
        rgba(45, 106, 79, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 0 100px;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-headline br {
    display: block;
}

.hero-subheadline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 520px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

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

.section-header .section-title {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services --- */
.services {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--cream);
    border-radius: var(--radius-md);
    padding: 44px 36px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

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

.service-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-100);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--green-800);
    transition: all 0.3s ease;
}

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

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 14px;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    background-color: var(--cream);
}

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

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

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

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

.about-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Why Us --- */
.why-us {
    background-color: var(--green-800);
}

.why-us .section-eyebrow {
    color: var(--green-100);
}

.why-us .section-title {
    color: var(--white);
}

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

.why-card {
    padding: 44px;
    background-color: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.why-card:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.why-card-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.why-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.why-card-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* --- Service Area --- */
.service-area {
    background-color: var(--white);
}

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

.service-area-text .section-title {
    margin-bottom: 20px;
}

.service-area-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.service-area-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
}

.service-area-list li svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.service-area-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* --- CTA --- */
.cta {
    background-color: var(--cream-dark);
    padding: 120px 0;
}

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

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

.cta-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 48px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-800);
    transition: all 0.3s ease;
}

.cta-phone:hover {
    color: var(--green-600);
}

.cta-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--gray-500);
}

.cta-address svg {
    color: var(--green-600);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

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

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--gray-900);
    transition: all 0.3s ease;
    outline: none;
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(82, 160, 122, 0.15);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: var(--gray-300);
}

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

.form-success {
    display: none;
    margin-top: 20px;
    padding: 16px 24px;
    background-color: var(--green-100);
    color: var(--green-800);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: var(--green-900);
    color: var(--white);
    padding: 64px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

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

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--green-800);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.1rem;
    }
    
    .nav-link:hover {
        color: var(--white) !important;
    }
    
    .nav-link--cta {
        background-color: var(--green-600);
    }
    
    .hero-content {
        padding: 120px 0 80px;
    }
    
    .hero-headline {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 28px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-height: 400px;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 32px;
    }
    
    .service-area-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-area-map {
        min-height: 300px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .cta-phone {
        font-size: 1.4rem;
    }
}
