/* ==========================================================================
   The Daughter Baker: refinement layer (November 2026)
   Loaded last on every page. It tidies sizing, spacing and consistency
   without changing content or the general layout. Brand colours and the
   three typefaces (Allura script, Cormorant Garamond, Poppins) are unchanged.
   ========================================================================== */

:root {
    --tdb-navy: #0D2538;
    --tdb-navy-2: #1E3750;
    --tdb-gold: #C5A13E;
    --tdb-gold-2: #D8BA6B;
    --tdb-peach: #F0CCB1;
    --tdb-cream: #FAF8F5;
    --tdb-ink: #2C2C2C;
    --tdb-focus: #C5A13E;

    --tdb-script: 'Allura', cursive;
    --tdb-serif: 'Cormorant Garamond', Georgia, serif;
    --tdb-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* one vertical rhythm for sections */
    --tdb-section-y: clamp(4rem, 8vw, 6rem);
    --tdb-radius: 14px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--tdb-sans); }

h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }

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

/* visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--tdb-focus);
    outline-offset: 3px;
}

/* anchor targets (services.html#dessert-tables etc.) clear the fixed header */
[id] { scroll-margin-top: 96px; }

/* ---------- Buttons: one system across the site ---------- */
.btn,
.cta-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-family: var(--tdb-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary,
.cta-button,
.submit-button {
    background: linear-gradient(135deg, var(--tdb-gold), var(--tdb-gold-2));
    color: var(--tdb-navy);
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(197, 161, 62, 0.28);
}
.btn-primary:hover,
.cta-button:hover,
.submit-button:hover {
    background: var(--tdb-gold-2);
    color: var(--tdb-navy);
    transform: none;
    box-shadow: 0 10px 26px rgba(197, 161, 62, 0.42);
}
.btn-secondary:hover,
.btn-outline:hover { transform: none; }
.cta-button { padding: 1rem 2.75rem; border-radius: 50px; font-size: 1.05rem; }
.submit-button { width: 100%; border-radius: 50px; padding: 1rem 1.5rem; font-size: 1.05rem; }

/* "View All Flavours" sat navy-on-navy on the Services page */
.products-showcase .btn-outline {
    color: var(--tdb-gold-2);
    border-color: var(--tdb-gold-2);
}
.products-showcase .btn-outline:hover {
    background: var(--tdb-gold-2);
    color: var(--tdb-navy);
}

/* ---------- Homepage hero ---------- */
.hero .hero-brand {
    font-family: var(--tdb-script);
    font-size: clamp(4.5rem, 13vw, 11rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 0 0.5rem;
}
.hero h1.hero-heading {
    font-family: var(--tdb-serif) !important;
    font-size: clamp(1.45rem, 3.2vw, 2.35rem) !important;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--tdb-gold-2);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    margin: 0 auto 0.6rem;
    max-width: 22em;
}
.hero .hero-subtitle { margin-bottom: 2.25rem; }

/* the fixed background is ignored by iOS and repaints on every scroll elsewhere */
@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
    .hero { background-attachment: scroll !important; }
}

/* header shrink, driven by a class rather than inline padding */
header.is-scrolled { padding-top: 0.35rem; padding-bottom: 0.35rem; }

/* ---------- Section headings ---------- */
.section-title-left { line-height: 1.1; }
.section-title--script {
    font-family: var(--tdb-script) !important;
    font-weight: 400 !important;
    font-size: clamp(3rem, 7vw, 4.5rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}
.section-subtitle {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.services-intro { font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important; }

/* ---------- Our Story ---------- */
.about-text .about-lead,
.about-lead {
    font-family: var(--tdb-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--tdb-navy-2);
    margin-bottom: 1.25rem;
}

/* ---------- Certifications ---------- */
#certifications > .section-inner > .section-label { display: block; }
#certifications .cert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
#certifications .cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: auto !important;
    height: 100%;
}
#certifications .cert-card > div:first-child {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem !important;
}
#certifications .cert-card svg { width: 56px !important; height: 56px !important; }
@media (max-width: 1024px) {
    #certifications .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
    #certifications .cert-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    #certifications .cert-card { padding: 2rem 1.5rem !important; }
    #certifications .cert-card h3 { font-size: 1.4rem !important; }
    #certifications .cert-card p { font-size: 0.95rem !important; }
}

