/* ==========================================================================
   ORANGE SEAMSTRESS - MAIN STYLESHEET
   Styles for: layout, header, footer, all page-specific sections
   ========================================================================== */

/* Design tokens: repeated values used across the site */
:root {
    --color-brand: #d85c00;
    --color-text-dark: #333333;
    --color-text-muted: #444444;
    --color-text-light: #555555;
    --color-bg-cream: #f2e6da;
    --color-bg-header: #edd9c6;
    --color-bg-box: #fff3e6;
    --color-bg-box-alt: #fff8f2;
    --layout-max: 1300px;
    --layout-gutter: 30px;
    --header-h1-mobile: clamp(1.05rem, 4.2vw, 1.85rem);
    --header-h2-mobile: clamp(0.72rem, 2.5vw, 0.95rem);
    /* Default until JS sets --body-pad-top from measured .site-header height */
    --body-pad-top: 160px;
}

@media (max-width: 1023px) {
    :root {
        --layout-gutter: 12px;
    }
}

@media (max-width: 767px) {
    :root {
        --layout-gutter: 8px;
    }
}

/*
   Large displays: wider frame plus inner max-widths (hero, services, etc.)
   so content uses the column—DevTools device mode matches real CSS px at 100% zoom.
*/
@media (min-width: 1600px) {
    :root {
        --layout-max: min(1760px, calc(100vw - 36px));
        --content-wide: min(1620px, calc(var(--layout-max) - 56px));
    }

    .hero-section,
    .secondary-hero {
        max-width: var(--content-wide);
    }

    .contact-map-section {
        max-width: var(--content-wide);
    }

    .services-page-section {
        max-width: var(--content-wide);
    }

    .services-intro-box {
        max-width: min(1120px, 88%);
    }

    .image-container {
        max-width: var(--content-wide);
    }

    .about-info-box {
        width: min(900px, 58%);
    }

    .mission-info-box {
        width: min(900px, 58%);
        max-width: 100%;
    }

    .gallery-page-wrapper,
    .alterations-selection-section {
        max-width: none;
        width: 100%;
    }

    .before-after-quad-box {
        max-width: var(--content-wide);
    }

    .before-after-pair {
        width: min(790px, calc((var(--content-wide) - 40px) / 2));
        max-width: calc(50% - 22px);
    }

    .contact-page-section {
        max-width: var(--content-wide);
    }

    .contact-page-intro {
        max-width: min(920px, 82%);
    }
}

/* --------------------------------------------------
   BASE STYLES
   Main container, body, and global page structure
   -------------------------------------------------- */

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

html {
    overflow-x: clip;
}

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

iframe {
    max-width: 100%;
}

.site-frame {
    width: min(var(--layout-max), calc(100% - 2 * var(--layout-gutter)));
    max-width: 100%;
    margin-inline: auto;
    overflow-x: clip;
    background-color: var(--color-bg-cream);
    --site-frame-pull: clamp(6px, 1.8vw, 14px);
    margin-top: calc(-1 * var(--site-frame-pull));
    padding-top: var(--site-frame-pull);
    box-shadow:
        -20px 0 40px rgba(0,0,0,0.18),
        20px 0 40px rgba(0,0,0,0.18);
}

.site-width {
    width: 100%;
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--body-pad-top);
    font-family: 'Inter', sans-serif;
    opacity: 1;
    transition: opacity 0.35s ease;
    background-color: var(--color-bg-cream);
    overflow-x: clip;
}

.page-content {
    padding-bottom: 120px;
}

/* --------------------------------------------------
   HEADER TYPOGRAPHY
   Font family and weight for site header text
   -------------------------------------------------- */

.site-header h1,
.site-header h2,
.main-nav a {
    font-family: 'Cinzel', serif !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------
   HEADER
   Fixed top bar with logo, title, tagline, and nav
   -------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--layout-max), calc(100% - 2 * var(--layout-gutter)));
    max-width: 100%;
    height: 160px;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-header);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        -20px 0 40px rgba(0, 0, 0, 0.18),
        20px 0 40px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

