/* WalkingCows Consulting - Modern Professional Stylesheet */

:root {
    /* ===================================================================
     *  WalkingCows Consulting — "Meadow & Stone" Design System
     * ===================================================================
     *
     *  Palette mood: Professional calm. Grounded sophistication with
     *  a living, organic undertone — like a well-kept landscape at
     *  the edge of a quiet stone courtyard.
     *
     *  Strategy:
     *    - Analogous muted greens (derived from inspiration colors
     *      #CDD793 lime-sage and #ADCABF mint-sage)
     *    - Single warm earthy accent (muted gold-clay) for contrast
     *    - All text colors exceed WCAG AA on white (4.5:1+)
     *    - Primary works as CTA background with white text (4.5:1+)
     *    - Inspiration colors live on as --primary-light
     *
     *  Inspiration palette:
     *    #CDD793 — light yellow-green / lime-sage
     *    #ADCABF — light sage green / mint
     *
     * =================================================================== */

    /* ----- 1. PRIMARY COLOR ------------------------------------------
     *  Deep muted sage-forest. Derived by darkening and desaturating
     *  the midpoint of both inspiration colors toward forest green.
     *  Hex: #38654E  |  On white: 6.69:1 (AA, AAA large)
     *  White on this: 6.69:1 (AA) — safe for CTA backgrounds
     *  Use: Buttons, links, interactive elements, CTA section bg
     */
    --primary-color: #38654E;

    /* ----- 2. SECONDARY COLOR ----------------------------------------
     *  Mid-tone desaturated sage. Sits between primary and the
     *  inspiration colors — bridging dark interactive and light
     *  decorative tones.
     *  Hex: #7A9E8A  |  On white: 2.96:1 (decorative only)
     *  On --dark-bg: 4.81:1 (AA) — use for text on dark surfaces
     *  Use: Secondary buttons (with border), tags, borders, hover
     *  accents, footer link color, subtle UI chrome
     */
    --secondary-color: #7A9E8A;

    /* ----- 3. ACCENT COLOR -------------------------------------------
     *  Warm muted gold-clay. NOT green — creates visual interest
     *  and hierarchy against the cool sage palette. Earthy and
     *  desaturated, never loud.
     *  Hex: #946F40  |  On white: 4.56:1 (AA)
     *  White on this: 4.56:1 (AA) — can be used as button bg
     *  Use: Highlights, CTA emphasis, hover states on footer links,
     *  pricing callouts, badges, warm decorative touches
     */
    --accent-color: #946F40;

    /* ----- 4. DARK BACKGROUND ----------------------------------------
     *  Near-black with deep green undertone. Stays in the sage
     *  family without reading as pure charcoal.
     *  Hex: #1E2E26  |  White on this: 14.25:1 (AAA)
     *  Use: Footer, hero overlays, dark sections, mobile nav bg
     */
    --dark-bg: #1E2E26;

    /* ----- 5. LIGHT BACKGROUND ---------------------------------------
     *  Very subtle green-grey tint. Barely there on screen, but
     *  enough to distinguish alternating sections from pure white.
     *  Hex: #F3F5EE  |  --text-dark on this: 13.54:1 (AAA)
     *  Use: Alternating section bg, card containers, form bg
     */
    --light-bg: #F3F5EE;

    /* ----- 6. TEXT DARK ----------------------------------------------
     *  Near-black with green personality. Rich enough for body copy
     *  without the harshness of pure #000.
     *  Hex: #1A2B21  |  On white: 14.88:1 (AAA)
     *  Use: All body text, headings, primary content
     */
    --text-dark: #1A2B21;

    /* ----- 7. TEXT LIGHT ---------------------------------------------
     *  Muted green-grey for secondary content. Clearly lighter than
     *  body text but still fully accessible.
     *  Hex: #5B6960  |  On white: 5.78:1 (AA, AAA large)
     *  Use: Captions, metadata, timestamps, placeholders, subtitles
     */
    --text-light: #5B6960;

    /* ----- 8. SUCCESS ------------------------------------------------
     *  Clear, slightly saturated green. Distinct from primary to
     *  avoid confusion, but still in the green family.
     *  Hex: #2E7245  |  On white: 5.82:1 (AA)
     *  White on this: 5.82:1 (AA)
     *  Use: Success messages, form validation, positive indicators
     */
    --success: #2E7245;

    /* ----- 9. PRIMARY LIGHT ------------------------------------------
     *  Blend of both inspiration colors: #CDD793 and #ADCABF.
     *  This is where the original palette DNA lives — a soft
     *  sage-lime that works for backgrounds and decorative fills.
     *  Hex: #BDCFA9  |  On white: 1.66:1 (decorative only)
     *  --text-dark on this: 8.97:1 (AAA) — safe for text over it
     *  Use: Card hover bg, tag bg, button hover fills, section
     *  highlights, testimonial cards, feature cards, subtle tints
     */
    --primary-light: #BDCFA9;

    /* ----- Utility -------------------------------------------------- */
    --white: #ffffff;
    --border-color: #D4DDD6;       /* Sage-tinted border — softer than grey */
    --shadow: 0 4px 6px -1px rgba(30, 46, 38, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(30, 46, 38, 0.10);

    /* ===================================================================
     *  USAGE GUIDE — Quick Reference
     * ===================================================================
     *
     *  CTA SECTION:
     *    Background: var(--primary-color)     (#38654E)
     *    Text:       var(--white)             white on #38654E = 6.69:1 AA
     *    Button:     white bg, --primary-color text → inverted
     *    Button hover: --primary-light bg, --primary-color text
     *
     *  FOOTER:
     *    Background: var(--dark-bg)           (#1E2E26)
     *    Body text:  var(--white)             14.25:1 AAA
     *    Links:      var(--secondary-color)   (#7A9E8A) 4.81:1 AA
     *    Link hover: var(--accent-color)      warm gold highlight
     *
     *  CARDS:
     *    Background: var(--white)
     *    Shadow:     var(--shadow)
     *    Hover:      shadow → --shadow-lg; subtle --primary-light
     *               border-top or left-border accent
     *    Icon color: var(--primary-color)
     *    Title:      var(--text-dark)
     *    Body:       var(--text-light)
     *
     *  BUTTONS (Primary):
     *    Normal:     bg --primary-color, text white
     *    Hover:      bg slightly lighter (mix toward --secondary-color)
     *    Active:     bg slightly darker
     *
     *  BUTTONS (Secondary / Outline):
     *    Normal:     bg transparent, border --secondary-color, text --primary-color
     *    Hover:      bg --primary-light, border --primary-color
     *
     *  LINKS:
     *    Color:      var(--primary-color) — 6.69:1 AA
     *    Hover:      var(--accent-color)  — 4.56:1 AA (warm shift)
     *
     *  HOVER STATES:
     *    Subtle bg:  var(--primary-light) at reduced opacity or as-is
     *    Border:     var(--primary-color)
     *
     *  TAGS / BADGES:
     *    Background: var(--primary-light)
     *    Text:       var(--primary-color)
     *    Hover:      bg --primary-color, text white
     *
     *  INSPIRATION COLOR VISIBILITY:
     *    #CDD793 and #ADCABF are blended into --primary-light (#BDCFA9)
     *    and tint --light-bg (#F3F5EE). They also work well as:
     *    - Gradient stops: linear-gradient(135deg, #CDD793, #ADCABF)
     *    - Decorative blobs, illustrations, background patterns
     *    - Card hover overlays at low opacity
     *
     * =================================================================== */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 70px;
    width: auto;
}

.company-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/header_02.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Alternate Background Sections */
.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

/* CTA Section — light style, matching the rest of the page */
.cta-section {
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.cta-section .section-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cta-section .section-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-section .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-section .cta-button:hover {
    background-color: var(--accent-color);
}

.bg-dark .section-title,
.bg-dark h3 {
    color: var(--white);
}

.bg-dark .section-subtitle,
.bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    padding: 2rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
}

.footer-section p,
.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 46, 38, 0.2);
    color: var(--dark-bg);
}

/* Blog/Portfolio Items */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        height: 55px;
    }

    .company-name {
        font-size: 1.4rem;
    }

    .hero {
        padding: 4rem 1rem;
        background-position: center center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button.secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.lang-toggle {
    display: flex;
    background: var(--light-bg);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 17px;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(56, 101, 78, 0.3);
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .lang-btn {
        padding: 8px 18px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 101, 78, 0.3);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(56, 101, 78, 0.4);
}

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

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Article Content Styling */
.article-content {
    padding: 2rem 0;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-body em {
    color: var(--text-light);
}

.article-body strong {
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-tags span {
    transition: all 0.3s ease;
}

.article-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --border-color is now defined in the main :root block */

/* ALTCHA Widget Styling */
altcha-widget {
    display: block;
    --altcha-max-width: 100%;
}

altcha-widget::part(footer) {
    display: none;
}

altcha-widget::part(logo) {
    display: none;
}