/* ---------- Homepage service cards: equal height, link at the bottom ---------- */
.services-grid .service-card { display: flex; flex-direction: column; }
.services-grid .service-content { display: flex; flex-direction: column; flex: 1; }
.services-grid .service-content h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); line-height: 1.2; }
.services-grid .service-link { margin-top: auto; min-height: 44px; }
.service-card:hover { transform: translateY(-4px); }

/* the two cream sections ran together with a large empty gap */
#services { padding-bottom: 4rem; }
#gallery { padding-top: 4rem; }
#gallery > :first-child { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq-question { gap: 1rem; }
.faq-question:focus-visible { outline-offset: -3px; }

/* ---------- Forms ---------- */
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--tdb-sans);
    font-size: 1rem; /* 16px stops iOS zooming into fields */
    min-height: 48px;
}
.form-group textarea { min-height: 140px; }
.form-grid { margin-bottom: 0 !important; }
@media (max-width: 768px) { .form-grid { gap: 0 !important; } }

/* ---------- Footer ---------- */
.footer-logo { font-size: clamp(1.2rem, 1.5vw, 1.4rem) !important; line-height: 1.3; }
footer .footer-section a { display: block; padding: 0.3rem 0; }
.footer-credit { margin-top: 1rem; font-size: 0.9rem; opacity: 0.8; }
.footer-credit a { color: var(--tdb-gold-2); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    section { padding-top: var(--tdb-section-y); padding-bottom: var(--tdb-section-y); }
    .section-title { font-size: clamp(2.1rem, 8vw, 2.6rem); }
    .section-title--script { font-size: clamp(2.9rem, 13vw, 3.6rem) !important; }
    .hero .hero-brand { font-size: clamp(4rem, 19vw, 5.5rem); }
    .hero h1.hero-heading { font-size: 1.65rem !important; }
    .hero .hero-subtitle { font-size: 1.05rem; letter-spacing: 0.02em; }
    .about-text h3,
    .section-title-left { line-height: 1.15; }
    .contact-form { padding: 2rem 1.25rem; }
    .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* moving strips stand still; the review carousel becomes swipeable */
    .testimonials-carousel { overflow-x: auto !important; }
    .testimonials-track { animation: none !important; }
}

/* ---------- Services dropdown in the main menu (2026-11-22) ----------
   Markup: .nav-dropdown > button.nav-dropdown-toggle + .nav-dropdown-menu.
   Behaviour: nav-dropdown.js (click, Escape, click outside). On desktop it
   also opens on hover and keyboard focus. In the mobile drawer it expands
   in place. */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 0;
    margin: 0;
    padding: 0.5rem 0;
    font-family: var(--tdb-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #fff;
    cursor: pointer;
    line-height: 1.2;
}
.nav-dropdown-toggle::after { display: none !important; }
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--tdb-gold-2); }
.nav-caret {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 260px;
    margin-top: 0.85rem;
    padding: 0.5rem;
    background: var(--tdb-navy);
    border: 1px solid rgba(197, 161, 62, 0.35);
    border-top: 3px solid var(--tdb-gold);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 3000;
}
/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.nav-dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.nav-links .nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--tdb-peach);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    transform: none;
}
.nav-links .nav-dropdown-menu a::after { display: none; }
.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a:focus-visible { background: rgba(197, 161, 62, 0.14); color: var(--tdb-gold-2); transform: none; }
.nav-links .nav-dropdown-menu a[aria-current="page"] { color: var(--tdb-gold-2); }
.nav-links .nav-dropdown-menu a.nav-dropdown-all { border-bottom: 1px solid rgba(197, 161, 62, 0.25); border-radius: 8px 8px 0 0; margin-bottom: 0.25rem; }

@media (min-width: 969px) and (hover: hover) {
    .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
    .nav-dropdown:hover .nav-dropdown-toggle { color: var(--tdb-gold-2); }
}

