/* ==========================================
   SCROLL-DOWN INDICATOR
   ========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .scroll-indicator { display: none; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.scroll-indicator .scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 0.5; }
}

.scroll-indicator:hover { color: var(--white); }
.scroll-indicator:hover .scroll-arrow { border-color: var(--white); }

/* ==========================================
   BACK-TO-TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(124, 140, 116, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 140, 116, 0.4);
}

/* ==========================================
   TYPEWRITER EFFECT
   ========================================== */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--white);
    margin-left: 4px;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: baseline;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 3.5s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   METHOD CARD ENHANCEMENTS
   ========================================== */
.method-item {
    position: relative;
    padding: 2rem 1rem;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.method-item:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.method-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    line-height: 1.5;
}

.method-item:hover .method-desc {
    max-height: 80px;
    opacity: 1;
}

/* ==========================================
   PAGE TRANSITION OVERLAY
   ========================================== */
.page-transition {
    display: none;
}

/* ==========================================
   STATS / COUNTER SECTION
   ========================================== */
.section-stats {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.stat-divider {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0.8rem 0;
}

/* ==========================================
   DARK MODE TOGGLE
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: rgba(124, 140, 116, 0.15);
}

.navbar .dark-mode-toggle { color: var(--white); }
.navbar.scrolled .dark-mode-toggle,
.navbar.on-light .dark-mode-toggle { color: var(--text-dark); }

/* ==========================================
   DARK MODE THEME
   ========================================== */
body.dark-mode {
    --off-white: #1a1e1a;
    --white: #242a24;
    --text-dark: #e4e0db;
    --text-light: #b0ada8;
    --card-bg: rgba(36, 42, 36, 0.9);
    --secondary-color: #2d352d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar.scrolled,
body.dark-mode .navbar.on-light {
    background: rgba(26, 30, 26, 0.95);
}

body.dark-mode .navbar.scrolled .logo,
body.dark-mode .navbar.scrolled .nav-links a,
body.dark-mode .navbar.on-light .logo,
body.dark-mode .navbar.on-light .nav-links a { color: #e4e0db; text-shadow: none; }

body.dark-mode .navbar.scrolled .logo span,
body.dark-mode .navbar.on-light .logo span { color: var(--primary-light); }

body.dark-mode .navbar.scrolled .dark-mode-toggle,
body.dark-mode .navbar.on-light .dark-mode-toggle { color: #e4e0db; }

body.dark-mode .welcome-card { background-color: #2d352d; }
body.dark-mode .section-approach { background-color: #1a1e1a; }
body.dark-mode .method-icon { background-color: #2d352d; }
body.dark-mode .method-item:hover { background: #2d352d; }
body.dark-mode .contact-form { background: #242a24; }
body.dark-mode .form-group input,
body.dark-mode .form-group textarea { background: #1a1e1a; border-color: #3a433a; color: #e4e0db; }
body.dark-mode .footer { background-color: #111511; }
body.dark-mode .dialog-content { background: #242a24; color: #e4e0db; }
body.dark-mode .social-graces-box { background: #2d352d; }
body.dark-mode .page-transition { background: #1a1e1a; }
body.dark-mode .bio-section { border-bottom-color: rgba(183, 196, 178, 0.1); }
body.dark-mode .mobile-menu-btn { color: #e4e0db; }
body.dark-mode .about-img-wrapper { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* ==========================================
   STAGGERED REVEAL VARIANTS
   ========================================== */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s ease-out; }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 3rem; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stat-number { font-size: 2.5rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
    .whatsapp-float { bottom: 80px; left: 20px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    body.dark-mode .nav-links { background: #242a24; }
    body.dark-mode .nav-links a { color: #e4e0db; }
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* ==========================================
   PROMINENT SOCIAL GRACES BUTTON
   ========================================== */
.btn-social-graces {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.8rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-social-graces:hover {
    background: #c4904f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.45);
}

.btn-social-graces i {
    width: 18px;
    height: 18px;
}

/* ==========================================
   NATURE IMAGE BREAK SECTION
   ========================================== */
.section-nature-break {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.nature-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.nature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.nature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
}

.nature-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    max-width: 500px;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .section-nature-break { height: 300px; }
    .nature-quote { font-size: 1.4rem; max-width: 90%; }
    .nature-overlay { justify-content: center; text-align: center; }
}

/* ==========================================
   HERO PORTRAIT (ABOUT PAGE)
   ========================================== */
.hero-container-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    height: 100%;
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Account for navbar */
}

.hero-content-left {
    text-align: left;
}

.hero-content-left .hero-subtext-white {
    margin-left: 0;
}

.hero-portrait-right {
    display: flex;
    justify-content: flex-end;
}

.hero-portrait-frame {
    width: 380px;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--white);
    transform: rotate(2deg); /* Subtle tilt for personality */
    transition: var(--transition);
}

.hero-portrait-frame:hover {
    transform: rotate(0) scale(1.02);
}

.hero-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

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

@media (max-width: 1100px) {
    .hero-portrait-frame {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 900px) {
    .hero-container-split {
        grid-template-columns: 1fr;
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
        gap: 3rem;
    }
    .hero-content-left {
        text-align: center;
    }
    .hero-content-left .hero-subtext-white {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-portrait-right {
        justify-content: center;
    }
    .hero-portrait-frame {
        width: 280px;
        height: 350px;
        transform: rotate(0);
        border-width: 3px;
    }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   DROPDOWN MENU OVERRIDES
   ========================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown-content a {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    display: block;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    text-align: center;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.nav-dropdown-content a:hover {
    background-color: var(--off-white);
    color: var(--primary-color) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Dark mode dropdown */
body.dark-mode .nav-dropdown-content {
    background-color: var(--card-bg);
}
body.dark-mode .nav-dropdown-content a {
    color: var(--text-dark) !important;
}
body.dark-mode .nav-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile dropdown override */
@media (max-width: 768px) {
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.03);
        display: none;
        margin-top: 0.5rem;
        width: 100%;
        transform: none;
    }
    
    @keyframes fadeInMobile {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    body.dark-mode .nav-dropdown-content {
        background-color: rgba(255, 255, 255, 0.03);
    }
    
    .nav-dropdown.active .nav-dropdown-content, /* JS toggle */
    .nav-dropdown:hover .nav-dropdown-content {
        display: block;
        animation: fadeInMobile 0.2s ease-out;
    }
}

/* ==========================================
   CONTENT BOX (FOR SUBPAGES)
   ========================================== */
.content-box {
    max-width: 1000px; /* Increased from 800px */
    margin: 0 auto;
    background: var(--white);
    padding: 5rem 6rem; /* More generous vertical padding */
    border-radius: 0;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Elegant side accent line for the entire box */
.content-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    opacity: 0.8;
}

body.dark-mode .content-box {
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .content-box {
        padding: 4rem;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .content-box {
        padding: 3rem 1.5rem;
        border-radius: 0;
    }
    .content-box::before {
        width: 4px;
    }
}

/* ==========================================
   EXTRA MOBILE RESPONSIVENESS (Phones)
   ========================================== */
@media (max-width: 576px) {
    .methods-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        text-align: center;
    }
    .footer-brand .logo,
    .footer-links h5, 
    .footer-contact h5 {
        text-align: center;
    }
    .welcome-card {
        padding: 2rem 1.5rem !important;
    }
    .cta-banner {
        padding: 2rem 1.5rem !important;
    }
    .social-graces-box {
        padding: 2rem 1.5rem !important;
        border-left-width: 4px;
    }
    .approach-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Processwork Specific Enhancements */
.pw-text-block {
    position: relative;
}

.pw-section-header {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin: 4rem 0 2rem;
    position: relative;
    display: inline-block;
}

.pw-section-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.pw-sub-header {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-weight: 600;
}

.pw-paragraph {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.pw-accent-box {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 0;
    border-left: 5px solid var(--primary-color);
    margin: 3rem 0;
}

body.dark-mode .pw-accent-box {
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================
   PROCESSWORK — Inline figure / image
   ========================================== */
.pw-figure {
    margin: 3rem auto;
    padding: 0;
    max-width: 760px;
    text-align: center;
}

.pw-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 140, 116, 0.14);
    background: var(--white);
}

.pw-figure figcaption {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

body.dark-mode .pw-figure img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(183, 196, 178, 0.15);
    background: #242a24;
}

body.dark-mode .pw-figure figcaption {
    color: rgba(228, 224, 219, 0.65);
}

@media (max-width: 768px) {
    .pw-figure {
        margin: 2rem auto;
        max-width: 100%;
    }
    .pw-figure figcaption {
        font-size: 0.85rem;
    }
}

/* ==========================================
   SERVICES HERO CUSTOM STYLES
   ========================================== */
/* Fix hero text positioning */
.hero-services-container {
    position: relative;
    display: flex;
    justify-content: flex-end; /* push content to the right */
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: clamp(1rem, 10vw, 14rem); /* keep content away from left face area */
    padding-right: clamp(2rem, 8vw, 8rem);
    overflow: visible;
    box-sizing: border-box;
}

.hero-services-custom .hero-content-right,
.hero-content-right {
    position: absolute;
    right: clamp(2rem, 5vw, 6rem);
    top: 50%;
    transform: translateY(-50%);
    max-width: min(520px, 42vw);
    width: 100%;
    text-align: left;
    z-index: 3;
    margin: 0;
    padding-left: 1rem;
}

.hero-services-custom .hero-content-right h1,
.hero-services-custom .hero-content-right p,
.hero-content-right h1,
.hero-content-right p {
    margin: 0;
    line-height: 1.1;
}

/* Improve spacing and readability */
.hero-title-serif {
    margin-bottom: 1rem;
}

.hero-content-right .hero-subtext-white {
    max-width: 460px;
    line-height: 1.6;
    margin-left: 0; /* anchor to the heading's left edge */
}

/* Mobile fix (keep it centered on small screens) */
@media (max-width: 768px) {
    .hero-services-container {
        justify-content: center;
        text-align: center;
    }

    .hero-content-right {
        margin-right: 0;
        max-width: 90%;
    }
}

.hero-services-custom h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.hero-services-custom .hero-subtext-white {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.55;
    max-width: 460px;
    margin-left: 0; /* sits flush with the heading's left edge */
}

/* Make designer link in footer white and visible */
.footer-bottom .text-link {
    color: var(--white) !important;
    font-weight: 500;
    opacity: 1 !important;
}

@media (max-width: 1200px) {
    .hero-services-container { padding-right: 8%; }
}

@media (max-width: 992px) {
    .hero-services-container { padding-right: 5%; }
}

@media (max-width: 768px) {
    .hero-services-container {
        justify-content: center;
        padding: 0 1.5rem;
    }
    .hero-services-custom .hero-content-right,
    .hero-content-right {
        position: static;
        transform: none;
        max-width: 90%;
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0 auto;
    }
    .hero-services-custom h1 {
        margin-bottom: 1rem;
    }
    .hero-services-custom .hero-subtext-white {
        margin: 0 auto;
    }
    .hero-services-custom .hero-overlay {
        background: rgba(0,0,0,0.4) !important; /* darker overlay for mobile readability */
    }
}

/* ==========================================
   EVENTS PAGE — CALENDAR WRAPPER
   ========================================== */
.calendar-wrapper {
    position: relative;
    width: 100%;
    height: clamp(720px, 80vh, 1100px);
    border-radius: 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(124, 140, 116, 0.15);
}

.calendar-wrapper iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: var(--white);
}

body.dark-mode .calendar-wrapper {
    background: var(--white);
    border-color: rgba(255,255,255,0.1);
}

.calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.calendar-actions .btn-secondary {
    margin-top: 0;
}

@media (max-width: 768px) {
    .calendar-wrapper { height: clamp(620px, 75vh, 900px); }
    .calendar-actions { gap: 0.75rem; }
}

/* ==========================================
   FORM POLISH (CONTACT PAGE)
   ========================================== */
.contact-form {
    border: 1px solid rgba(124, 140, 116, 0.12);
}

.contact-form .form-group label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    background: var(--off-white);
    font-size: 1rem;
    color: var(--text-dark);
}

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

body.dark-mode .contact-form { border-color: rgba(255,255,255,0.06); }

/* ==========================================
   GENERAL PROFESSIONAL POLISH
   ========================================== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.text-link:hover {
    border-bottom-color: var(--primary-color);
}

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

/* Smoother scroll-bar (webkit only — graceful fallback elsewhere) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(124, 140, 116, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Soften CTA banner stacking on smaller screens */
@media (max-width: 992px) {
    .cta-banner { padding: 3rem 2rem; }
    .cta-text h2 { font-size: 2rem; }
}

/* Contact hero spacing on small screens */
@media (max-width: 768px) {
    .section-contact { padding: 140px 0 80px; }
    .contact-info h1 { font-size: 2.5rem; }
}

/* ==========================================
   NAVBAR — Subtle scrolled refinement
   ========================================== */
.navbar.scrolled,
.navbar.on-light {
    border-bottom: 1px solid rgba(124, 140, 116, 0.08);
}

body.dark-mode .navbar.scrolled,
body.dark-mode .navbar.on-light {
    border-bottom-color: rgba(255,255,255,0.05);
}

/* Contact page: business-card image polish */
.small-nature-touch img {
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.small-nature-touch img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

/* Slightly more elegant hero subtext on light hero pages */
.about-hero-page .hero-subtext-white.smaller {
    font-weight: 400;
}

/* Section paddings consistency on medium screens */
@media (max-width: 992px) {
    .section-welcome,
    .section-approach,
    .section-how-we-work { padding: 80px 0; }
}

/* ==========================================
   DESKTOP-ONLY LINE BREAK UTILITY
   ========================================== */
.desktop-br {
    display: block;
}

@media (max-width: 768px) {
    .desktop-br {
        display: none;
    }
}

/* ==========================================
   GLOBAL RESPONSIVE FIXES (small screens)
   ========================================== */

/* Prevent any horizontal scrolling on small viewports */
html, body {
    overflow-x: hidden;
}

/* Tablet and below */
@media (max-width: 992px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }

    /* Logo: cap size so it doesn't dominate the navbar on smaller screens */
    .logo-img {
        height: clamp(70px, 9vh, 95px);
        max-width: 220px;
    }
    .navbar.scrolled .logo-img,
    .navbar.on-light .logo-img {
        height: clamp(60px, 8vh, 80px);
    }

    /* Collapse common 2-column grids */
    .about-grid,
    .contact-grid,
    .hero-grid,
    .pw-two-col,
    .body-image-section {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
}

/* Phones */
@media (max-width: 768px) {
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Smaller logo on phones */
    .logo-img {
        height: clamp(56px, 8vh, 72px);
        max-width: 170px;
    }
    .navbar.scrolled .logo-img,
    .navbar.on-light .logo-img {
        height: clamp(48px, 7vh, 60px);
    }

    /* Footer logo — keep proportional on phones */
    .footer-brand .logo-img {
        height: clamp(70px, 9vh, 90px);
        max-width: 220px;
        margin: 0 auto;
    }

    /* Reduce card padding so cards don't crowd the viewport */
    .welcome-card,
    .approach-card,
    .service-card,
    .contact-form,
    .social-graces-box,
    .pw-accent-box,
    .content-box,
    .cta-banner {
        padding: 2rem 1.25rem !important;
    }

    .welcome-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Welcome icon: hide the giant decorative icon on phones to save space */
    .welcome-icon { display: none; }

    /* Headings scale */
    h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    h3 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .pw-section-header { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    /* Images never overflow their container */
    img, picture, video { max-width: 100%; height: auto; }

    /* Footer stacks neatly */
    .footer-grid { gap: 2.5rem; }

    /* Calendar (events page) shorter on phones */
    .calendar-wrapper {
        height: clamp(520px, 90vh, 780px);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container { padding-left: 0.85rem; padding-right: 0.85rem; }

    .logo-img {
        height: 50px;
        max-width: 150px;
    }
    .navbar.scrolled .logo-img,
    .navbar.on-light .logo-img {
        height: 44px;
    }

    .welcome-card,
    .approach-card,
    .service-card,
    .contact-form,
    .social-graces-box,
    .pw-accent-box,
    .content-box,
    .cta-banner {
        padding: 1.5rem 1rem !important;
    }

    .section-padding { padding: 48px 0; }

    /* Form inputs full width with comfortable touch targets */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 1rem;
        padding: 0.9rem;
    }

    /* Buttons full width on the smallest phones for easy tapping */
    .btn,
    .btn-primary,
    .btn-large {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   ACTIVE NAV LINK — visible on dark hero
   The default rule sets active = primary-color (olive),
   which disappears against a dark hero image. Over the
   hero we use white + an underline so it stands out.
   ========================================== */
.navbar:not(.scrolled):not(.on-light) .nav-links a.active {
    color: #ffffff;
    position: relative;
}
.navbar:not(.scrolled):not(.on-light) .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* Scrolled / on-light: a green underline below the active link
   instead of recoloring the text, so it remains legible. */
.navbar.scrolled .nav-links a.active,
.navbar.on-light .nav-links a.active {
    color: var(--primary-color);
    position: relative;
}
.navbar.scrolled .nav-links a.active::after,
.navbar.on-light .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ==========================================
   DARK MODE — text visibility fixes
   In dark mode, the theme redefines --white to a
   near-black for card backgrounds. That accidentally
   darkens any text using color: var(--white).
   Force those text spots back to a light color.
   ========================================== */
body.dark-mode .hero-title-serif,
body.dark-mode .hero-content h1,
body.dark-mode .hero-subtext-white {
    color: #f1ede6 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

body.dark-mode .navbar:not(.scrolled):not(.on-light) .logo,
body.dark-mode .navbar:not(.scrolled):not(.on-light) .nav-links a,
body.dark-mode .navbar:not(.scrolled):not(.on-light) .dark-mode-toggle {
    color: #f1ede6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .navbar:not(.scrolled):not(.on-light) .nav-links a.active {
    color: #ffffff;
}
body.dark-mode .navbar:not(.scrolled):not(.on-light) .nav-links a.active::after {
    background: #ffffff;
}

/* In dark mode the scrolled navbar already uses light text;
   keep the active underline visible in a soft light-green. */
body.dark-mode .navbar.scrolled .nav-links a.active,
body.dark-mode .navbar.on-light .nav-links a.active {
    color: var(--primary-light);
}
body.dark-mode .navbar.scrolled .nav-links a.active::after,
body.dark-mode .navbar.on-light .nav-links a.active::after {
    background: var(--primary-light);
}

/* ==========================================
   DARK MODE — FOOTER text visibility
   The footer uses color: var(--white) for its
   body text, but dark mode redefines --white to
   a near-black (#242a24), so the tagline and the
   designer email become invisible on the dark
   footer background (#111511). Force light text.
   ========================================== */
body.dark-mode .footer,
body.dark-mode .footer-brand p,
body.dark-mode .footer-contact p {
    color: rgba(241, 237, 230, 0.85) !important;
}

body.dark-mode .footer-links a {
    color: rgba(241, 237, 230, 0.7);
}
body.dark-mode .footer-links a:hover {
    color: #ffffff;
}

body.dark-mode .footer-bottom {
    color: rgba(241, 237, 230, 0.6);
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer-bottom .text-link {
    color: #f1ede6 !important;
}
body.dark-mode .footer-bottom .text-link:hover {
    color: #ffffff !important;
}

