/* ============================================
   The Corner on Main — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ---- Selection ---- */
::selection {
    background: #8c2727;
    color: #fff8f6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8c2727;
}

/* ---- Section Eyebrow ---- */
.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c44343;
    font-weight: 500;
}

.section-eyebrow-light {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffc5b0;
    font-weight: 500;
}

/* ---- Divider ---- */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #f2a8a8 20%,
        #c44343 50%,
        #f2a8a8 80%,
        transparent
    );
    opacity: 0.5;
}

/* ---- Hero ---- */
.hero-bg {
    will-change: transform;
}

.hero-scrim {
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.55) 0%,
        rgba(97, 26, 26, 0.70) 50%,
        rgba(15, 15, 15, 0.80) 100%
    );
}

/* ---- Buttons ---- */
.btn-primary {
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-secondary {
    border: 1px solid;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
}

/* ---- Input Fields ---- */
.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8d0cc;
    padding: 0.6rem 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #2d2d2d;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: #b0a09a;
    font-weight: 300;
}

.input-field:focus {
    border-bottom-color: #8c2727;
}

/* ---- Nav Link ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c44343;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Mobile Nav Link ---- */
.mobile-nav-link {
    position: relative;
}

/* ---- Specialty Card ---- */
.card-specialty {
    background: #fefdfb;
    border-radius: 4px;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-specialty:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(140, 39, 39, 0.08);
}

/* ---- Reveal Animations ---- */
.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Default visible state for progressive enhancement */
.reveal-left   { transform: translateX(0); }
.reveal-right  { transform: translateX(0); }
.reveal-bottom { transform: translateY(0); }

/* JS-enhanced hidden states (applied by script.js) */
.js-reveal .reveal-left   { transform: translateX(-40px); opacity: 0; }
.js-reveal .reveal-right  { transform: translateX(40px); opacity: 0; }
.js-reveal .reveal-bottom { transform: translateY(30px); opacity: 0; }

/* ---- Mobile Menu ---- */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 6px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-left,
    .reveal-right,
    .reveal-bottom {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-title span {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem !important;
    }
}
