/* ============================================
   THREADING STUDIO — Custom Styles
   ============================================ */

:root {
    --green-900: #0D1F12;
    --green-800: #1A3A2A;
    --green-700: #234D38;
    --green-600: #2D6147;
    --green-500: #3A7D5C;
    --green-400: #52A078;
    --green-100: #C8E6D4;
    --green-50:  #E8F5EC;
    --cream:     #FAFAF7;
    --cream-dark:#F3F1EC;
    --warm-white:#FEFDFB;
    --text-dark: #1A1A18;
    --text-mid:  #3D3D38;
    --text-light:#6B6B64;
    --text-muted:#9A9A92;
    --line:      rgba(26, 58, 42, 0.12);
    --line-strong: rgba(26, 58, 42, 0.25);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    
    --header-h: 72px;
    --radius: 2px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- LOADER ---- */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    text-align: center;
}
.loader-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--green-400);
    animation: loaderExpand 1s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes loaderExpand {
    0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* ---- HEADER ---- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
#main-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--green-800);
    letter-spacing: 0.02em;
}
.logo-icon {
    color: var(--green-700);
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
#main-nav a:not(.btn) {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    transition: color var(--transition);
}
#main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-600);
    transition: width var(--transition);
}
#main-nav a:not(.btn):hover {
    color: var(--green-700);
}
#main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--green-800);
    color: #fff;
    border-color: var(--green-800);
}
.btn--primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 58, 42, 0.2);
}
.btn--ghost {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-800);
}
.btn--ghost:hover {
    background: var(--green-800);
    color: #fff;
}
.btn--nav {
    padding: 10px 24px;
    font-size: 0.7rem;
}
.btn--full {
    width: 100%;
}

/* ---- MENU TOGGLE ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--green-800);
    transition: all var(--transition);
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--green-800);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.mobile-menu-link:hover {
    color: var(--green-500);
}
.mobile-book-btn {
    margin-top: 16px;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--green-800);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/7750113/pexels-photo-7750113.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.35;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 31, 18, 0.92) 0%, rgba(26, 58, 42, 0.80) 50%, rgba(13, 31, 18, 0.88) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: var(--header-h);
    padding-bottom: 80px;
}
.hero-text {
    max-width: 520px;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 24px;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}
.hero-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 440px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-actions .btn--ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn--ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}
.hero-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--green-400);
    border-radius: 4px;
    opacity: 0.4;
    z-index: -1;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---- SECTION COMMON ---- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 20px;
}
.section-line {
    width: 48px;
    height: 1px;
    background: var(--green-600);
    margin: 0 auto;
}

/* ---- SERVICES ---- */
.services {
    padding: 120px 0;
    background: var(--warm-white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    border-color: var(--green-200, var(--green-100));
    box-shadow: 0 8px 32px rgba(26, 58, 42, 0.08);
    transform: translateY(-4px);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-700);
}
.service-icon svg {
    stroke: currentColor;
}
.service-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.service-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-light);
}

/* ---- ABOUT ---- */
.about {
    padding: 120px 0;
    background: var(--cream);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 4px;
}
.about-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--green-200, var(--green-100));
    border-radius: var(--radius);
    z-index: -1;
}
.about-content {
    max-width: 480px;
}
.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}
.about-line {
    width: 48px;
    height: 1px;
    background: var(--green-600);
    margin-bottom: 32px;
}
.about-text {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 20px;
}
.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.value-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--green-400);
    line-height: 1;
    min-width: 32px;
}
.value-item h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.value-item p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- GALLERY ---- */
.gallery {
    padding: 120px 0 0;
    background: var(--warm-white);
}
.gallery .container {
    margin-bottom: 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 64px;
}
.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 42, 0);
    transition: background var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover::after {
    background: rgba(26, 58, 42, 0.15);
}

/* ---- CONTACT ---- */
.contact {
    padding: 120px 0;
    background: var(--green-800);
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact .section-label {
    color: var(--green-400);
}
.contact .section-title {
    color: #fff;
}
.contact-line {
    width: 48px;
    height: 1px;
    background: var(--green-400);
    margin-bottom: 24px;
}
.contact-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item svg {
    color: var(--green-400);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 4px;
}
.contact-item span,
.contact-item a {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}
.contact-item a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--green-400);
    text-underline-offset: 4px;
}

/* ---- FORM ---- */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 48px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-400);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: #fff;
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-400);
}
.form-group select {
    appearance: none;
    cursor: pointer;
    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='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-group select option {
    background: var(--green-800);
    color: #fff;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-success {
    text-align: center;
    padding: 48px 24px;
    color: #fff;
}
.form-success svg {
    color: var(--green-400);
    margin-bottom: 20px;
}
.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
}
.form-success p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

/* ---- FOOTER ---- */
#footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo--light {
    color: #fff;
    margin-bottom: 16px;
}
.logo--light .logo-icon {
    color: var(--green-400);
}
.footer-brand p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}
.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--green-400);
}
.footer-hours,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-hours p,
.footer-contact p {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}
.footer-contact a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--green-400);
}
.footer-bottom {
    padding: 24px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 48px;
    }
    .contact-grid {
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }
    #main-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--header-h) + 40px);
        padding-bottom: 100px;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-desc {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        display: none;
    }
    .hero-scroll {
        display: none;
    }
    .services {
        padding: 80px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        padding: 32px 28px;
    }
    .about {
        padding: 80px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-wrap img {
        height: 400px;
    }
    .about-content {
        max-width: 100%;
    }
    .gallery {
        padding: 80px 0 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    .contact {
        padding: 80px 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-form-wrap {
        padding: 32px 24px;
    }
    #footer {
        padding: 64px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
