/* ========================================
   R and R Grapes — Custom Styles
   Classic & Elegant | Emerald + Cream
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #3a2a1e;
    background-color: #fefdf8;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background-color: #064e3b;
    color: #fefdf8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ef;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* --- Navbar --- */
#navbar {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.08);
}

/* Logo */
.logo-mark {
    color: #064e3b;
    transition: transform 0.3s ease;
}
.logo-mark:hover {
    transform: rotate(-5deg) scale(1.05);
}
.logo-grape {
    fill: #10b981;
    transition: fill 0.3s ease;
}
.logo-stem, .logo-leaf {
    stroke: #065f46;
}
.logo-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #064e3b;
    display: block;
    line-height: 1.1;
}
.logo-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #047857;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
}

/* Nav Links */
.nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a3728;
    text-decoration: none;
    letter-spacing: 0.04em;
    position: relative;
    padding: 0.25em 0;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #065f46;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #065f46;
}
.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #064e3b;
    color: #fefdf8;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.25);
}
.btn-arrow {
    transition: transform 0.3s ease;
}
.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #064e3b;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid #064e3b;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background: #064e3b;
    color: #fefdf8;
    transform: translateY(-1px);
}

.btn-light {
    background: #fefdf8;
    color: #064e3b;
}
.btn-light:hover {
    background: #d1fae5;
}

/* Mobile Menu */
.menu-btn {
    color: #064e3b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}
.menu-btn:hover {
    transform: scale(1.1);
}
.menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.1);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.menu-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a3728;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-link:hover {
    color: #065f46;
    padding-left: 0.5rem;
}

/* --- Hero --- */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fefdf8;
    padding: 2rem;
}

.hero-eyebrow {
    margin-bottom: 1.5rem;
}
.eyebrow-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #047857;
    position: relative;
    padding-left: 2.5rem;
}
.eyebrow-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.75rem;
    height: 1.5px;
    background: #10b981;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    color: #2a1e14;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a3728;
    max-width: 520px;
}

.hero-actions {
    gap: 1rem;
}

.hero-stats {
    gap: 2rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #064e3b;
}
.stat-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b5b4f;
}
.stat-divider {
    width: 1px;
    background: rgba(6, 78, 59, 0.2);
    align-self: stretch;
}

/* Hero Right */
.hero-right {
    position: relative;
    overflow: hidden;
}
.hero-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(254, 253, 248, 0.3) 0%,
        transparent 30%
    );
    pointer-events: none;
}
.hero-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 2px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #064e3b;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.12);
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #065f46;
}
.divider-svg {
    opacity: 0.5;
}

/* --- Section Layout --- */
.section-padding {
    padding: 7rem 0;
}

.section-eyebrow {
    margin-bottom: 1rem;
}
.eyebrow-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #047857;
}
.eyebrow-light {
    color: #6ee7b7;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: #2a1e14;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.section-title-light {
    color: #fefdf8;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #10b981, #6ee7b7);
    margin-bottom: 2rem;
}
.section-divider-light {
    background: linear-gradient(to right, #6ee7b7, transparent);
}
.section-divider-center {
    margin-left: auto;
    margin-right: auto;
}

.body-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a3728;
}

/* --- About --- */
.about-images {
    position: relative;
    min-height: 580px;
}
.about-img-main {
    width: 75%;
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.15);
}
.about-img-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    box-shadow: 0 12px 36px rgba(6, 78, 59, 0.2);
    border: 4px solid #fefdf8;
}
.about-accent-bar {
    position: absolute;
    top: -1rem;
    right: 10%;
    background: #064e3b;
    color: #fefdf8;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
}

.about-values {
    gap: 1rem;
}
.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
.value-icon {
    color: #065f46;
    transition: transform 0.3s ease;
}
.value-item:hover .value-icon {
    transform: scale(1.15);
}
.value-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a3728;
}

