/* ============================================
   San Carlos Hotel — Custom Styles
   Clean Minimalist · Forest Green + Off-White
   ============================================ */

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

:root {
    --forest-dark: #0F2419;
    --forest: #1B3D2F;
    --forest-mid: #2A5C45;
    --forest-light: #3D7A5C;
    --forest-pale: #E8F0EC;
    --off-white: #F4F1EB;
    --cream: #FAF8F5;
    --warm-gray: #8A8578;
    --text-dark: #1A1A18;
    --text-mid: #4A4A44;
    --text-light: #7A7A72;
    --line: rgba(27, 61, 47, 0.12);
    --line-strong: rgba(27, 61, 47, 0.25);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 72px;
    --container-max: 1200px;
    --radius: 2px;
}

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

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

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(244, 241, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(15, 36, 25, 0.06);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--forest);
    letter-spacing: 0.02em;
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--forest);
}

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

.nav-cta {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--forest);
    letter-spacing: 0.06em;
    border: 1px solid var(--line-strong);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: var(--forest);
    color: var(--off-white);
    border-color: var(--forest);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    width: 22px;
    height: 1px;
    background: var(--forest);
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--off-white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--forest);
    letter-spacing: 0.02em;
}

.mobile-menu-cta {
    font-size: 0.85rem;
    color: var(--forest);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
}

.hero-content {
    padding-right: 1rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--forest-light);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--forest-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-headline-accent {
    font-style: italic;
    font-weight: 300;
    color: var(--forest-light);
}

.hero-subheadline {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.hero-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-detail-label {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-detail-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
}

.hero-detail-link {
    color: var(--forest);
    transition: color 0.25s ease;
}

.hero-detail-link:hover {
    color: var(--forest-light);
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    z-index: -1;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--forest-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--forest);
    color: var(--off-white);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    background: var(--forest-pale);
    border-color: var(--forest);
}

.btn-full {
    width: 100%;
}

/* --- Section Dividers --- */
.section-divider {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--forest-light);
    flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--forest-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 300;
    color: var(--forest-dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
}

/* --- Rooms Section --- */
.rooms {
    padding: 7rem 0;
    background: var(--cream);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.room-card {
    background: var(--off-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 36, 25, 0.08);
    border-color: var(--line-strong);
}

.room-image {
    aspect-ratio: 6/4;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.04);
}

.room-info {
    padding: 1.75rem;
}

.room-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--forest-dark);
    margin-bottom: 0.75rem;
}

.room-description {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-features li {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--forest-mid);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    background: var(--forest-pale);
    border-radius: var(--radius);
}

/* --- Location Section --- */
.location {
    padding: 7rem 0;
    background: var(--off-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-content {
    padding-right: 1rem;
}

.location-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.location-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.location-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.highlight-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--forest);
    line-height: 1;
}

.highlight-text {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-wrapper {
    aspect-ratio: 4/3;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Amenities Section --- */
.amenities {
    padding: 7rem 0;
    background: var(--forest-dark);
}

.amenities .section-eyebrow {
    color: var(--forest-light);
}

.amenities .section-title {
    color: var(--off-white);
}

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

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.amenity-item {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.amenity-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.amenity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--forest-light);
}

.amenity-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--off-white);
    margin-bottom: 0.6rem;
}

.amenity-description {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(244, 241, 235, 0.6);
    line-height: 1.75;
}

/* --- Testimonial Section --- */
.testimonial {
    padding: 7rem 0;
    background: var(--forest-pale);
}

.testimonial-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--forest-light);
    margin-bottom: -1rem;
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    font-style: italic;
    color: var(--forest-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-divider {
    width: 40px;
    height: 1px;
    background: var(--forest-light);
    margin: 0 auto 1.5rem;
}

.testimonial-source {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Contact Section --- */
.contact {
    padding: 7rem 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

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

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-detail-label {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-detail-value {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.5;
}

.contact-detail-link {
    color: var(--forest);
    transition: color 0.25s ease;
}

.contact-detail-link:hover {
    color: var(--forest-light);
}

.contact-form-wrapper {
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.25s ease;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--forest-pale);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--forest);
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: var(--forest);
}

/* --- Footer --- */
.footer {
    background: var(--forest-dark);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--off-white);
}

.footer-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(244, 241, 235, 0.5);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(244, 241, 235, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(244, 241, 235, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-link {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(244, 241, 235, 0.7);
    margin-bottom: 0.6rem;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--off-white);
}

.footer-address {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(244, 241, 235, 0.7);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-phone {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--forest-light);
    transition: color 0.25s ease;
}

.footer-phone:hover {
    color: var(--off-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(244, 241, 235, 0.35);
    letter-spacing: 0.04em;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 2.5rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
        padding-bottom: 4rem;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-image-wrapper {
        aspect-ratio: 4/3;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .location-content {
        padding-right: 0;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .location-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* --- 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[data-reveal] {
        opacity: 1;
        transform: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}