/* mobile drawer: the list expands in place under "Services" */
@media (max-width: 968px) {
    .nav-dropdown { flex-direction: column; align-items: center; width: 100%; }
    .nav-dropdown-toggle { font-size: 1.05rem; min-height: 44px; }
    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0.5rem;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border: 0;
        border-left: 3px solid var(--tdb-gold);
        border-radius: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: flex; transform: none; }
    .nav-links .nav-dropdown-menu a { text-align: center; white-space: normal; }
}

/* ---------- Mobile menu: close on tap outside, visible close icon (2026-11-22) ----------
   The header's backdrop-filter made it the containing block for the fixed
   slide-out menu (the same trap noted on SBW), which can break taps in it on
   iPhone. The header is ~98% opaque, so the blur is dropped on small screens. */
@media (max-width: 968px) {
    header, .main-nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    .nav-links { z-index: 1500; overflow-y: auto; -webkit-overflow-scrolling: touch; height: 100vh; height: 100dvh; }
    .nav-links a, .nav-dropdown-toggle { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .nav-links .nav-dropdown-menu a { display: flex; }
    .mobile-toggle, .mobile-menu-toggle { position: relative; z-index: 1600; }
    body.nav-open { overflow: hidden; }
    body.nav-open .mobile-toggle span:nth-child(1),
    body.nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.nav-open .mobile-toggle span:nth-child(2),
    body.nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .mobile-toggle span:nth-child(3),
    body.nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 25, 0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-backdrop[hidden] { display: none; }

/* ---------- Homepage, mobile: certifications on one row, centred service cards, compact reviews ---------- */
@media (max-width: 768px) {
    /* the four certifications side by side: icon and title, description hidden */
    #certifications > .section-inner > div.cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0.4rem !important; margin-top: 0 !important; align-items: stretch; }
    #certifications > .section-inner > div.cert-grid > .cert-card { padding: 0.9rem 0.2rem !important; border-radius: 10px !important; justify-content: flex-start; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; }
    #certifications .cert-card > div:first-child { height: 34px; margin-bottom: 0.6rem !important; }
    #certifications .cert-card svg { width: 30px !important; height: 30px !important; }
    #certifications .cert-card h3 { font-size: 0.8rem !important; line-height: 1.15 !important; margin: 0 !important; text-wrap: balance; hyphens: manual; }
    #certifications .cert-card p { display: none !important; }

    /* service cards: centred text, so no ragged right edge */
    .services-grid .service-content { text-align: center; align-items: center; }
    .services-grid .service-link { justify-content: center; }

}

/* ---------- Homepage reviews on phones: a centred swipe carousel (2026-11-22) ----------
   Desktop keeps the scrolling strip. On phones: one card at a time, all the
   same size, long reviews cut to 6 lines with "Read more", dots underneath.
   Script: reviews.js (homepage only). */
.reviews-dots, .testimonial-more { display: none; }
@media (max-width: 768px) {
    #testimonials { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
    #testimonials > div:first-child { margin-bottom: 0 !important; }
    #testimonials .section-title { font-size: 2.8rem !important; line-height: 1.1 !important; margin-bottom: 0.6rem !important; }
    #testimonials .section-subtitle { font-size: 1rem !important; line-height: 1.5 !important; margin: 0 auto !important; }

    #testimonials .testimonials-carousel {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 1.75rem 0 0 !important;
    }
    #testimonials .testimonials-carousel::-webkit-scrollbar { display: none; }
    #testimonials .testimonials-track {
        animation: none !important;
        transform: none !important;
        width: max-content;
        gap: 32px !important;
        padding: 0 16px;
        align-items: stretch;
    }
    #testimonials .testimonial-card.is-loop-copy { display: none !important; }
    #testimonials .testimonial-card {
        width: calc(100vw - 32px) !important;
        min-width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        min-height: 0 !important;
        height: auto;
        padding: 1.75rem 1.5rem !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        justify-content: center !important;
        transform: none !important;
    }
    #testimonials .testimonial-card::before { position: static; transform: none; display: block; font-size: 2.5rem; line-height: 0.6; height: 1.1rem; margin-bottom: 0.6rem; }
    #testimonials .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.65;
        margin: 0 0 1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        overflow: hidden;
    }
    #testimonials .testimonial-card.is-expanded .testimonial-text { -webkit-line-clamp: unset; display: block; }
    #testimonials .testimonial-more {
        display: inline-block;
        background: none;
        border: 0;
        padding: 0.25rem 0.5rem;
        margin: -0.5rem 0 0.75rem;
        font: 600 0.85rem var(--tdb-sans);
        color: var(--tdb-peach);
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }
    #testimonials .testimonial-more[hidden] { display: none; }
    #testimonials .testimonial-author { font-size: 0.95rem; margin: 0; }

    .reviews-dots {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
        margin-top: 1.25rem;
        padding: 0 16px;
    }
    .reviews-dots button {
        width: 18px;
        height: 24px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .reviews-dots button::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(216, 186, 107, 0.35);
        transition: background 0.2s, transform 0.2s;
    }
    .reviews-dots button[aria-current="true"]::before { background: var(--tdb-gold-2); transform: scale(1.3); }
}