.header-left {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
}

.header-logo {
    height: 122px;
    width: 152px;
    border-radius: 5%;
    margin-left: 15px;
}

.header-center {
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: 36px;
    color: var(--color-brand);
}

.site-header h2 {
    margin: 5px 0 15px;
    font-size: 18px;
    color: var(--color-text-dark);
}

.site-header h2::after {
    content: "";
    display: block;
    width: 385px;
    height: 3px;
    margin: 10px auto 0;
    background-color: var(--color-brand);
}

/* --------------------------------------------------
   NAVIGATION
   Main nav links, hover states, active page indicator
   -------------------------------------------------- */

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 80px;
    list-style: none;
    margin: 20px auto 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    padding-bottom: 6px;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-brand);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: var(--color-brand);
}

/* Hamburger control: hidden on desktop; shown in mobile/tablet media queries */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-brand);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------
   HOME PAGE – HERO SECTION
   Top banner with background image and shop photo
   -------------------------------------------------- */

.hero-section {
    height: 400px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 30px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("images/Thread & Measuring Tape Image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: clip;
    overflow-y: visible;
}

.hero-right {
    width: 70%;
    display: flex;
    justify-content: center;
}

.hero-right img {
    display: block;
    width: 80%;
    height: auto;
    max-height: 500px;
    margin-top: 200px;
    object-fit: cover;
    border: 20px solid rgba(255, 255, 255, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.50);
}

/* --------------------------------------------------
   HOME PAGE – SECOND HERO
   Testimonial/review box over second background image
   -------------------------------------------------- */

.secondary-hero {
    height: 400px;
    max-width: 1100px;
    margin: 200px auto 0;
    padding: 30px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-image: url("images/Thread & Scissors Image.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: clip;
}

.secondary-hero-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.review-box {
    max-width: 380px;
    padding: 25px 30px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.95);
    border-left: 6px solid var(--color-brand);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------
   HOME PAGE – CONTACT / MAP SECTION
   Address, hours, phone, map iframe, Get In Touch button
   -------------------------------------------------- */

.contact-map-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 120px;
    padding: 80px 60px;
    background-color: transparent;
}

.contact-left {
    position: relative;
    width: 336px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(672px + 35px);
}

.contact-left > * {
    position: relative;
    z-index: 1;
}

.contact-left h2 {
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: var(--color-brand);
}

.contact-left h3 {
    margin: 30px 0 10px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--color-text-dark);
}

.contact-left p {
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Hours list: shared style for opening hours (home + contact pages) */
.contact-left ul,
.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-text-dark);
    font-family: 'Cinzel', serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text-dark);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:first-child {
    max-width: 48%;
    text-align: left;
}

.hours-list li span:last-child {
    white-space: nowrap;
    text-align: right;
    color: var(--color-brand);
}

.contact-left .phone span {
    color: var(--color-brand);
    font-weight: 700;
}

/* --------------------------------------------------
   BUTTON (Get In Touch / Get a Quote)
   Orange outline style, hover fill effect
   -------------------------------------------------- */

.contact-btn {
    margin-top: 30px;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--color-brand);
    border: 2px solid var(--color-brand);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-left .contact-btn {
    margin-top: auto;
}

.contact-btn:hover {
    background-color: var(--color-brand);
    color: #ffffff;
}

/* --------------------------------------------------
   MAP
   Google Maps embed styling on home page
   -------------------------------------------------- */

