/* ============================================
   TRIMS & TRESSES — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: #D4A373;
    color: #0f241c;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F6EE;
}
::-webkit-scrollbar-thumb {
    background: #8fb896;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d7a3f;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav-fixed {
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #1B4332;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile menu */
.mobile-menu {
    animation: fadeSlideIn 0.3s ease forwards;
}

.mobile-menu.hidden {
    animation: fadeSlideOut 0.25s ease forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A373;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after,
.mobile-menu-link.active::after {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0f241c 0%,
        #1B4332 25%,
        #2d7a3f 55%,
        #5e9768 80%,
        #8fb896 100%
    );
}

.hero-scrim {
    background: linear-gradient(
        to bottom,
        rgba(9, 21, 17, 0.15) 0%,
        rgba(9, 21, 17, 0.05) 50%,
        rgba(9, 21, 17, 0.3) 100%
    );
}

/* Hero geometric shapes */
.hero-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.hero-shape-circle-a {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #D4A373;
    top: -120px;
    right: -100px;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-shape-circle-b {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #F2EBDA;
    bottom: 10%;
    left: 5%;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.hero-shape-triangle-a {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #C1694F;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: floatSlow 7s ease-in-out infinite;
    opacity: 0.1;
}

.hero-shape-triangle-b {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid #D4A373;
    bottom: 25%;
    right: 10%;
    transform: rotate(-20deg);
    animation: floatSlow 9s ease-in-out infinite reverse;
    opacity: 0.1;
}

.hero-shape-rect-a {
    width: 200px;
    height: 200px;
    background: #F2EBDA;
    border-radius: 32px;
    top: 60%;
    right: 5%;
    transform: rotate(45deg);
    animation: floatSlow 11s ease-in-out infinite;
    opacity: 0.08;
}

.hero-shape-ring {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(212, 163, 115, 0.4);
    border-radius: 50%;
    top: 15%;
    right: 20%;
    animation: spinSlow 20s linear infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

.hero-shape-triangle-a { --rotate: 15deg; }
.hero-shape-triangle-b { --rotate: -20deg; }
.hero-shape-rect-a { --rotate: 45deg; }

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.7;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #D4A373;
    color: #0f241c;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.4);
}

.btn-primary:hover {
    background: #e0b488;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 163, 115, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 60px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2d7a3f;
    background: linear-gradient(135deg, #dce8e1, #b9d1bf);
    padding: 6px 16px;
    border-radius: 30px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #0f241c;
    line-height: 1.15;
}

.section-title-light {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #FDFCFA;
    line-height: 1.15;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.12);
}

.service-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #1B4332, #2d7a3f, #D4A373);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-accent {
    opacity: 1;
}

.service-card-content {
    padding: 28px 28px 32px;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f5f2, #dce8e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #1B4332, #2d7a3f);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-shape {
    position: absolute;
    pointer-events: none;
}

.about-shape-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(45, 122, 63, 0.15);
    top: -100px;
    right: -100px;
}

.about-shape-ring {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(212, 163, 115, 0.2);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.about-shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 163, 115, 0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 30%;
    right: 5%;
}

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.about-image-main img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #D4A373;
    border-radius: 20px;
    bottom: -30px;
    right: -30px;
    z-index: -1;
    opacity: 0.6;
}

.about-floating-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: white;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.afc-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B4332;
    line-height: 1;
}

.afc-label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.afc-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.afc-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.afc-box-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 163, 115, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A373;
    flex-shrink: 0;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 36, 17, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: white;
    font-style: italic;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-shape {
    position: absolute;
    pointer-events: none;
}

.testi-shape.shape-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.04);
    top: -80px;
    left: -80px;
}

.testi-shape.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(212, 163, 115, 0.1);
    bottom: -50px;
    right: 10%;
}

.testi-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.06);
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.testi-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #dce8e1;
    position: absolute;
    top: 10px;
    left: 24px;
    line-height: 1;
    pointer-events: none;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(27, 67, 50, 0.1);
}

.testi-stars {
    color: #D4A373;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testi-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    position: relative;
    z-index: 1;
}

.testi-author-name {
    font-weight: 600;
    color: #1B4332;
    font-size: 0.95rem;
}

.testi-author-location {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-shape {
    position: absolute;
    pointer-events: none;
}

.contact-shape-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(45, 122, 63, 0.1);
    bottom: -100px;
    right: -80px;
}

.contact-shape-rect {
    width: 180px;
    height: 180px;
    background: rgba(212, 163, 115, 0.08);
    border-radius: 32px;
    top: 10%;
    left: -40px;
    transform: rotate(30deg);
}

.contact-info-item {
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A373;
    flex-shrink: 0;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px;
    backdrop-filter: blur(8px);
}

.contact-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-input:focus {
    border-color: #D4A373;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #D4A373;
    color: #0f241c;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.3);
}

.btn-submit:hover {
    background: #e0b488;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 163, 115, 0.4);
}

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

.btn-submit svg {
    transition: transform 0.2s ease;
}

.btn-submit:hover svg {
    transform: translate(2px, -2px);
}

/* Form success */
.form-success {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(45, 122, 63, 0.2);
    border: 1px solid rgba(45, 122, 63, 0.3);
    border-radius: 14px;
    animation: fadeInUp 0.4s ease;
}

.form-success.hidden {
    display: none;
}

.fs-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45, 122, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fb896;
    flex-shrink: 0;
}

.fs-title {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.fs-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .hero-shape { animation: none; }
    .hero-shape-ring { animation: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-shape-circle-a {
        width: 300px;
        height: 300px;
    }
    .hero-shape-circle-b {
        width: 180px;
        height: 180px;
    }
    .hero-shape-triangle-a {
        border-left-width: 70px;
        border-right-width: 70px;
        border-bottom-width: 121px;
    }
    .about-floating-card {
        left: 10px;
        bottom: 20px;
    }
    .about-image-accent {
        width: 80px;
        height: 80px;
        bottom: -15px;
        right: -15px;
    }
    .contact-form-card {
        padding: 24px;
    }
}
