/* =========================================================
   Born to Birth – Global Theme
   ========================================================= */

:root {
    --primary-color: #D56129;
    --secondary-color: #4C342C;
    --accent-color: #ECA848;
    --accent-soft: #fdf1e6;
    --background-color: #fdf1e6;
    --surface-color: #ffffff;
    --border-color: #e8d5c0;
    --text-color: #4C342C;
    --muted-text: #9D553E;
    --white: #ffffff;
    --nav-height: 60px;
}

/* ---------- Base ---------- */

html {
    box-sizing: border-box;
    font-size: clamp(16px, 1.1vw, 18px);
    scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: "Raleway", Georgia, "Times New Roman", serif;
    background: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--white); color: #000; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
    font-family: "Quicksand", "Raleway", sans-serif;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0 0 0.5em;
    letter-spacing: 0.05em;
}

h1 { font-size: 3rem; margin: 18px 0 24px; color: var(--primary-color); text-shadow: 0 2px 12px rgba(213, 97, 41, 0.18); }
h1.tagline { font-size: 2.2rem; max-width: 900px; margin: 18px auto 24px; padding: 0 20px; line-height: 1.25; text-align: center; }
h2 { font-size: 1.9rem; margin-top: 18px; }
h3 { font-size: 1.5rem; margin-top: 26px; color: var(--primary-color); }

p {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 720px;
    width: 90%;
    margin: 0 auto 25px;
    color: var(--muted-text);
}

p.tagline-sub {
    font-family: "Quicksand", "Raleway", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* ---------- Layout ---------- */

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--nav-height) 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-section { scroll-margin-top: 80px; width: 100%; }

header { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }

.divider, .divider2 {
    width: 100%;
    max-width: 780px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.divider  { margin: 32px auto 8px; }
.divider2 { margin: 64px auto 48px; }

.divider::before, .divider::after,
.divider2::before, .divider2::after {
    content: "";
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(213, 97, 41, 0.75), transparent);
}

.divider-logo { width: 45px; max-height: 45px; flex-shrink: 0; object-fit: contain; opacity: 0.9; }

/* ---------- Image containers (hover lift) ---------- */

.hero-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.image-container, .image-container2 { position: relative; cursor: pointer; }
.image-container  { display: inline-block; margin: 0 0 8px; }
.image-container2 { display: table; margin: 48px auto; }

.image-container img, .image-container2 img {
    width: 95%;
    max-width: 380px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(213, 97, 41, 0.15);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

.image-container:hover img, .image-container2:hover img,
.image-container a:focus-visible img, .image-container2 a:focus-visible img {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 28px 60px rgba(213, 97, 41, 0.28), 0 8px 20px rgba(236, 168, 72, 0.2);
}

/* ---------- Navigation ---------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-color) 0%, #e07840 50%, var(--accent-color) 100%);
    box-shadow: 0 4px 24px rgba(76, 52, 44, 0.4);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
}

.nav-hidden { transform: translateY(-100%); opacity: 0; }

.social-links-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.social-icon-link {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(253, 241, 230, 0.15);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}
.social-icon-link img { width: 32px; height: 32px; margin: 0; }
.social-icon-link:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 10px 25px rgba(76, 52, 44, 0.4); background: rgba(253, 241, 230, 0.3); }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
nav ul li { margin: 0 6px; }

nav a {
    position: relative;
    color: var(--accent-soft);
    text-decoration: none;
    font-family: "Quicksand", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding: 10px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.18s ease;
}
nav a::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-soft);
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
}
nav a:hover { background: rgba(253, 241, 230, 0.12); color: var(--white); transform: translateY(-1px); }
nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}
.menu-toggle span { display: block; width: 100%; height: 3px; background: var(--accent-soft); border-radius: 999px; transition: all 0.3s ease-in-out; }
.menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- About / credentials ---------- */

.credentials-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.credential-item, .credential-item2 { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.credential-item2 { position: relative; }

.credential-item img, .credential-item2 img { max-width: 240px; margin-bottom: 12px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.credential-item img:hover, .credential-item2 img:hover { transform: scale(1.05); }
.credential-item2 img { cursor: pointer; z-index: 1; }
.credential-item p { margin: 4px 0; font-size: 0.95rem; text-align: center; }

.credential-item2 img.active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(3.5);
    z-index: 9999;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

body.modal-open::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998; }

/* ---------- Testimonials ---------- */

.review-slider-container { position: relative; max-width: 900px; width: 90%; margin: 40px auto; }

.review-slider-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(76, 52, 44, 0.2);
}

.review-slider-content { display: flex; width: 100%; transition: transform 0.5s ease-in-out; }
.review-slide { flex: 0 0 100%; width: 100%; height: auto; object-fit: contain; }

.slider-arrow {
    position: absolute;
    top: 88%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 8px 12px;
    font-size: 1.8rem;
    color: var(--accent-soft);
    background: rgba(76, 52, 44, 0.85);
    border: 1px solid rgba(236, 168, 72, 0.5);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.slider-arrow:hover { background: var(--primary-color); color: var(--white); }
.left-arrow  { left: 10px; }
.right-arrow { right: 10px; }

/* ---------- Services ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.service-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding: 24px;
    text-align: center;
    background: var(--surface-color);
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(76, 52, 44, 0.06);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease, background 0.4s ease;
}

.service-card:hover, .service-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(213, 97, 41, 0.18);
    border-color: var(--accent-soft);
    background: var(--primary-color);
}

.service-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.service-card p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-color);
    transition: color 0.4s ease;
}

.service-card:hover h4, .service-card:hover p,
.service-card:focus-visible h4, .service-card:focus-visible p { color: var(--white); }

/* My Approach */

.my-approach {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 10%;
}
.image-container5 { flex: 0 0 280px; width: 280px; }
.image-container5 img { width: 100%; border: 4px solid var(--primary-color); border-radius: 18px; box-shadow: 0 18px 45px rgba(213, 97, 41, 0.15); }
.my-approach > div:last-child { flex: 1; }
.my-approach h3 { margin-top: 0; }

/* ---------- Modals ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(76, 52, 44, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.service-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    width: 90vw;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 36px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(76, 52, 44, 0.3);
    opacity: 0;
    visibility: hidden; /* keeps closed modals out of tab order and screen readers */
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}
.service-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.service-modal h3 { margin: 0 0 8px; font-size: 1.5rem; }

.modal-duration {
    margin-bottom: 20px;
    font-family: "Quicksand", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.modal-description { font-size: 1rem; color: var(--text-color); margin-bottom: 24px; width: 100%; max-width: 100%; }

.modal-for-you { background: var(--accent-soft); border-left: 4px solid var(--primary-color); border-radius: 12px; padding: 18px 20px; margin-bottom: 28px; }
.modal-for-you h4 { margin: 0 0 10px; font-size: 1rem; text-align: left; }
.modal-for-you ul { list-style: none; margin: 0; padding: 0; }
.modal-for-you li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 0.97rem; line-height: 1.65; color: var(--text-color); }
.modal-for-you li::before { content: "✦"; position: absolute; left: 0; top: 4px; font-size: 0.7rem; color: var(--primary-color); }

.modal-close, .contact-form button {
    display: block;
    margin: 0 auto;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 999px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(213, 97, 41, 0.35);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, filter 0.2s ease-out;
}
.modal-close { padding: 12px 32px; }
.contact-form button { padding: 13px 20px; }
.modal-close:hover, .contact-form button:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 35px rgba(213, 97, 41, 0.5); filter: brightness(1.05); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.faq-item { margin: 0.75rem 0; padding: 0.75rem 1rem; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--secondary-color); }
.faq-item p { width: 100%; max-width: none; margin: 0.75rem 0 0; font-size: 1rem; }