/* ---------- Homepage on phones: the reviews section's tighter spacing everywhere but the hero (2026-11-22) ----------
   56px above and 48px below each section, a 2.8rem script title on at most two
   lines, a 1rem subtitle and about 28px before the content. */
@media (max-width: 768px) {
    .home > section:not(.hero) { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
    .home > section:not(.hero) .section-title {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.6rem !important;
    }
    .home > section:not(.hero) .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.75rem !important;
    }
    .home #testimonials .section-subtitle { margin-bottom: 0 !important; }
    /* the longest title, kept to two lines */
    .home #videos .section-title { font-size: 2.45rem !important; }
    /* Our Story has no subtitle: same gap after the title */
    .home #about .section-title { margin-bottom: 1.75rem !important; }
    /* buttons under the services and portfolio grids */
    .home > section > .section-inner > div[style*="margin-top: 3rem"] { margin-top: 1.75rem !important; }
    .home .services-grid { gap: 1.5rem !important; }
    .home .faq-item { margin-bottom: 0.9rem !important; }
    /* Our Story: body text at the same scale as the rest of the page */
    .home #about .about-content { gap: 1.75rem !important; }
    .home #about .about-text h3 { font-size: 1.75rem !important; line-height: 1.2 !important; margin-bottom: 0.9rem !important; }
    .home #about .about-lead { font-size: 1.3rem !important; line-height: 1.4 !important; margin-bottom: 1rem !important; }
    .home #about .about-text p:not(.about-lead) { font-size: 1rem !important; line-height: 1.7 !important; margin-bottom: 1rem !important; }
    .home #about .about-text .btn { margin-top: 0.5rem; }
    /* FAQ boxes in proportion with the rest (also on the service pages) */
    .faq-question { padding: 1.1rem 1.25rem !important; }
    .faq-question h3, .faq-question h4 { font-size: 1rem !important; line-height: 1.4 !important; text-wrap: pretty; }
    .faq-icon { width: 30px !important; height: 30px !important; font-size: 1.4rem !important; }
    .faq-answer p { padding: 0 1.25rem 1.25rem !important; font-size: 0.95rem !important; line-height: 1.65 !important; }
}

/* ---------- Event date field (2026-11-22) ----------
   iPhone Safari gives date inputs a minimum width and a grey native style, so
   the field ran past the form's right edge and didn't match the others. Same
   look as the other fields, a gold calendar icon on the right, and on desktop
   a click anywhere in the field opens the date picker. Both forms. */
.form-group input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    line-height: 1.4;
    text-align: left;
    color: var(--tdb-ink);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A13E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px 20px;
    padding-right: 3rem;
}
.form-group input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    opacity: 0;
    cursor: pointer;
}

/* ---------- Dropdown fields (2026-11-22) ----------
   Order Type and Budget Range: iPhone draws selects grey with its own arrow.
   Same white field as the others, with a gold arrow to match the date
   field's calendar icon. The "Select…" prompt is greyed like placeholder
   text until something is chosen. Both forms. */
