/* ==========================================================================
   Swiss Wonders - Fully Responsive Stylesheet (HTML & CSS Only)
   Optimized for: Mobile (320px+), Tablets (768px), Desktops & Large Screens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Consistency & Theme */
:root {
    --primary: #0077b6;
    --primary-hover: #023e8a;
    --primary-light: #e0f2fe;
    --accent: #0096c7;
    --dark: #1e293b;
    --dark-muted: #334155;
    --body-text: #475569;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Universal Image and Media Responsiveness */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

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

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   Header & Navigation (Pure CSS Responsive Menu)
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
}

.logo {
    font-size: clamp(18px, 4vw, 23px);
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    white-space: nowrap;
}

.logo:hover {
    color: var(--primary);
}

/* Pure CSS Checkbox Hack for Mobile Menu */
.nav-toggle {
    display: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 8px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
    transition: var(--transition);
}

.nav-toggle-label:hover {
    background-color: var(--primary-light);
}

.nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle-label span:nth-child(2) {
    margin: 5px 0;
}

/* Navigation List (Desktop Default) */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--dark-muted);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

nav ul li a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.65)),
                url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80')
                no-repeat center center / cover;
    min-height: clamp(380px, 62vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: clamp(48px, 8vw, 84px) 0;
    position: relative;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero-content h1 {
    font-size: clamp(28px, 5.5vw, 48px);
    color: #ffffff;
    margin-bottom: clamp(12px, 2.5vw, 20px);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.6;
    margin-bottom: clamp(22px, 3.5vw, 32px);
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.35);
    transition: var(--transition);
    cursor: pointer;
    min-height: 48px;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.45);
}

.btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Sections & Fluid Grids
   ========================================================================== */
main {
    flex: 1 0 auto;
}

.section-padding {
    padding-top: clamp(40px, 6vw, 70px);
    padding-bottom: clamp(40px, 6vw, 70px);
}

.section-padding h1,
.section-padding h2 {
    text-align: center;
    margin-bottom: clamp(10px, 2vw, 16px);
    font-size: clamp(24px, 4vw, 36px);
    letter-spacing: -0.5px;
}

.intro-text {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(30px, 5vw, 48px) auto;
    color: var(--body-text);
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.65;
}

/* Fluid responsive grid: adapts smoothly from 1 col to 3 cols */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 3.5vw, 32px);
    align-items: stretch;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: clamp(180px, 26vw, 220px);
    object-fit: cover;
    background-color: var(--border-color);
    transition: transform 0.4s ease;
}

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

.card h2,
.card h3 {
    padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 20px) 8px clamp(16px, 3vw, 20px);
    font-size: clamp(18px, 2.5vw, 21px);
    color: var(--dark);
}

.card p {
    padding: 0 clamp(16px, 3vw, 20px) clamp(18px, 3vw, 22px) clamp(16px, 3vw, 20px);
    color: var(--body-text);
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: auto;
}

/* Content Article Cards (Used in About Us) */
.content-card {
    background: var(--card-bg);
    padding: clamp(20px, 4vw, 32px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: clamp(16px, 3vw, 24px);
    transition: box-shadow 0.25s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-card h2,
.content-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: clamp(18px, 3vw, 22px);
}

.content-card p {
    color: var(--body-text);
    font-size: clamp(14.5px, 2vw, 16px);
    line-height: 1.7;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.form-container {
    background: var(--card-bg);
    padding: clamp(20px, 5vw, 40px);
    border-radius: var(--radius-lg);
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: clamp(16px, 3vw, 22px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14.5px;
}

/* Inputs styled with font-size >= 16px to prevent iOS auto-zoom */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    color: var(--dark);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.submit-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.3);
    transition: var(--transition);
    touch-action: manipulation;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--dark);
    color: #f1f5f9;
    text-align: center;
    padding: clamp(28px, 5vw, 44px) 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-content p {
    font-size: clamp(13px, 2vw, 14.5px);
    color: #cbd5e1;
}

.image-credit {
    color: #94a3b8 !important;
    font-size: 12.5px !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Mobile Screens (max 768px) */
@media screen and (max-width: 768px) {
    /* Show mobile hamburger toggle */
    .nav-toggle-label {
        display: flex;
    }

    /* Transform hamburger into X when checked */
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
        transform: scale(0.2);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Pure CSS Dropdown Navigation Menu */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s ease;
        padding: 0;
    }

    /* Expand when hamburger checkbox is checked */
    .nav-toggle:checked ~ nav {
        max-height: 380px;
        opacity: 1;
        visibility: visible;
        padding: 12px 0 16px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        padding: 0 clamp(16px, 4vw, 32px);
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }

    nav ul li a.active {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    /* Hero adjustments */
    .hero {
        min-height: 360px;
    }

    /* Single column grid for compact screens */
    .grid-3 {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small Smartphone Optimization (max 480px) */
@media screen and (max-width: 480px) {
    .navbar {
        min-height: 62px;
    }

    .logo {
        font-size: 19px;
    }

    .btn,
    .submit-btn {
        width: 100%;
    }

    .form-container {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .content-card {
        padding: 18px 16px;
    }

    .card img {
        height: 190px;
    }
}

/* Extra small devices / Foldables (max 340px) */
@media screen and (max-width: 340px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        font-size: 17px;
    }
}