/* ═══════════════════════════════════════════════
   style.css — Healthy on Repeat
   Complete site stylesheet
═══════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────── */
:root {
    --primary-color:   #7a9b7f;
    --secondary-color: #5f7d63;
    --accent-color:    #a8c5ab;
    --text-dark:       #2d3e2f;
    --text-light:      #f8f9f8;
    --bg-cream:        #faf9f6;
    --shadow:          rgba(122, 155, 127, 0.15);

    /* Aliases for blog/recipe components */
    --primary:         #7a9b7f;
    --primary-dark:    #5f7d63;
    --primary-light:   rgba(122, 155, 127, .13);
    --primary-glow:    rgba(122, 155, 127, .28);
    --border:          #dde8de;
    --surface:         #f4f8f4;
    --bg:              #ffffff;
    --text:            #2d3e2f;
    --text-muted:      #6b806e;
    --shadow-sm:       0 2px 8px  rgba(122,155,127,.10);
    --shadow-md:       0 4px 20px rgba(122,155,127,.15);
    --shadow-lg:       0 8px 32px rgba(122,155,127,.20);
    --radius-sm:       8px;
    --radius-md:       12px;
    --radius-lg:       16px;
    --radius-pill:     50px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--secondary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
ul  { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Loading Screen ───────────────────────────── */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}
#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.loading-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1);    opacity: .9; }
    50%       { transform: scale(1.05); opacity: 1;  }
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navigation ───────────────────────────────── */
nav {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 60px;
    cursor: pointer;
    transition: opacity .2s;
}
.logo:hover { opacity: .85; }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color .3s, background .3s;
    padding: .5rem 1rem;
    border-radius: 5px;
}
.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(122,155,127,.1);
    text-decoration: none;
}
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(122,155,127,.1);
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ── Hero Section ─────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: .95;
}
.cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    display: inline-block;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    text-decoration: none;
    color: var(--primary-color);
}

/* ── Content Sections ─────────────────────────── */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
    width: 100%;
}
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* ── About Section ────────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}
.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}
.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}
.about-highlights { list-style: none; margin-top: 1.5rem; }
.about-highlights li {
    padding: .5rem 0 .5rem 2rem;
    position: relative;
    color: var(--text-dark);
}
.about-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ── Contact Form ─────────────────────────────── */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: .5rem;
    color: var(--text-dark);
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color .3s;
    background: white;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s;
}
.submit-button:hover { background-color: var(--secondary-color); }

/* ── Login ────────────────────────────────────── */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}
.login-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}
.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ── Footer ───────────────────────────────────── */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}
.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-section p,
.footer-section a {
    color: rgba(248,249,248,.8);
    text-decoration: none;
    display: block;
    margin-bottom: .45rem;
    font-size: .9rem;
    transition: color .2s;
}
.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.social-links {
    display: flex;
    gap: .75rem;
    margin-top: .85rem;
    justify-content: center;
}
.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(122,155,127,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s;
    text-decoration: none;
    color: white;
    font-size: .95rem;
}
.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}
.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: .7;
    font-size: .82rem;
}

/* ── Alerts ───────────────────────────────────── */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}
.alert-success {
    background: var(--primary-light);
    border: 1px solid rgba(122,155,127,.3);
    color: var(--secondary-color);
}
.alert-error,
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ── Blog Search Form ─────────────────────────── */
.blog-filters {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 5px 5px 16px;
    max-width: 700px;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    transition: border-color .2s, box-shadow .2s;
}
.blog-filters:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 24px var(--primary-glow);
}
.blog-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.blog-search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    pointer-events: none;
    opacity: .5;
}
.blog-search-input {
    width: 100%;
    padding: 9px 10px 9px 22px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: .93rem;
    outline: none;
    box-sizing: border-box;
}
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-select-wrap {
    display: flex;
    align-items: center;
    border-left: 1.5px solid var(--border);
    margin: 4px 0 4px 8px;
    padding-left: 8px;
}
.blog-filter-select {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: .88rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding: 9px 26px 9px 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237a9b7f' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-color: transparent;
    max-width: 150px;
}
.blog-filter-select:focus { color: var(--text-dark); }
.btn-blog-search {
    flex-shrink: 0;
    padding: 10px 22px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--primary-glow);
    transition: background .2s, box-shadow .2s, transform .1s;
}
.btn-blog-search:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-1px);
}
.btn-blog-search:active { transform: translateY(0); box-shadow: none; }
.btn-blog-clear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    margin-left: 6px;
    background: var(--surface);
    transition: border-color .2s, color .2s, background .2s;
}
.btn-blog-clear:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff5f5;
}
.blog-search-results-info {
    text-align: center;
    margin: -.75rem auto 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}