/* ---------- Contact ---------- */

.cta-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 50px 0; flex-wrap: wrap; }
.cta-block { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.cta-icon-wrapper { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, filter 0.25s ease; }
.cta-icon-wrapper img { width: 80%; height: 80%; object-fit: contain; }
.cta-block:nth-child(1) .cta-icon-wrapper img { width: 105%; height: 105%; }
.cta-block:nth-child(2) .cta-icon-wrapper img { width: 65%; height: 65%; }
.cta-block:nth-child(3) .cta-icon-wrapper img { width: 72%; height: 72%; }
.cta-block:nth-child(4) .cta-icon-wrapper img { width: 65%; height: 65%; }
.cta-block:hover .cta-icon-wrapper { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(213, 97, 41, 0.6)); }
.cta-label { font-family: "Quicksand", sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--secondary-color); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 50px auto;
    padding: 28px 26px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(76, 52, 44, 0.15);
}
.contact-form label { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary-color); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: "Raleway", serif;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--accent-soft);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(213, 97, 41, 0.25); background: var(--white); }
.contact-form textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */

footer {
    width: 100%;
    margin-top: auto;
    padding: 32px 0 18px;
    text-align: center;
    color: var(--accent-soft);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3a2620 100%);
    border-top: 2px solid var(--primary-color);
}
footer p { width: 100%; max-width: none; margin: 0.25rem 0; font-size: 0.85rem; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; color: var(--accent-soft); }
footer p.footer-contact { text-transform: none; letter-spacing: 0.04em; }
footer a { color: inherit; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .wrapper { padding: var(--nav-height) 20px 40px; }

    nav { height: var(--nav-height); padding: 0 10px; }
    .social-links-container { left: 10px; gap: 8px; }
    .social-icon-link img { width: 28px; height: 28px; }
    .menu-toggle { display: flex; right: 10px; }

    nav ul { display: none; }
    nav ul.show {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        padding-top: 20px;
        background: var(--secondary-color);
        box-shadow: 0 18px 30px rgba(76, 52, 44, 0.5);
        animation: slideDown 0.3s ease-in-out;
        z-index: 999;
    }
    nav ul.show a { display: block; width: 90%; margin: 0 auto; padding: 15px 0; text-align: center; border-bottom: 1px solid rgba(253, 241, 230, 0.2); }
    nav ul.show li:last-child a { border-bottom: none; }

    h1 { font-size: 2.3rem; }
    h1.tagline { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    p { font-size: 0.95rem; margin-bottom: 18px; width: calc(100% - 40px); max-width: 600px; }
    p.tagline-sub { font-size: 1.2rem; }

    .hero-pair { margin: 32px 0; }
    .image-container img { max-width: 200px; }
    .divider { margin: 30px auto; }

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

    .my-approach { flex-direction: column; gap: 1.5rem; padding: 0.5rem 20px; }
    .image-container5 { flex: none; width: 100%; max-width: 280px; }

    .credentials-row { gap: 40px; }
    .credential-item2 img.active { transform: translate(-50%, -50%) scale(1.4); }

    .review-slider-inner { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}