﻿/* Contact page (inherits theme vars from style.css) */

/* ===== Icons ===== */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: var(--accent);
    line-height: 1;
    vertical-align: middle;
}

/* ========== Breadcrumb Styling ========== */
.breadcrumb {
    background: #f9fafb;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumb-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.breadcrumb-nav a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-nav a:first-child::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066cc'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin-right: 6px;
    vertical-align: text-bottom;
}

.breadcrumb-nav span:not(.breadcrumb-nav span:last-child) {
    color: #9ca3af;
    user-select: none;
}

.breadcrumb-nav span:last-child {
    color: #4b5563;
    font-weight: 600;
}

/* ========== Responsive Breadcrumb ========== */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 0;
        margin-bottom: 24px;
    }

    .breadcrumb-nav {
        font-size: 0.9rem;
        gap: 8px;
    }

    .breadcrumb-nav a:first-child::before {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.85rem;
    }
}

.page-hero {
    background: var(--grad);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto;
}

/* ===== Layout ===== */
.contact-main {
    padding: 56px 20px;
    background: var(--bg);
}

.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

/* ===== Info side ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 18px;
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 14px;
    align-items: start;
    border-top: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.info-icon {
    font-size: 26px;
}

.info-card h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.info-card p {
    color: var(--text);
    line-height: 1.6;
    font-size: .98rem;
}

/* Links inside info cards (tel: / mailto:) — the static mock had plain text here */
.info-card a,
.info-card p a {
    color: var(--primary);
 
    text-decoration: none;
    border-bottom: 1px dashed rgba(10, 45, 79, .35);
    overflow-wrap: anywhere;
    transition: color .2s ease, border-color .2s ease;
}

.info-card a:hover,
.info-card p a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Map */
.map-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    margin-top: 4px;
}

.map-card iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

/* ===== Form side ===== */
.contact-form-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    position: relative;
}

.contact-form-container h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: .92rem;
}

.form-group .required {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #f9f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 45, 79, .12);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: .85rem;
    color: var(--muted);
    margin: 6px 0 14px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 12px 28px;
    gap: 8px;
    margin: 28px auto 6px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: .95;
}


/* ===== Editor content block ===== */
.contact-main .content-section {
    max-width: var(--max-width);
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

.contact-main .content-section h2:first-child,
.contact-main .content-section h3:first-child {
    margin-top: 0;
}

.contact-main .content-section p:last-child,
.contact-main .content-section ul:last-child,
.contact-main .content-section ol:last-child {
    margin-bottom: 0;
}

/* ===== Inline CTA ===== */
.cta-inline {
    margin: 34px auto 0;
    max-width: var(--max-width);
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-actions .material-symbols-rounded {
    font-size: 22px;
    margin-right: 6px;
}

/* ===== Gentle breathing effect for key buttons ===== */
.btn-breathe {
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
    animation: breatheScale 4.2s ease-in-out infinite;
}

.btn-breathe::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    pointer-events: none;
    filter: blur(.5px);
    animation: breatheGlow 4.2s ease-in-out infinite;
}

@keyframes breatheScale {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.02)
    }
}

@keyframes breatheGlow {

    0%,
    100% {
        opacity: .22;
        box-shadow: 0 0 20px 0 rgba(229, 36, 33, .22), 0 0 40px 6px rgba(229, 36, 33, .12);
    }

    50% {
        opacity: .48;
        box-shadow: 0 0 28px 8px rgba(229, 36, 33, .32), 0 0 70px 16px rgba(229, 36, 33, .18);
    }
}

@media (prefers-reduced-motion: reduce) {

    .btn-breathe,
    .btn-breathe::after {
        animation: none;
        box-shadow: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }

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

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

    .map-card iframe {
        height: 260px;
    }

    .cta-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .form-row {
        flex-direction: column;
        gap: 14px;
    }

    .contact-form-container {
        padding: 26px;
    }
}

/* --- 'Prefer talking to a human?'  --- */
.cta-inline {
    margin: 34px auto 0;
    max-width: var(--max-width);
    background: var(--white);
    border-radius: calc(var(--radius) + 2px);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    border: 1px solid #eef1f6;
}

.cta-inline p {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: .2px;
}


.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-actions a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s;
}

.cta-actions a .material-symbols-rounded {
    font-size: 22px;
}

.cta-actions a:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(229, 36, 33, .18);
    transform: translateY(-1px);
}

/* Button variants used by the template (.cta-btn-primary / .cta-btn-secondary) */
.cta-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s;
}

.cta-actions a.cta-btn-primary {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(229, 36, 33, .22);
}

.cta-actions a.cta-btn-primary:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(229, 36, 33, .3);
}

.cta-actions a.cta-btn-secondary {
    background: #fff;
    border-color: rgba(229, 36, 33, .45);
    color: var(--accent);
}

.cta-actions a.cta-btn-secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


.cta-actions .btn-breathe {
    animation: breatheScale 4.2s ease-in-out infinite, breatheGlow 4.2s ease-in-out infinite;
}

.cta-actions .btn-breathe::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 700px) {
    .cta-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}