/* ============================================
   Newcombs Ranch Inn — Custom Styles
   Color Palette: Deep Navy + Warm Gold
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d56;
    --navy-700: #1a3a6e;
    --navy-600: #1e4680;
    
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-300: #dfc870;
    --gold-200: #e8d98a;
    --gold-100: #f2e8a8;
    
    --white: #ffffff;
    --off-white: #faf9f6;
    --cream: #f5f3ef;
    --gray-50: #f8f7f5;
    --gray-100: #f0eeea;
    --gray-200: #e2dfd9;
    --gray-300: #c8c3bb;
    --gray-400: #a09a90;
    --gray-500: #706a62;
    --gray-600: #524d47;
    --gray-700: #3a3530;
    --gray-800: #242019;
    --gray-900: #12100d;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
}

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

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

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy-900);
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--navy-900);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-950);
    border: 1.5px solid var(--gold-500);
}

.btn-primary:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

.nav-logo-text {
    border-bottom: 1px solid var(--gold-500);
    padding-bottom: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-500);
    transition: width var(--transition-base);
}

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

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gold-400);
    transition: color var(--transition-fast);
}

.nav-phone:hover {
    color: var(--gold-300);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--white);
    transition: all var(--transition-base);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--navy-950);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    color: var(--white);
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.nav-overlay-close:hover {
    color: var(--gold-500);
}

.nav-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
    transition: color var(--transition-fast);
}

.nav-overlay-link:hover {
    color: var(--gold-500);
}

.nav-overlay-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--gold-400);
    margin-top: var(--space-xl);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.72) 0%,
        rgba(15, 33, 64, 0.80) 50%,
        rgba(10, 22, 40, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-4xl) var(--space-xl);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--gold-500);
    margin: 0 auto var(--space-2xl);
}

.hero-location {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-2xl);
}

.hero-title-line {
    display: block;
}

.hero-title-line + .hero-title-line {
    font-style: italic;
    color: var(--gold-200);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto var(--space-3xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-4xl);
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-detail {
    text-align: center;
}

.hero-detail-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.hero-detail-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.hero-phone-link {
    color: var(--gold-400);
    transition: color var(--transition-fast);
}

.hero-phone-link:hover {
    color: var(--gold-300);
}

/* ============================================
   Rooms
   ============================================ */
.rooms {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.room-card {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.room-card:hover {
    border-color: var(--gold-500);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

.room-card-image {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.room-card-content {
    padding: var(--space-2xl);
}

.room-card-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.room-card-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.room-card-amenities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.room-card-amenities li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-left: var(--space-lg);
    position: relative;
}

.room-card-amenities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 1px;
    background-color: var(--gold-500);
}

.rooms-cta {
    text-align: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.rooms-cta p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--gold-500);
    z-index: -1;
}

.about-content {
    max-width: 560px;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: var(--space-lg);
}

.about-text:last-of-type {
    margin-bottom: var(--space-2xl);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.about-feature svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ============================================
   Location
   ============================================ */
.location {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

.location-map {
    aspect-ratio: 4/3;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.location-detail {
    display: flex;
    gap: var(--space-lg);
}

.location-detail svg {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
}

.location-detail p,
.location-detail a {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.location-detail a:hover {
    color: var(--gold-500);
}

.location-distances h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.location-distances ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.location-distances li {
    font-size: 0.95rem;
    color: var(--gray-600);
    padding-left: var(--space-lg);
    position: relative;
}

.location-distances li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background-color: var(--gold-500);
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--navy-900);
}

.contact .section-tag {
    color: var(--gold-400);
}

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

.contact-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: var(--space-2xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-detail {
    display: flex;
    gap: var(--space-lg);
}

.contact-detail svg {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.contact-detail p,
.contact-detail a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    transition: color var(--transition-fast);
}

.contact-detail a:hover {
    color: var(--gold-400);
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-xl);
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 0.85rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-bottom-color: var(--gold-500);
}

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

.form-success {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.form-success svg {
    color: var(--gold-500);
    margin-bottom: var(--space-xl);
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background-color: var(--navy-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-500);
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--gold-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--gold-300);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-xl);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--gold-500);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-details {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

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