@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* Shared Styles for All Pages */

/* CSS Variables */
:root {
    --color-primary: #7c5f99; /* Deep, sophisticated purple */
    --color-primary-dark: #5a4470; /* Darker shade for hovers */
    --color-primary-light: #a48fb7; /* Lighter shade for accents */
    --color-secondary: #e89b93; /* Soft, warm coral */
    --color-secondary-light: #f4c2c2; /* Lighter, rosy pink */
    --color-accent: #6fab9c; /* Calming, muted green */
    --color-bg: #fdfbf9; /* Warm, off-white background */
    --color-bg-soft: #f9f5f2; /* Slightly darker soft background */
    --color-text: #2c2c2c; /* Dark, readable text */
    --color-text-light: #6c6c6c; /* Lighter grey for secondary text */
    --color-white: #ffffff;
    --color-divider: #e5e5e5;
    --color-success: #70a9a1;
    --color-error: #e57373;

    --font-heading: 'Poppins', serif; /* Changed to Poppins */
    --font-subheading: 'Playfair Display', serif; /* For a classic touch */
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --transition-speed: 0.3s;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);

    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #a4d4cb 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
    border: 2px solid var(--color-bg-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px; /* Set a consistent base font size */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word; /* Prevent long words from breaking layout */
}

/* Prevent iOS zoom on input focus */
input, select, textarea {
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600; /* Bolder headings */
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); } /* Adjusted sizes */
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); font-family: var(--font-subheading); } /* Use Playfair for H2 */
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Touch-friendly interactive elements */
a, button, input, select, textarea {
    min-height: 44px;
    touch-action: manipulation;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Custom Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all var(--transition-speed);
}

.icon-lg {
    width: 48px;
    height: 48px;
}

.icon-xl {
    width: 64px;
    height: 64px;
}

.icon-primary {
    color: var(--color-primary);
}

.icon-secondary {
    color: var(--color-secondary);
}

.icon-white {
    color: white;
}

/* Icon Containers */
.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.icon-circle .icon {
    color: white;
    z-index: 1;
}

.icon-square {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-square::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.icon-square:hover::before {
    transform: translateX(100%);
}

.icon-square .icon {
    color: white;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23fdfbf9' fill-opacity='1' d='M0,20 C480,80 960,80 1440,20 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background: var(--color-bg-soft);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all var(--transition-speed);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124,95,153,0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Enhanced Cards */
.card-gradient {
    background: linear-gradient(135deg, white 0%, var(--color-bg-soft) 100%);
}

.card-bordered {
    border: 2px solid var(--color-divider);
    box-shadow: none;
}

.card-bordered:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(124,95,153,0.15);
}

/* Grid Layouts - Mobile First */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    opacity: 0;
    transition: opacity 0.25s ease-out;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:hover::before {
    opacity: 0.15;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    color: var(--color-white);
    background: linear-gradient(135deg, #d68a81 0%, #e89b93 100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

/* Loading States */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    background: var(--color-bg-soft);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(124,95,153,0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Info Box */
.info-box {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.info-box h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Lists */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Icon List */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
}

.icon-list .icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all var(--transition-speed);
    font-family: var(--font-body);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124,95,153,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Tabs */
.tabs-container {
    position: relative;
}

.tabs-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.tabs-container.is-scrollable::after {
    opacity: 1;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-divider);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for a cleaner look */
}

.tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab.active {
    color: var(--color-primary);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.tab.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Decorative Elements */
.decoration-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    pointer-events: none;
}

.decoration-blob-1 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    top: -150px;
    right: -150px;
}

.decoration-blob-2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    bottom: -100px;
    left: -100px;
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {
    /* Reduce padding on mobile */
    .content-section {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    /* Stack buttons on mobile */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Improve tab scrolling */
    .tabs {
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }
    
    .tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Smaller icons on mobile */
    .icon-circle,
    .icon-square {
        width: 50px;
        height: 50px;
    }
    
    .icon-lg {
        width: 40px;
        height: 40px;
    }
    
    /* Adjust decorative elements */
    .decoration-blob-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        right: -100px;
    }
    
    .decoration-blob-2 {
        width: 150px;
        height: 150px;
        bottom: -75px;
        left: -75px;
    }
}

@media (max-width: 480px) {
    /* Further reduce font sizes on very small screens */
    body {
        font-size: 0.95rem; /* Use rem for scalability */
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .info-box {
        padding: 1.25rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .page-header,
    .decoration-blob {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* --- Mobile Menu Enhancements --- */
.header__nav ul,
.header__nav .nav-list,
.header__nav .dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header__nav .nav-list > li {
    border-bottom: 1px solid var(--color-bg-soft);
}
.header__nav .nav-list > li:last-child {
    border-bottom: none;
}
.header__nav .nav-list > li > a,
.header__nav .dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-primary);
    font-size: 1.08rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.header__nav .nav-list > li > a:hover,
.header__nav .dropdown-menu a:hover {
    background: var(--color-bg-soft);
    color: var(--color-secondary);
}
.header__nav .dropdown-menu {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(124,95,153,0.07);
    margin-top: 0.2rem;
    display: none;
    position: static;
}
.header__nav .dropdown.active .dropdown-menu,
.header__nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(124,95,153,0.18);
    z-index: 998;
    transition: opacity 0.3s;
}
body.menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

/* Mobile nav panel */
@media (max-width: 992px) {
    .header__nav {
        background: #fff;
        box-shadow: 0 8px 32px rgba(124,95,153,0.13);
        border-radius: 0 0 18px 18px;
        padding-top: 1.5rem;
        padding-bottom: 4rem;
        min-height: 60vh;
        width: 90vw;
        max-width: 340px;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(.4,2,.6,1);
        z-index: 999;
        overflow-y: auto;
    }
    .header__nav.active {
        transform: translateX(0);
    }
    .header__nav .nav-list > li > a,
    .header__nav .dropdown-menu a {
        padding: 1.1rem 2rem;
        font-size: 1.13rem;
    }
    .header__nav .dropdown-menu {
        background: #f8f6fa;
        box-shadow: none;
        border-radius: 0;
        margin-left: 1.5rem;
    }
    .nav-lang-mobile {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 1.2rem;
        display: flex;
        justify-content: center;
    }
    .nav-lang-mobile button {
        background: #fff;
        color: var(--color-primary);
        border: 1.5px solid var(--color-primary);
        border-radius: 8px;
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(124,95,153,0.07);
        transition: background 0.2s, color 0.2s;
    }
    .nav-lang-mobile button:hover,
    .nav-lang-mobile button:focus {
        background: var(--color-primary);
        color: #fff;
    }
}

/* --- Homepage Enhancements --- */

/* Hero Illustration Animation */
.hero__image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Section Dividers */
.section-divider {
    position: relative;
    height: 100px; /* Adjust height as needed */
    overflow: hidden;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.wave-divider {
    background-color: var(--color-bg-soft); /* Match the section below */
}

/* Enhanced Guide Cards */
.guide-card {
    position: relative;
    overflow: visible; /* Needed for the glow effect */
}

.guide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: -1; /* Place it behind the card content */
}

.guide-card:hover::after {
    border-color: var(--color-secondary);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px -5px var(--color-secondary);
    }
    to {
        box-shadow: 0 0 20px 5px var(--color-secondary);
    }
}

/* Staggered Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.guides-row .guide-card {
    transition-delay: calc(0.1s * var(--stagger-index));
} 