.contact-right iframe {
    width: 550px;
    max-width: 100%;
    height: 672px;
    margin-top: 35px;
    border: 5px solid var(--color-brand);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------
   FOOTER
   Logo, social links (Facebook, Instagram), copyright
   -------------------------------------------------- */

.site-footer {
    padding: 50px 0;
    text-align: center;
    background-color: var(--color-bg-header);
    border-top: 3px solid var(--color-brand);
    box-shadow: 0 -20px 12px rgba(0, 0, 0, 0.08);
}

.footer-logo img {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5%;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    margin: 0 12px;
    text-decoration: none;
}

.footer-social img {
    width: 32px;
    height: 32px;
    margin: 0 12px;
    transition: opacity 0.3s ease;
}

.footer-social img:hover {
    opacity: 0.6;
}

.footer-copy {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------
   ABOUT US PAGE – TOP IMAGE SECTION
   Threads background image with overlay info box
   -------------------------------------------------- */

.image-container {
    position: relative;
    max-width: 1220px;
    height: 460px;
    margin: 0 auto;
}

#threads-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.about-info-box {
    position: absolute;
    top: 48px;
    left: 46px;
    width: 658px;
    padding: 34px 36px;
    background-color: rgba(255,255,255,0.92);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
    box-sizing: border-box;
}

.about-info-box::before {
    content:"";
    position:absolute;

    top:12px;
    left:12px;
    right:12px;
    bottom:12px;

    border: 2px solid var(--color-brand);
    pointer-events:none;
}

.about-info-box h2 {
    margin-bottom: 16px;
    font-family: 'Cinzel', serif;
    font-size: 25px;
}

.about-info-box p {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    line-height: 1.7;
}

/* --------------------------------------------------
   ABOUT US PAGE – MISSION SECTION
   Needle icon, mission statement box with dashed border
   -------------------------------------------------- */

.mission-statement-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.needle-icon {
    text-align: center;
    flex-shrink: 0;
}

.needle-icon img {
    display: block;
    width: 450px;
    margin-left: 0;
}

.mission-info-box {
    position: relative;
    width: 658px;
    padding: 28px 28px 28px 32px;
    background-color: var(--color-bg-box);
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
}

.mission-info-box h2 {
    margin-bottom: 16px;
    font-family: 'Cinzel', serif;
    font-size: 25px;
}

.mission-info-box p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    line-height: 1.7;
}

.mission-stitched-box::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 3px dashed var(--color-brand);
    pointer-events: none;
    z-index: 1;
}

.mission-stitched-box::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 72%;
    transform: translateY(-50%);
    width: 28px;
    height: 37px;
    background-color: var(--color-bg-box);
    z-index: 2;
}

.mission-stitched-scissors {
    position: absolute;
    right: -8px;
    top: 72%;
    transform: translateY(-50%) rotate(20deg);
    width: 100px;
    height: auto;
    z-index: 3;
}

/* Tablet band: About mission box only—match phone stitched simplification; Services unchanged */
@media (min-width: 767px) and (max-width: 1024px) {
    .mission-info-box.stitched-box .mission-stitched-scissors {
        display: none !important;
    }

    .mission-info-box.stitched-box::after {
        display: none !important;
        content: none !important;
    }

    .mission-info-box.stitched-box::before {
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
    }
}

/* --------------------------------------------------
   SERVICES PAGE
   Page heading, intro box, two-column price lists
   -------------------------------------------------- */

.services-page-section {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    --services-pad-x: 20px;
    padding: 0 var(--services-pad-x);
}

.services-page-section::before {
    display: none;
}

.services-page-heading {
    position: relative;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(10px, 3vw, 20px);
    box-sizing: border-box;
    width: calc(100% + 2 * var(--services-pad-x));
    max-width: none;
    margin-top: clamp(12px, 2.6vw, 26px);
    margin-bottom: 40px;
    margin-left: calc(-1 * var(--services-pad-x));
    margin-right: calc(-1 * var(--services-pad-x));
    padding: 0.2em 0 0;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-brand);
    text-align: center;
    white-space: nowrap;
}

.services-page-heading::before,
.services-page-heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-brand);
    align-self: center;
    justify-self: stretch;
}

