:root {
    --color-primary: #0f2a4a;
    /* Deep Navy */
    --color-secondary: #c5a059;
    /* Gold */
    --color-text: #2c2c2c;
    --color-text-light: #f4f4f4;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --header-height: 80px;

    /* Fonts */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    overflow-x: hidden;
    font-weight: 400;
    padding-top: var(--header-height);
    /* Account for fixed header globally */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

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

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-gold {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 0;
    font-family: var(--font-en);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid var(--color-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: height 0.3s;
}

header.scrolled {
    height: 60px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    /* Removed bullets */
    margin: 0;
    padding: 0;
}

nav ul li {
    line-height: 1;
}

nav a {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.lang-switch {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-en);
    font-size: 0.85rem;
}

.lang-switch a.active {
    font-weight: 700;
    border-bottom: 2px solid var(--color-secondary);
}

/* Hero */
.hero {
    /* Fix spacing for hero to sit correct relative to fixed header */
    /* We want it 100vh but starting from top 0 behind header for transparent effect, OR starting below. */
    /* Previous design: background behind header. */
    height: 100vh;
    margin-top: calc(var(--header-height) * -1);
    /* Pull up behind header */
    padding-top: var(--header-height);
    /* Ensure content isn't hidden */
    min-height: 700px;
    background: url('../images/hero_luxury.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 42, 74, 0.2);
    /* Lighter overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    /* Optimised size */
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    font-weight: 400;
    opacity: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* About Grid */
.about {
    background-color: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.1;
}

/* Services */
.services {
    background-color: var(--color-bg-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-img {
    height: 250px;
    background-color: #eee;
    background-position: center;
    background-size: cover;
}

.service-body {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 1.5rem;
    /* Larger heading */
}

/* Footer */
footer {
    background: var(--color-primary);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    opacity: 0.7;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Flowchart Steps (New) */
.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    gap: 30px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Horizontal line connecting steps */
.flow-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 100px;
    right: 100px;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    /* background: transparent; */
}

.flow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fff;
    border: 1px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.flow-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.flow-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Page Headers (for subpages) */
/* Ensure sufficient padding for fixed header */
.page-header {
    background: var(--color-primary);
    color: #fff;
    padding: 140px 0 100px;
    /* Adjusted for better vertical centering */
    /* Pull behind header */
}

/* Explicitly force white text for page headers as requested */
.page-header h1,
.page-header p {
    color: #fff !important;
}

/* Experience Cards Typography */
.exp-content h3,
.exp-content p,
.exp-content span {
    color: #fff;
}

/* Navigation Current Page Indicator */
nav ul li a.text-primary,
nav ul li a[aria-current="page"] {
    color: var(--color-secondary) !important;
    font-weight: 500;
}

/* CTA Section with Primary Background - White Text */
.section[style*="background: var(--color-primary)"] h2,
.section[style*="background: var(--color-primary)"] p,
.section[style*="background-color: var(--color-primary)"] h2,
.section[style*="background-color: var(--color-primary)"] p {
    color: #fff !important;
}

/* CTA Section with Secondary Background - White Text */
.section[style*="background: var(--color-secondary)"] h2,
.section[style*="background: var(--color-secondary)"] p,
.section[style*="background-color: var(--color-secondary)"] h2,
.section[style*="background-color: var(--color-secondary)"] p {
    color: #fff !important;
}

/* FAQ Answer Animation */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

details:not([open]) .faq-answer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

details[open] .faq-answer {
    max-height: 500px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .flow-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .flow-container::before {
        display: none;
    }

    .container {
        padding: 0 25px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav.nav-open {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    nav ul li a.btn {
        text-align: center;
        margin-top: 10px;
    }

    .lang-switch {
        display: flex;
        margin-left: 0;
        margin-top: 30px;
        padding-left: 0;
        padding-top: 20px;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    h2,
    .about-text h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .btn-outline {
        margin-top: 10px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    h2,
    .about-text h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .service-card,
    .exp-card {
        height: auto;
        min-height: 280px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* FAQ Page Specific Styles */
.faq-section {
    padding-top: 80px;
}

@media (max-width: 900px) {
    .faq-section {
        padding-top: 40px;
    }

    details summary {
        padding: 18px 15px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 15px 20px;
        font-size: 0.9rem;
    }
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

@media (max-width: 480px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}