.blog-search-results-info strong { color: var(--text-dark); }

/* ── Blog Grid & Cards ────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow);
}
.blog-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border-bottom: 1px solid var(--border);
}
.blog-content { padding: 1.5rem; }
.blog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--secondary-color);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: .5rem;
}
.blog-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: .5rem;
    font-weight: 700;
    line-height: 1.4;
}
.blog-excerpt {
    color: #666;
    font-size: .93rem;
    line-height: 1.6;
    margin-bottom: .6rem;
}
.blog-meta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin: .5rem 0;
}
.blog-date {
    color: var(--primary-color);
    font-size: .85rem;
    margin-top: .75rem;
    font-weight: 500;
}
.blog-read-more {
    display: inline-block;
    margin-top: .6rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s, color .2s;
}
.blog-read-more:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* ── Recipe Page ──────────────────────────────── */
.recipe-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.recipe-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.recipe-breadcrumb a { color: var(--secondary-color); text-decoration: none; }
.recipe-breadcrumb a:hover { text-decoration: underline; }
.recipe-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.recipe-hero-emoji { font-size: 5rem; line-height: 1; flex-shrink: 0; }
.recipe-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--secondary-color);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: .5rem;
}
.recipe-title { font-size: 2rem; font-weight: 700; margin: .25rem 0 .5rem; color: var(--text-dark); }
.recipe-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: .5rem; line-height: 1.6; }
.recipe-date { font-size: 13px; color: var(--text-muted); }
.recipe-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.recipe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    flex: 1;
    min-width: 80px;
    text-align: center;
}
.recipe-stat-icon { font-size: 1.4rem; }
.recipe-stat-value { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.recipe-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.recipe-nutrition { margin-bottom: 2rem; }
.recipe-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.recipe-section-title small { font-size: .8rem; font-weight: 400; color: var(--text-muted); margin-left: .4rem; }
.nutrition-cards { display: flex; gap: .75rem; flex-wrap: wrap; }
.nutrition-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    flex: 1;
    min-width: 90px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem .75rem;
    text-align: center;
}
.nutrition-card.nutrition-kcal {
    background: var(--primary-light);
    border-color: rgba(122,155,127,.35);
}
.nutrition-value { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.nutrition-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.recipe-body { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 2rem; }
.recipe-ingredients {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    align-self: start;
}
.ingredients-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.ingredients-list li {
    font-size: .95rem;
    color: var(--text-dark);
    padding: .5rem .75rem;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    line-height: 1.4;
}
.recipe-instructions { align-self: start; }
.instructions-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.instructions-list li { display: flex; gap: 1rem; align-items: flex-start; }
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}
.step-text { font-size: .95rem; color: var(--text-dark); line-height: 1.6; padding-top: .3rem; }
.recipe-related { margin-bottom: 2rem; }
.recipe-back { margin-top: 1rem; }
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    background: var(--surface);
    text-decoration: none;
    font-size: .9rem;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--secondary-color);
    background: white;
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px var(--shadow);
        display: none;
        gap: .25rem;
    }
    .nav-menu.active  { display: flex; }
    .hero h1          { font-size: 2rem; }
    .hero p           { font-size: 1.1rem; }
    .about-content    { grid-template-columns: 1fr; }
    .section-title    { font-size: 2rem; }
    .blog-grid        { grid-template-columns: 1fr; }
    .footer-content   { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 640px) {
    .blog-filters {
        border-radius: var(--radius-lg);
        padding: 8px 8px 8px 14px;
        flex-wrap: wrap;
        gap: .5rem;
    }
    .blog-search-wrap  { flex: 1 1 100%; }
    .blog-select-wrap  {
        border-left: none;
        border-top: 1.5px solid var(--border);
        padding-left: 2px;
        margin: 0;
        padding-top: 6px;
        flex: 1;
    }
    .blog-filter-select { max-width: 100%; width: 100%; }
    .btn-blog-search    { flex: 1; margin-left: 0; border-radius: var(--radius-md); }
    .btn-blog-clear     { margin-left: 0; border-radius: var(--radius-md); width: auto; padding: 10px 16px; height: auto; }
    .recipe-hero        { flex-direction: column; align-items: center; text-align: center; }
        font-size: 4rem;
    }
    .recipe-title     { font-size: 1.5rem; }
    .recipe-body      { grid-template-columns: 1fr; }
    .recipe-stats     { gap: .75rem; }
    .nutrition-cards  { gap: .5rem; }
    .nutrition-card   { min-width: 70px; padding: .75rem .5rem; }
    .nutrition-value  { font-size: 1.1rem; }
    .blog-image       { height: 120px; font-size: 2.5rem; }
    .section-title    { font-size: 1.6rem; }
    .contact-container,
    .login-container  { padding: 2rem 1.25rem; }
    .hero h1          { font-size: 1.7rem; }
    .hero p           { font-size: 1rem; }
}
/* ── Contact Page ─────────────────────────────── */
.contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* Hero banner */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0 0 24px 24px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}
.contact-hero-inner { max-width: 560px; margin: 0 auto; }
.contact-hero-icon  { font-size: 2.8rem; display: block; margin-bottom: .75rem; }
.contact-hero h1    { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.contact-hero p     { font-size: 1.05rem; opacity: .92; }

/* 2-col layout */
.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Info cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.contact-info-card.contact-info-highlight {
    background: var(--primary-light);
    border-color: rgba(122,155,127,.3);
}
.contact-info-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: .1rem;
}
.contact-info-card h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
    margin-bottom: .25rem;
}
.contact-info-card p,
.contact-info-card a {
    font-size: .92rem;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.5;
}
.contact-info-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.contact-socials {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.contact-socials a {
    font-size: .88rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}
.contact-socials a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Form card */
.contact-form-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border);
}

