/* ==========================================================================
   Thai Sunshine Redesign — Premium Agency Style Design System (styles.css)
   ========================================================================== */

/* Import Google Fonts: Cormorant Garamond (Editorial Serif) & Montserrat (Modern Sans) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
    /* Luxury Color Palette */
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-main: #fcfcfc;
    --text-muted: #9e9e9e;
    --primary: #c5a880; /* Premium Champagne Gold */
    --primary-hover: #e0caaa;
    --secondary: #1a1a1a;
    --secondary-hover: #262626;
    --border-color: rgba(197, 168, 128, 0.15); /* Soft gold border */
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }
.text-left { text-align: left !important; }
.text-left::after { margin-left: 0 !important; }

/* Luxury Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

p {
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Luxury Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0px; /* Pure flat design for luxury look */
}

.btn-primary {
    background-color: var(--primary);
    color: #0a0a0a;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.logo img {
    height: 44px;
    width: auto;
    filter: brightness(0.9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
    opacity: 1;
}

.nav-cta {
    font-size: 0.75rem !important;
    padding: 10px 20px !important;
    border-radius: 0px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure button stays on top of menu overlay */
}

.hamburger {
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--text-main);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background-color: var(--text-main);
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Active Hamburger state turns into X */
.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: url('../img/Thai_Sunshine_Pic01.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 100%);
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 300;
    line-height: 1.1;
    animation: heroFadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 48px;
    color: var(--primary);
    letter-spacing: 0.05em;
    animation: heroFadeIn 2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    animation: heroFadeIn 2.5s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    padding: 140px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    color: var(--primary);
    font-weight: 300;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--primary);
    margin: 24px auto 0;
    opacity: 0.5;
}

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

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

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-image {
    position: relative;
    padding: 10px;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0px 0px 20px 20px;
    border: 1px solid var(--primary);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    filter: grayscale(15%) contrast(105%);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border-color: rgba(197, 168, 128, 0.25);
}

.highlight-img-wrap {
    overflow: hidden;
    height: 280px;
    position: relative;
}

.highlight-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18,18,18,0) 60%, rgba(18,18,18,1) 100%);
}

.highlight-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(102%);
    transition: var(--transition-smooth);
}

.highlight-card:hover .highlight-img-wrap img {
    transform: scale(1.04);
}

.highlight-body {
    padding: 36px;
    background-color: var(--bg-card);
    flex: 1;
}

.highlight-body h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.highlight-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
}

.highlight-link {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    opacity: 0.7;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.highlight-card:hover .highlight-link {
    opacity: 1;
    letter-spacing: 0.25em;
}

/* Impressionen / Galerie Section */
.gallery {
    background: var(--bg-dark);
}

.gallery .section-title {
    margin-bottom: 8px;
}

.gallery .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mosaic layout for desktop */
@media (min-width: 769px) {
    .gallery-item:nth-child(1) { grid-column: span 8; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 4; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
    .gallery-item:nth-child(6) { grid-column: span 4; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 1;
}

/* Footer Section */
.footer {
    background-color: #070707;
    padding: 120px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer h3 {
    color: var(--primary);
    margin-bottom: 28px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.contact-details a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-details svg {
    width: 14px;
    height: 14px;
    fill: var(--primary);
}

.tripadvisor-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    align-items: flex-start;
}

.tripadvisor-logo {
    display: block;
}

.tripadvisor-logo img {
    height: 18px; /* Very small and discreet */
    width: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.tripadvisor-logo:hover img {
    opacity: 0.8;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hours-list li svg {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    fill: var(--primary);
    vertical-align: middle;
}

.closed {
    color: #c5a880;
    opacity: 0.5;
    font-style: italic;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav ul a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.footer-nav ul a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-legal-link {
    color: #666;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--primary);
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    /* Creates a beautiful dark-mode map with a slight golden hue to match the theme */
    filter: invert(100%) hue-rotate(180deg) sepia(40%) hue-rotate(-20deg) brightness(85%) contrast(105%);
    transition: var(--transition-smooth);
}

.map-container:hover iframe {
    filter: invert(100%) hue-rotate(180deg) sepia(40%) hue-rotate(-20deg) brightness(95%) contrast(110%);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
    border-top: 1px solid var(--border-color);
}

.mobile-sticky-cta .btn {
    border-radius: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 16px 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    text-align: center;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .highlights-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .hero-title { font-size: 3.8rem; }
    .hero-subtitle { font-size: 1.6rem; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-image { order: -1; max-width: 500px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 100px 0; }
    .section-title { font-size: 2.6rem; }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
        gap: 12px;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }
    .mobile-menu-toggle { display: block; }
    .nav-cta { display: none; }

    /* Hero */
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 16px; }
    .hero-buttons .btn { width: 100%; max-width: 320px; }

    /* Highlights */
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-img-wrap { height: 220px; }

    /* Gallery (Mobile Slider) */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item {
        flex: 0 0 85%;
        height: 280px;
        scroll-snap-align: center;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Sticky CTA */
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 86px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2rem; }
}

/* Hero Slideshow Start */
.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoomIn 8s ease-out forwards;
}

@keyframes heroZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}
/* Hero Slideshow End */