.services-intro-box {
    max-width: 820px;
    margin: 0 auto 50px;
    padding: 28px 30px;
    text-align: center;
    background-color: var(--color-bg-box);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.services-intro-box p {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.services-intro-box p:last-of-type {
    margin-bottom: 24px;
}

.services-intro-box .contact-btn {
    position: relative;
    top: -25px;
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.services-column {
    padding: 30px;
    background-color: #ffffff;
    border-top: 3px solid var(--color-brand);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.services-column h3 {
    margin: 30px 0 18px;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--color-brand);
}

.services-column h3:first-child {
    margin-top: 0;
}

.services-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-column li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text-dark);
}

.services-column li:last-child {
    border-bottom: none;
}

.services-column li span:first-child {
    max-width: 72%;
    text-align: left;
}

.services-column li span:last-child {
    white-space: nowrap;
    text-align: right;
    color: var(--color-brand);
}

.service-note {
    margin: -4px 0 18px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* --------------------------------------------------
   STITCHED BOX (shared decorative style)
   Dashed border + scissors icon used on Services & About pages
   -------------------------------------------------- */

.stitched-box {
    position: relative;
}

.stitched-box::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 3px dashed var(--color-brand);
    pointer-events: none;
    z-index: 1;
}

.stitched-box::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 75%;
    transform: translateY(-50%);
    width: 28px;
    height: 37px;
    background-color: var(--color-bg-box);
    z-index: 2;
}

.stitched-scissors {
    position: absolute;
    right: -18px;
    top: 72%;
    transform: translateY(-50%) rotate(20deg);
    width: 150px;
    height: auto;
    z-index: 3;
}

/* --------------------------------------------------
   GALLERY PAGE – BBC FEATURE SECTION
   Video embed and info box overlay
   -------------------------------------------------- */

.gallery-page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}

.bbc-feature-section {
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

.bbc-background {
    position: relative;
    width: 100%;
    height: 460px;
    margin: 0 auto;
    background-image: url("images/Upholstered Cushion.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bbc-video {
    position: absolute;
    top: 105px;
    left: 100px;
    width: 430px;
    height: auto;
    display: block;
    border: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.50);
    background-color: #000000;
    padding: 8px;
    background-image: repeating-linear-gradient(
        45deg,
        #c3471a 0px,
        #c3471a 8px,
        #e36b2c 8px,
        #e36b2c 16px,
        #9b2e12 16px,
        #9b2e12 24px,
        #5b2a1c 24px,
        #5b2a1c 32px
    );
}

.bbc-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: #000;
}

.bbc-info-box {
    position: absolute;
    top: 135px;
    left: 640px;
    width: 460px;
    padding: 34px 34px 30px 34px;
    background-color: rgba(255, 248, 242, 0.94);
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.bbc-info-box::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--color-brand);
    pointer-events: none;
}

.bbc-kicker {
    margin: 0 0 12px 0;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-brand);
}

.bbc-info-box h2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    line-height: 1.45;
    color: var(--color-text-dark);
}

/* --------------------------------------------------
   GALLERY – BEFORE & AFTER SECTION
   Paired before/after image layouts (2-image and 4-image)
   -------------------------------------------------- */

.before-after-section {
    margin-top: -40px;
    margin-bottom: 10px;
}

.before-after-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.before-after-pair {
    width: 520px;
    padding: 12px;
    background-color: #ffffff;
    border: 3px solid var(--color-brand);
    box-sizing: border-box;
}

.before-after-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
}

.before-after-labels p {
    margin: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--color-brand);
}

.before-after-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    box-sizing: border-box;
}

.before-after-images img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    border: 3px solid var(--color-brand);
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.before-after-images img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* --------------------------------------------------
   GALLERY – 4-IMAGE QUAD LAYOUT
   Tweed item: 2 before + 2 after in horizontal row
   -------------------------------------------------- */

.before-after-quad-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.before-after-quad-box {
    width: 100%;
    max-width: 1080px;
    padding: 12px;
    background-color: #ffffff;
    border: 3px solid var(--color-brand);
    box-sizing: border-box;
}

