/* ============================================
   Sewing 4 U LLC — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1f3515;
    color: #fdfcfa;
    padding: 0.5rem 1rem;
    z-index: 1000;
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Section Shared --- */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a772e;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: #15240e;
    margin-bottom: 1rem;
}

.section-title em {
    font-style: italic;
    color: #365a22;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2a471b;
    max-width: 600px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #1f3515;
    color: #fdfcfa;
    border: 2px solid #1f3515;
}

.btn--primary:hover {
    background: #2a471b;
    border-color: #2a471b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 53, 21, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    background: transparent;
    color: #fdfcfa;
    border: 2px solid rgba(253, 252, 250, 0.5);
}

.btn--outline:hover {
    background: rgba(253, 252, 250, 0.1);
    border-color: rgba(253, 252, 250, 0.8);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 53, 21, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(31, 53, 21, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .nav__inner {
        padding: 0 2rem;
    }
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #15240e;
}

.nav__brand-icon {
    color: #4a772e;
}

.nav__brand-text {
    letter-spacing: -0.01em;
}

.nav__brand-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a772e;
    margin-left: 0.125rem;
    align-self: flex-end;
    margin-bottom: 0.25rem;
}

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    color: #15240e;
    transition: background 0.2s ease;
}

.nav__toggle:hover {
    background: rgba(31, 53, 21, 0.06);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon line:nth-child(1) {
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon line:nth-child(2) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon line:nth-child(3) {
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 53, 21, 0.08);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.nav__link {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    color: #2a471b;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav__link:hover {
    background: rgba(74, 119, 46, 0.08);
    color: #1f3515;
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #1f3515;
    color: #fdfcfa;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
}

.nav__cta:hover {
    background: #2a471b;
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: none;
        backdrop-filter: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .nav__links {
        flex-direction: row;
        margin-bottom: 0;
    }

    .nav__link {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
    }

    .nav__cta {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #15240e;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/3615716/pexels-photo-3615716.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 36, 14, 0.92) 0%,
        rgba(31, 53, 21, 0.85) 50%,
        rgba(42, 71, 27, 0.78) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 8rem 1.5rem 6rem;
}

@media (min-width: 768px) {
    .hero__content {
        padding: 10rem 2rem 8rem;
    }
}

.hero__eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(253, 252, 250, 0.6);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fdfcfa;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: #c5dbb5;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(253, 252, 250, 0.75);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(253, 252, 250, 0.4);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 6rem 0;
    background: #fdfcfa;
}

@media (min-width: 768px) {
    .services {
        padding: 8rem 0;
    }
}

.services__header {
    text-align: center;
    margin-bottom: 4rem;
}

.services__header .section-desc {
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #faf6f0;
    border: 1px solid rgba(31, 53, 21, 0.06);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 53, 21, 0.1);
    border-color: rgba(74, 119, 46, 0.15);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 119, 46, 0.08);
    border-radius: 0.75rem;
    color: #4a772e;
    margin-bottom: 1.25rem;
}

.card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #15240e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #2a471b;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 6rem 0;
    background: #f2f7f0;
}

@media (min-width: 768px) {
    .about {
        padding: 8rem 0;
    }
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about__inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about__image-wrap {
    position: relative;
}

.about__image {
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__image-accent {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(74, 119, 46, 0.2);
    border-radius: 0.75rem;
    z-index: -1;
}

@media (min-width: 900px) {
    .about__image-accent {
        top: -1.5rem;
        right: -1.5rem;
    }
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a471b;
    margin-bottom: 1.25rem;
}

.about__stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(31, 53, 21, 0.1);
}

.stat {
    flex: 1;
}

.stat__number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f3515;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4a772e;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    background: rgba(31, 53, 21, 0.1);
    align-self: stretch;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: 6rem 0;
    background: #fdfcfa;
}

@media (min-width: 768px) {
    .gallery {
        padding: 8rem 0;
    }
}

.gallery__header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery__grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 220px);
        gap: 1.25rem;
    }

    .gallery__item:nth-child(1) {
        grid-column: 1 / 8;
        grid-row: 1 / 3;
    }

    .gallery__item:nth-child(2) {
        grid-column: 8 / 13;
        grid-row: 1 / 2;
    }

    .gallery__item:nth-child(3) {
        grid-column: 8 / 11;
        grid-row: 2 / 3;
    }

    .gallery__item:nth-child(4) {
        grid-column: 11 / 13;
        grid-row: 2 / 3;
    }
}

.gallery__item {
    position: relative;
    border-radius: 0.625rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

@media (min-width: 900px) {
    .gallery__item {
        aspect-ratio: auto;
    }
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 36, 14, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-overlay span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fdfcfa;
}

/* ============================================
   Quote Section
   ============================================ */
.quote-section {
    padding: 6rem 0;
    background: #1f3515;
}

@media (min-width: 768px) {
    .quote-section {
        padding: 7rem 0;
    }
}

.quote-section__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-section__quote-mark {
    color: rgba(197, 219, 181, 0.2);
    margin-bottom: 1.5rem;
}

.quote-section__text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(253, 252, 250, 0.9);
    margin-bottom: 1.5rem;
}

.quote-section__attribution {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(197, 219, 181, 0.6);
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 6rem 0;
    background: #f2f7f0;
}

@media (min-width: 768px) {
    .contact {
        padding: 8rem 0;
    }
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .contact__inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact__desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #2a471b;
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact__detail {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact__detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a772e;
}

.contact__detail-label svg {
    flex-shrink: 0;
}

.contact__detail-link {
    font-size: 1rem;
    line-height: 1.6;
    color: #15240e;
    transition: color 0.2s ease;
}

.contact__detail-link:hover {
    color: #4a772e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact__hours {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact__hours-note {
    font-size: 0.875rem;
    color: #6e9a4e;
}

/* --- Form --- */
.contact__form-wrap {
    background: #fdfcfa;
    border: 1px solid rgba(31, 53, 21, 0.08);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 640px) {
    .contact__form-wrap {
        padding: 2.5rem;
    }
}

.contact__form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #15240e;
    margin-bottom: 0.375rem;
}

.contact__form-sub {
    font-size: 0.9375rem;
    color: #2a471b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2a471b;
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #15240e;
    background: #faf6f0;
    border: 1.5px solid rgba(31, 53, 21, 0.12);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
}

.form__input::placeholder {
    color: #9dbe82;
}

.form__input:focus {
    border-color: #4a772e;
    background: #fdfcfa;
    box-shadow: 0 0 0 3px rgba(74, 119, 46, 0.1);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a772e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(74, 119, 46, 0.08);
    border: 1px solid rgba(74, 119, 46, 0.2);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #1f3515;
}

.form__success svg {
    flex-shrink: 0;
    color: #4a772e;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #15240e;
    color: rgba(253, 252, 250, 0.7);
    padding: 4rem 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
    }
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fdfcfa;
    margin-bottom: 0.75rem;
}

.footer__logo svg {
    color: #9dbe82;
}

.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(253, 252, 250, 0.5);
    max-width: 280px;
}

.footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__nav-links a {
    font-size: 0.9375rem;
    color: rgba(253, 252, 250, 0.6);
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.footer__nav-links a:hover {
    color: #c5dbb5;
}

.footer__phone {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #c5dbb5;
    margin-bottom: 0.375rem;
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: #fdfcfa;
}

.footer__address {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(253, 252, 250, 0.45);
}

.footer__bottom {
    border-top: 1px solid rgba(253, 252, 250, 0.08);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(253, 252, 250, 0.35);
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