.form-group select {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    line-height: 1.4;
    color: var(--tdb-ink);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A13E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px 20px;
    padding-right: 3rem;
    text-overflow: ellipsis;
    cursor: pointer;
}
.form-group select:has(option[value=""]:checked) { color: #8a8a8a; }
.form-group select option { color: var(--tdb-ink); }
/* One height for every single-line field (text, email, phone, number, date,
   dropdowns), so the form's boxes line up evenly. */
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-group select {
    box-sizing: border-box;
    height: 56px;
    min-height: 56px;
}

/* ---------- Straight text edges (2026-11-22 trial, site-wide 2026-11-23) ----------
   Jayden's call: every paragraph that was left-aligned is justified, so both
   edges are straight. Hyphenation (every page is lang="en-GB") lets long words
   split so the gaps between words stay even; a word only splits with at least
   4 letters on each side, and never on two lines in a row. The last line of a
   paragraph stays left-aligned as normal. Centred text (titles, testimonials,
   intros, the homepage service cards on phones) is left alone. A new
   left-aligned paragraph type needs adding here. */
.home #about .about-text p,
.about-preview .about-content p,
.faq-answer p,
.form-header p,
.sp-hub-body p,
.sp-card p,
.sp-split-text p,
.sp-features li,
.sp-steps li p,
.sp-review blockquote {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 8 4 4;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    -webkit-hyphenate-limit-lines: 1;
}
/* Homepage service cards: left-aligned on computers, centred on phones (above). */
@media (min-width: 769px) {
    .services-grid .service-content p {
        text-align: justify;
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 8 4 4;
        -webkit-hyphenate-limit-before: 4;
        -webkit-hyphenate-limit-after: 4;
        -webkit-hyphenate-limit-lines: 1;
    }
}
.home #about .section-title,
.home #about .about-text h3 { text-wrap: balance; }

/* ---------- About page on phones: same look as the homepage's Our Story (2026-11-23) ----------
   Jayden's call. The two story sections ("About Rina", "About The Daughter
   Baker") get the homepage's phone sizes and spacing: 56px above / 48px below,
   a 2.8rem script title, a 1.15rem intro and 1rem body text with tighter lines.
   Desktop is unchanged. */
@media (max-width: 768px) {
    .about-preview { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
    .about-preview .about-grid { gap: 1.75rem !important; }
    .about-preview .section-label { margin-bottom: 0.6rem !important; }
    .about-preview .section-title-left {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1.25rem !important;
        text-wrap: balance;
    }
    /* 1.15rem, not the homepage's 1.3rem: this intro is in Poppins, which looks
       much bigger than the homepage's Cormorant at the same size. */
    .about-preview .lead-paragraph { font-size: 1.15rem !important; line-height: 1.55 !important; margin-bottom: 1rem !important; }
    .about-preview .about-content p:not(.lead-paragraph) { font-size: 1rem !important; line-height: 1.7 !important; margin-bottom: 1rem !important; }
    .about-preview .about-content p:last-child { margin-bottom: 0 !important; }
}

/* ---------- About page "What Drives Us" on phones: one row, like the homepage certifications (2026-11-23) ----------
   Jayden's call. The four value cards sit side by side: gold icon and title,
   description hidden on phones (desktop unchanged). */
@media (max-width: 768px) {
    .about-values-section .certifications-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0.4rem !important; margin-top: 1.75rem !important; align-items: stretch; }
    .about-values-section .cert-item { padding: 0.9rem 0.2rem !important; border-radius: 10px !important; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
    .about-values-section .cert-icon { width: 40px !important; height: 40px !important; margin: 0 auto 0.6rem !important; box-shadow: 0 4px 10px rgba(216, 186, 107, 0.35) !important; flex-shrink: 0; }
    .about-values-section .cert-icon svg { width: 20px !important; height: 20px !important; }
    .about-values-section .cert-item h4 { font-size: 1rem !important; line-height: 1.15 !important; letter-spacing: 0 !important; margin: 0 !important; text-wrap: balance; hyphens: manual; overflow-wrap: normal; }
    .about-values-section .cert-item p { display: none !important; }
    /* and the section around them spaced like the homepage's sections */
    .about-values-section { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
    .about-values-section .section-header-center { margin-bottom: 0 !important; }
    .about-values-section .section-label { margin-bottom: 0.6rem !important; }
    .about-values-section .section-title { font-size: 2.8rem !important; line-height: 1.1 !important; margin-bottom: 0.6rem !important; }
    .about-values-section .section-description { font-size: 1rem !important; line-height: 1.5 !important; margin: 0 auto !important; }
}