.before-after-quad-labels.before-after-quad-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.before-after-quad-labels p {
    margin: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--color-brand);
}

.before-after-quad-images.before-after-quad-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3px;
}

.before-after-quad-images img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: contain;
    background-color: #ffffff;
    border: 3px solid var(--color-brand);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.before-after-quad-images img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* --------------------------------------------------
   GALLERY – SECTION HEADINGS
   Centered heading with horizontal line decorations
   -------------------------------------------------- */

.before-after-heading,
.alterations-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    margin: 0 auto 28px auto;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--color-brand);
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.before-after-heading::before,
.before-after-heading::after,
.alterations-heading::before,
.alterations-heading::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--color-brand);
}

.alterations-heading {
    width: calc(100% + 40px);
    margin: 0 -20px 28px;
}

/* --------------------------------------------------
   GALLERY – ALTERATIONS SHOWCASE SECTION
   Wedding, beaded dress, medals, curtains examples
   -------------------------------------------------- */

.alterations-selection-section {
    width: 100%;
    max-width: 1300px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.alteration-showcase-box {
    margin: 0 auto 40px;
    padding: 34px 34px 38px;
    background-color: var(--color-bg-box-alt);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.alteration-showcase-box h3 {
    margin: 0 0 14px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--color-brand);
}

.alteration-description {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Shared base: all alteration gallery rows (wedding, beaded, medals, curtain) */
.wedding-gallery-row img,
.beaded-gallery-row img,
.medals-gallery-row img,
.curtain-gallery-row img {
    display: block;
    flex-shrink: 0;
    background-color: #ffffff;
    border: 3px solid var(--color-brand);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wedding-gallery-row img:hover,
.beaded-gallery-row img:hover,
.curtain-gallery-row img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.medals-gallery-row img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Wedding dress – horizontal scrollable photo strip */
.wedding-gallery-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 6px;
}

.wedding-gallery-row img {
    width: 150px;
    height: 210px;
    object-fit: cover;
    box-sizing: border-box;
}

/* Beaded dress – full images, no cropping */
.beaded-gallery-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 6px;
}

.beaded-gallery-row img {
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    box-sizing: border-box;
}

/* Medals – full images, no cropping */
.medals-gallery-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 6px;
}

.medals-gallery-row img {
    width: auto;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* Curtains – single image row */
.curtain-gallery-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 6px;
}

.curtain-gallery-row img {
    width: 260px;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
}

/* --------------------------------------------------
   LIGHTBOX (Gallery full-screen image viewer)
   Overlay, close/prev/next controls, image display
   -------------------------------------------------- */

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background-color: rgba(0,0,0,0.78);
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.image-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 6px solid #ffffff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    background-color: #ffffff;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 30px;
    font-size: 42px;
    color: #ffffff;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 46px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 10px 16px;
    transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* --------------------------------------------------
   CONTACT PAGE
   Intro, form panel, contact details, social links
   -------------------------------------------------- */

.contact-page-section {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: transparent;
    z-index: 0;
}

.contact-page-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    padding-top: 30px;
    text-align: center;
}

.contact-page-kicker {
    margin: -10px 0 10px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--color-brand);
}

.contact-page-intro h2 {
    margin: 0 0 16px;
    font-family: 'Cinzel', serif;
    font-size: 44px;
    color: var(--color-brand);
}

.contact-page-copy {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.contact-form-panel {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 36px;
    align-items: stretch;
    padding: 38px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: linear-gradient(135deg, var(--color-bg-box-alt) 0%, #f7efe7 100%);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.contact-form-side {
    padding: 34px;
    min-width: 0;
    max-width: 100%;
    background-color: #ffffff;
    border-top: 4px solid var(--color-brand);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.contact-form-side h3,
.contact-details-box h3,
.contact-social-section h3 {
    margin: 0 0 22px;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--color-brand);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--color-text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #d7cbbd;
    background-color: #fffaf5;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: var(--color-text-dark);
    box-sizing: border-box;
    outline: none;
}

.contact-form textarea {
    resize: none;
    min-height: 180px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-brand);
}

.contact-form-btn {
    align-self: flex-start;
    padding: 14px 34px;
    background-color: #4a3425;
    color: #ffffff;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact-form-btn:hover {
    opacity: 0.88;
}

.contact-details-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    max-width: 100%;
}

