/* ============================================
   SHARED STYLES — Cristian Garden Solutions
   Used across all pages (header, footer, buttons,
   typography, contact form, comparison slider, reveal)
   ============================================ */

:root {
    --earth-dark: #2c3e2c;
    --earth-medium: #4a6741;
    --earth-light: #7a9b71;
    --sage: #9db391;
    --sage-light: #c5d4c0;
    --sage-dark: #4c803e;
    --cream: #f5f2e8;
    --white: #ffffff;
    --terracotta: #d4764f;
    --sand: #e8dcc4;
    --deep-green: #1a2e1a;
    --text-dark: #1f2d1f;
    --border-light: rgba(42, 62, 42, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ---- Header ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--earth-medium);
    font-weight: 400;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a.active {
    background: var(--text-dark);
    color: white;
}

.nav-links a:hover:not(.active) {
    background: var(--sage-light);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ---- Hamburger ---- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--earth-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ---- Mobile menu ---- */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
    padding: 2rem 0;
    border-radius: 12px 0 0 12px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0 1.5rem;
}

.mobile-menu .nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu .nav-links li:last-child a {
    border-bottom: none;
}

.mobile-menu .nav-links a.active {
    color: var(--sage-light);
}

.mobile-menu .nav-links a:hover {
    color: var(--earth-dark);
    padding-left: 0.5rem;
}

.mobile-menu .nav-links a.active:hover {
    color: var(--sage);
}

.mobile-menu .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
}

.mobile-menu .btn-quote,
.mobile-menu .btn-call {
    width: 100%;
    text-align: center;
    display: block;
}

/* ---- Buttons ---- */
.btn-quote {
    padding: 0.6rem 1.25rem;
    background: var(--cream);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background: var(--sage-light);
}

.btn-call {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: var(--sage-light);
}

.btn-primary {
    padding: 0.9rem 1.75rem;
    background: var(--earth-medium);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid var(--earth-medium);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--earth-dark);
    border-color: var(--earth-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    padding: 0.9rem 1.75rem;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    border: 2px solid var(--text-dark);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--earth-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--earth-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--earth-medium);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ---- Footer ---- */
footer {
    padding: 3rem 5%;
    background: var(--earth-dark);
    color: var(--sage);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--sage);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--terracotta);
}

.footer-alt-sites {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.alt-site-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: rgba(197, 212, 192, 0.15);
    border: 1px solid rgba(197, 212, 192, 0.3);
    border-radius: 25px;
    color: var(--sage-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.alt-site-btn:hover {
    background: rgba(197, 212, 192, 0.25);
    border-color: var(--terracotta);
    color: var(--terracotta);
    transform: translateY(-2px);
}

.alt-site-btn span:first-child {
    font-size: 1.25rem;
}

/* ---- Contact Section (Footer Form) ---- */
.contact-alt {
    padding: 120px 2rem;
    background: var(--cream-white);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.contact-info-side > p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--sage-light);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--sage-light);
    margin-top: 0.25rem;
}

.contact-detail strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--cream);
}

.contact-detail p {
    color: var(--sage-light);
    margin: 0;
}

.form-alt {
    background: var(--sage-light);
    padding: 3rem;
    border-radius: 12px;
}

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

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--earth-dark);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--sage-medium);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--earth-dark);
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--sage-dark);
}

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

.phone-input-wrapper {
    display: flex;
    border: 2px solid var(--sage-medium);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--sage-dark);
}

.prefix-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #f0f4ee;
    border-right: 2px solid var(--sage-medium);
    min-height: 54px;
}

.prefix-flag-display { font-size: 1.2rem; }

#prefixInput {
    width: 48px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 0;
    color: var(--earth-dark);
}

.phone-input-wrapper input[type="tel"] {
    border: none;
    outline: none;
    padding: 0 1rem;
    flex: 1;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--earth-dark);
    min-height: 54px;
}

input[type="email"].invalid {
    border-color: #f0c040 !important;
    background: #fffbe6 !important;
    box-shadow: 0 0 0 3px rgba(240,192,64,0.2);
}

/* ---- Before/After Comparison Slider ---- */
.comparison-slider {
    width: 100%;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    cursor: ew-resize;
    user-select: none;
}

.comparison-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.comparison-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.comparison-before-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.comparison-before {
    width: calc(100vw);
    max-width: 1400px;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.comparison-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.comparison-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.label-before,
.label-after {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--earth-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ---- Accessibility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    padding: 1rem 5%;
    margin-top: 80px;
    background: var(--cream);
    font-size: 0.85rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--earth-light);
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--earth-medium);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
}

/* ---- Page Hero (subpages) ---- */
.page-hero {
    padding: 10rem 5% 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 103, 65, 0.85) 0%, rgba(44, 62, 44, 0.9) 100%),
                url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE — shared elements
   ============================================ */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .contact-alt {
        padding: 60px 1.25rem;
    }

    .footer-alt-sites {
        flex-direction: column;
        align-items: center;
    }

    .alt-site-btn {
        width: 100%;
        max-width: 300px;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-actions {
        display: none;
    }

    .contact-details {
        align-items: flex-start;
    }

    .contact-detail {
        justify-content: flex-start;
        text-align: left;
    }

    .contact-detail > div {
        text-align: left;
    }

    .contact-detail svg {
        margin-left: 1rem;
        margin-right: 0;
    }

    .comparison-container {
        height: 350px;
    }

    .label-before,
    .label-after {
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 8rem 1.25rem 3rem;
    }
}
