/* Variable Definitions */
:root {
    --color-primary: #0A2342;
    /* Deep Ocean Blue */
    --color-secondary: #D4AF37;
    /* Sand Gold */
    --color-accent: #F8F5F2;
    /* Soft Cream */
    --color-text: #333333;
    --color-text-light: #F8F5F2;
    --color-overlay: rgba(10, 35, 66, 0.4);

    --font-heading-en: 'Cinzel', serif;
    --font-subheading-en: 'Cormorant Garamond', serif;
    --font-heading-jp: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --transition-slow: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-medium: 0.4s ease;

    --spacing-section: 120px;
    --spacing-container: 5%;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-accent);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-family: var(--font-heading-en);
}

.section-subtitle {
    display: block;
    font-family: var(--font-subheading-en);
    color: var(--color-secondary);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading-jp);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    color: var(--color-text-light);
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
    background-color: var(--color-primary);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading-en);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.05em;
    display: block;
    text-align: center;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    display: block;
    margin-top: 5px;
    color: var(--color-secondary);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-family: var(--font-subheading-en);
    font-size: 1.1rem;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-primary {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 10px 25px;
    font-family: var(--font-subheading-en);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-list a {
    font-family: var(--font-subheading-en);
    font-size: 1.5rem;
    color: var(--color-text-light);
    display: block;
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero.png') no-repeat center center/cover;
    background-color: #0A2342;
    /* Fallback */
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 35, 66, 0.3), rgba(10, 35, 66, 0.6));
}

.hero-content {
    z-index: 1;
    padding: 20px;
}

.hero-subtitle {
    font-family: var(--font-heading-en);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading-jp);
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text-light);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Concept Section */
.section {
    padding: var(--spacing-section) 0;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-lead {
    font-size: 1.2rem;
    line-height: 2.2;
}

/* Tablet/Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        /* Add styling for burger menu later */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .header {
        padding: 15px 20px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rooms Section */
.rooms {
    background-color: #fff;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.room-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.room-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.room-info {
    padding: 30px;
    text-align: center;
    position: relative;
}

.room-title {
    font-family: var(--font-subheading-en);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.room-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.room-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Dining & Spa Common */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.split-content {
    padding: 80px;
}

.split-image-container {
    width: 100%;
    height: 600px;
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content .section-title {
    text-align: left;
}

.split-content p {
    margin-bottom: 30px;
}

/* Dining specific */
.dining {
    background-color: var(--color-accent);
    padding: 0;
}

.dining .split-content {
    order: 1;
}

.dining .split-image-container {
    order: 2;
}

/* Spa specific */
.spa {
    background-color: #fff;
    padding: 0;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading-en);
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.footer p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Access Section */
.access {
    background-color: #f4f4f4;
    text-align: center;
}

.access-map {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    /* Map placeholder */
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .dining .split-content {
        order: 2;
    }

    .dining .split-image-container {
        order: 1;
    }

    .split-content {
        padding: 40px 20px;
    }

    .split-image-container {
        height: 400px;
    }
}