.contact-details-box {
    padding: 30px 30px 28px;
    min-width: 0;
    max-width: 100%;
    background-color: var(--color-bg-box);
    border-left: 6px solid var(--color-brand);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.contact-details-box p,
.contact-details-box li {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-muted);
    overflow-wrap: anywhere;
}

.contact-details-box p:last-child {
    margin-bottom: 0;
}

.contact-details-box span {
    font-family: 'Cinzel', serif;
    color: var(--color-text-dark);
}

.contact-details-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-social-section {
    margin: 46px auto 0;
    padding: 30px 20px;
    max-width: 760px;
    text-align: center;
    background-color: #ffffff;
    border-top: 3px solid var(--color-brand);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.06);
}

.contact-social-links a {
    display: inline-block;
    margin: 0 16px;
    text-decoration: none;
}

.contact-social-links img {
    width: 38px;
    height: 38px;
    transition: opacity 0.3s ease;
}

.contact-social-links img:hover {
    opacity: 0.65;
}

#contact-form-section {
    scroll-margin-top: var(--body-pad-top);
}

/* Thank you page + contact form redirect target (Netlify) */

.thank-you-page-intro {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-notice {
    margin-top: 20px;
    padding: 14px 18px;

    background-color: #eaf6ee;
    border-left: 5px solid #2f7a4a;

    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2f7a4a;

    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.thank-you-back {
    margin-top: 1.5rem;
}

.thank-you-back a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thank-you-back a:hover {
    opacity: 0.8;
}

/* --------------------------------------------------
   PAGE TRANSITION EFFECT (used by JavaScript)
   fade-in on load, fade-out before navigation
   -------------------------------------------------- */

body.fade-out {
    opacity: 0;
}

body.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUT (320–1920)
   Tier A/B: max-width 1023 | Tier A tight: max-width 767 | Tier A stress: 479
   Desktop nav gap: 1024–1279 | BBC desktop layout from 1200px
   ========================================================================== */

@media (max-width: 1279px) and (min-width: 1024px) {
    .main-nav ul {
        gap: 40px;
    }
}

@media (max-width: 1150px) and (min-width: 1024px) {
    .main-nav ul {
        gap: 28px;
    }
}

@media (max-width: 1023px) {
    /* .site-frame pull + flush Services: base styles (all viewports) */

    body.nav-menu-open {
        overflow: hidden;
    }

    .site-header {
        height: auto;
        min-height: 0;
        padding: 12px 10px 10px;
        align-items: flex-start;
    }

    .site-width {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 10px;
        width: 100%;
    }

    .header-left {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-shrink: 0;
    }

    .header-logo {
        height: 72px;
        width: auto;
        max-width: 90px;
        margin-left: 4px;
    }

    .header-center {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        position: relative;
        padding-right: 50px;
        padding-left: 2px;
        text-align: center;
    }

    .site-header h1 {
        font-size: var(--header-h1-mobile);
        line-height: 1.15;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .site-header h2 {
        font-size: var(--header-h2-mobile);
        margin: 4px 0 0;
        line-height: 1.25;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .site-header h2::after {
        width: min(280px, calc(100% - 16px));
        margin: 8px auto 0;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        top: 0;
        right: 2px;
        z-index: 1002;
        width: 44px;
        height: 44px;
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        flex-basis: 100%;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-header.nav-open .main-nav {
        max-height: 420px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 10px 0 4px;
        padding: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 14px 16px;
        text-align: center;
    }

    .main-nav a.active::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 6px;
        width: 40%;
    }

    .contact-map-section {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 48px 20px 72px;
    }

    .contact-left {
        width: 100%;
        min-height: 0;
    }

    .contact-right iframe {
        width: 100%;
        max-width: none;
        height: clamp(240px, 56vw, 380px);
        margin-top: 0;
    }

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

    .services-intro-box .contact-btn {
        top: 0;
    }

    .contact-form-panel {
        grid-template-columns: 1fr;
        padding: 28px 18px;
    }

    .image-container {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    #threads-image {
        position: relative;
        height: 220px;
        width: 100%;
    }

    .about-info-box {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-width: none;
        margin: 16px;
        padding: 24px 22px;
        box-sizing: border-box;
    }

    .mission-statement-section {
        flex-direction: column;
        margin-top: 40px;
        padding: 0 12px;
        gap: 28px;
    }

    .needle-icon img {
        width: min(100%, 340px);
        margin: 0 auto;
    }

    .mission-info-box {
        width: auto;
        max-width: none;
    }

    .before-after-row {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .before-after-pair {
        width: 100%;
        max-width: 520px;
    }

    .before-after-heading,
    .alterations-heading {
        white-space: normal;
        flex-wrap: wrap;
        font-size: clamp(1.05rem, 4vw, 1.65rem);
        gap: 14px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* Keep one row so ::before/::after stay as side lines (flex-wrap strands ::before alone) */
    .alterations-heading {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(6px, 2.5vw, 14px);
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(0.82rem, 3.35vw, 1.65rem);
    }

    .alterations-heading::before,
    .alterations-heading::after {
        flex: 1 1 0;
        min-width: 0;
        height: 2px;
    }
}

@media (max-width: 1199px) {
    .bbc-background {
        height: auto;
        min-height: 200px;
        padding: 28px 18px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        box-sizing: border-box;
    }

    .bbc-video {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .bbc-info-box {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 26px 22px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .page-content {
        padding-bottom: 72px;
    }

    .hero-section {
        height: auto;
        min-height: 260px;
        margin-bottom: 28px;
        padding: 22px 16px;
        flex-direction: column;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .hero-right {
        width: 100%;
        justify-content: center;
    }

    .hero-right img {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        border-width: 12px;
        max-height: none;
    }

    .secondary-hero {
        height: auto;
        min-height: 280px;
        margin-top: 48px;
        padding: 36px 16px;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .secondary-hero-right {
        width: 100%;
        justify-content: center;
    }

    .review-box {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        font-size: clamp(1rem, 3.5vw, 1.125rem);
        padding: 20px 18px;
    }

    .contact-map-section {
        padding: 36px 14px 64px;
    }

    .contact-btn {
        width: 100%;
        max-width: 320px;
        align-self: center;
        box-sizing: border-box;
    }

    .contact-left .contact-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-left h2 {
        font-size: clamp(1.35rem, 5vw, 2rem);
    }

    .services-page-section,
    .contact-page-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-page-section {
        --services-pad-x: 14px;
    }

    .services-intro-box {
        padding: 22px 18px;
    }

    .contact-form-side {
        padding: 22px 18px;
    }

    .contact-form-panel {
        padding: 16px 12px;
        gap: 20px;
    }

    .contact-details-box {
        padding: 18px 14px 16px;
    }

    .contact-form-side h3,
    .contact-details-box h3 {
        font-size: clamp(1.15rem, 5vw, 1.75rem);
    }

    .contact-form-side .contact-form label {
        font-size: clamp(0.8rem, 3.2vw, 0.95rem);
    }

    .contact-form-side .contact-form input,
    .contact-form-side .contact-form textarea {
        font-size: clamp(0.85rem, 3.4vw, 1rem);
        padding: 14px 14px;
    }

    .contact-details-box p,
    .contact-details-box li {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .contact-form-btn {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .thank-you-notice {
        font-size: clamp(0.8rem, 3.3vw, 0.95rem);
    }

    .contact-page-intro h2 {
        font-size: clamp(1.65rem, 6.5vw, 2.75rem);
    }

    .contact-page-copy {
        font-size: clamp(1rem, 3.6vw, 1.25rem);
    }

    .before-after-quad-labels.before-after-quad-line {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .before-after-quad-images.before-after-quad-line {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .before-after-quad-images img {
        height: auto;
        min-height: 100px;
        max-height: 280px;
        object-fit: cover;
    }

    .before-after-images img {
        height: auto;
        min-height: 140px;
        max-height: 220px;
    }

    .wedding-gallery-row img {
        width: 120px;
        height: 168px;
    }

    .beaded-gallery-row img,
    .medals-gallery-row img {
        max-width: 180px;
        max-height: 240px;
    }

    .curtain-gallery-row img {
        width: min(260px, 100%);
    }

    .alterations-selection-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .alteration-showcase-box {
        padding: 24px 16px 28px;
    }

    .alteration-showcase-box h3 {
        font-size: clamp(1.15rem, 4.5vw, 1.75rem);
    }

    .image-lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: 10px;
        right: 12px;
        font-size: 36px;
    }

    .lightbox-arrow {
        font-size: 36px;
        padding: 8px 10px;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

    .site-footer {
        padding: 36px 12px;
    }

    .stitched-scissors,
    .mission-stitched-scissors {
        display: none !important;
    }

    .stitched-box::after,
    .mission-stitched-box::after {
        display: none !important;
        content: none !important;
    }

    .stitched-box::before,
    .mission-stitched-box::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .services-column li span:last-child,
    .hours-list li span:last-child {
        white-space: normal;
    }

    .bbc-feature-section,
    .gallery-page-wrapper {
        overflow-x: clip;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .contact-form-panel {
        padding: 12px 10px;
        gap: 16px;
    }

    .contact-form-side {
        padding: 16px 12px;
    }

    .contact-details-box {
        padding: 14px 10px 12px;
    }

    .contact-details-side {
        gap: 16px;
    }

    .contact-form-side h3,
    .contact-details-box h3 {
        font-size: clamp(1.05rem, 4.5vw, 1.55rem);
    }

    .contact-form-side .contact-form label {
        font-size: clamp(0.75rem, 3.1vw, 0.9rem);
    }

    .contact-form-side .contact-form input,
    .contact-form-side .contact-form textarea {
        font-size: clamp(0.8rem, 3.3vw, 0.95rem);
        padding: 12px 12px;
    }

    .contact-details-box p,
    .contact-details-box li {
        font-size: clamp(0.8rem, 3.4vw, 0.95rem);
    }

    .thank-you-notice {
        font-size: clamp(0.75rem, 3.1vw, 0.9rem);
    }

    .services-column li span:first-child {
        max-width: 65%;
    }

    .hours-list li span:first-child {
        max-width: 55%;
    }

    .site-header {
        padding: 10px 8px 8px;
    }

    .header-logo {
        height: 64px;
        max-width: 78px;
    }

    .header-center {
        padding-right: 46px;
    }

    .before-after-quad-labels.before-after-quad-line {
        grid-template-columns: 1fr;
    }

    .before-after-quad-images.before-after-quad-line {
        grid-template-columns: 1fr;
    }

    .before-after-quad-images img {
        max-height: 320px;
        object-fit: contain;
    }

    .about-info-box {
        margin: 12px;
        padding: 18px 16px;
    }

    .about-info-box h2 {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }
}

@media (min-width: 1920px) {
    .site-frame,
    .site-header {
        box-shadow:
            -24px 0 48px rgba(0, 0, 0, 0.19),
            24px 0 48px rgba(0, 0, 0, 0.19);
    }

    .site-header {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.1),
            -24px 0 48px rgba(0, 0, 0, 0.18),
            24px 0 48px rgba(0, 0, 0, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle-bar,
    .main-nav {
        transition-duration: 0.01ms !important;
    }

    body.fade-in {
        animation: none;
        opacity: 1;
    }
}