/* --- Service Cards --- */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.service-card-img {
    height: 220px;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img {
    transform: scale(1.06);
}
.service-card-body {
    padding: 2rem;
}
.service-card-icon {
    color: #6ee7b7;
    margin-bottom: 1rem;
}
.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fefdf8;
    margin-bottom: 0.75rem;
}
.service-card-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #a7f3d0;
}

/* --- Community --- */
.community-img-wrapper {
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.15);
}
.community-quote-card {
    position: absolute;
    bottom: -2rem;
    left: -1rem;
    background: #fefdf8;
    padding: 1.75rem 2rem;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.12);
    border-left: 3px solid #10b981;
}
.community-quote-icon {
    color: #10b981;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}
.community-quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.65;
    color: #3a2a1e;
    margin-bottom: 0.75rem;
}
.community-quote-attr {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #047857;
}

.community-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.5rem;
    background: rgba(6, 78, 59, 0.05);
    border-radius: 2px;
}
.community-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #064e3b;
}
.community-stat-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b5b4f;
}

/* --- Visit Cards --- */
.visit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fefdf8;
    border: 1px solid rgba(6, 78, 59, 0.08);
    border-radius: 3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(6, 78, 59, 0.1);
}
.visit-card-icon {
    color: #065f46;
    margin-bottom: 1rem;
}
.visit-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2a1e14;
    margin-bottom: 0.75rem;
}
.visit-card-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a3728;
}
.visit-card-link {
    color: #047857;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.visit-card-link:hover {
    border-bottom-color: #047857;
}

/* --- Map --- */
.map-section {
    position: relative;
    height: 380px;
}
.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 78, 59, 0.85), rgba(6, 78, 59, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.map-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #fefdf8;
    margin-bottom: 0.75rem;
}
.map-description {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    color: #a7f3d0;
    margin-bottom: 1.75rem;
}

/* --- Contact Form --- */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 2.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    color: #fefdf8;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(254, 253, 248, 0.35);
}
.form-input:focus,
.form-textarea:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #10b981;
    color: #064e3b;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-submit:hover {
    background: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.btn-submit-icon {
    transition: transform 0.3s ease;
}
.btn-submit:hover .btn-submit-icon {
    transform: translate(2px, -2px);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info-icon {
    color: #6ee7b7;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.contact-info-label {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6ee7b7;
    margin-bottom: 0.2rem;
}
.contact-info-value {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: #fefdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info-value:hover {
    color: #6ee7b7;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.5s ease;
}
.success-icon {
    color: #10b981;
    margin-bottom: 1rem;
}
.success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fefdf8;
    margin-bottom: 0.5rem;
}
.success-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: #a7f3d0;
    line-height: 1.7;
}
.hidden {
    display: none;
}

/* --- Footer --- */
.footer {
    background: #022c22;
    color: #a7f3d0;
    padding: 4rem 0 2rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fefdf8;
}
.footer-logo-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6ee7b7;
    display: block;
}
.footer-tagline {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: #6ee7b7;
    max-width: 280px;
    line-height: 1.7;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #a7f3d0;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
    color: #fefdf8;
    padding-left: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-bottom p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    color: #6ee7b7;
    letter-spacing: 0.04em;
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #064e3b;
    color: #fefdf8;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.3);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 40;
}
.scroll-top:hover {
    background: #047857;
    transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero-left {
        padding: 3rem 2rem;
    }
    .hero-right {
        min-height: 50vh;
    }
    .about-images {
        min-height: 400px;
        margin-bottom: 2rem;
    }
    .about-img-main {
        width: 85%;
    }
    .about-img-accent {
        width: 50%;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .community-quote-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 5rem 0;
    }
    .hero-left {
        padding: 2.5rem 1.5rem;
    }
    .hero-badge {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    .about-images {
        min-height: 320px;
    }
    .about-img-main {
        width: 100%;
    }
    .about-img-accent {
        width: 55%;
    }
    .service-card-img {
        height: 180px;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .footer-bottom {
        text-align: center;
    }
    .map-section {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        justify-content: center;
        width: 100%;
    }
    .about-img-accent {
        display: none;
    }
}