/* Success & error */
.contact-success {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #eaf5eb;
    border: 1px solid rgba(122,155,127,.35);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .93rem;
    color: var(--secondary-color);
}
.contact-success span:first-child { font-size: 1.3rem; flex-shrink: 0; }
.contact-success strong { display: block; font-weight: 700; margin-bottom: .2rem; }
.contact-success p { color: var(--text-muted); font-size: .88rem; margin: 0; }

.contact-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.contact-errors p {
    color: #b91c1c;
    font-size: .9rem;
    margin-bottom: .25rem;
}
.contact-errors p:last-child { margin-bottom: 0; }

/* Form fields */
.cform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.cform-group {
    margin-bottom: 1.25rem;
}
.cform-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.req { color: var(--primary-color); }
.cform-group input,
.cform-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e4ded6;
    border-radius: 10px;
    font-size: .95rem;
    background: var(--bg-cream);
    color: var(--text-dark);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    box-sizing: border-box;
}
.cform-group input::placeholder,
.cform-group textarea::placeholder { color: #b0b8b1; font-style: italic; }
.cform-group input:focus,
.cform-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(122,155,127,.15);
}
.cform-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit button */
.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .95rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(122,155,127,.35);
    margin-top: .5rem;
}
.contact-submit:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(122,155,127,.45);
}
.contact-submit:active {
    transform: translateY(0);
    box-shadow: none;
}
.submit-arrow {
    font-size: 1.1rem;
    transition: transform .2s;
}
.contact-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* ── Contact Responsive ───────────────────────── */
@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 580px) {
    .contact-hero        { border-radius: 0 0 16px 16px; padding: 2rem 1.25rem 1.75rem; }
    .contact-hero h1     { font-size: 1.7rem; }
    .contact-form-wrap   { padding: 1.5rem 1.25rem; }
    .cform-row           { grid-template-columns: 1fr; gap: 0; }
    .contact-info        { grid-template-columns: 1fr; }
}