/* ============================================
   Viatges University - Tourism & Lifestyle
   ============================================ */

:root {
    --orange: #E8611A;
    --orange-dark: #C9510F;
    --orange-light: #FFF0E8;
    --navy: #1B2A4A;
    --navy-light: #2A3F6A;
    --blue-accent: #4A90C4;
    --text-dark: #1A1A2E;
    --text-body: #374151;
    --text-muted: #6B7280;
    --bg-warm: #FFF9F5;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --transition: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-warm);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.2rem; }

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-link img {
    height: 100px;
    width: auto;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--orange) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-cta {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* ============================================
   Article Cards
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.article-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card .card-body {
    padding: 20px;
}
.article-card .card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 8px;
}
.article-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.35;
}
.article-card .card-title a {
    color: var(--navy);
    transition: color var(--transition);
}
.article-card .card-title a:hover {
    color: var(--orange);
}
.article-card .card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
}
.article-card .card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Featured card (large) */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
}
.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
}
.featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-card .featured-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    width: 100%;
    padding: 40px 28px 28px;
    color: #fff;
}
.featured-card .card-category {
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.featured-card .card-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 8px 0;
}
.featured-card .card-title a {
    color: #fff;
}
.featured-card .card-title a:hover {
    color: var(--orange);
}

/* ============================================
   Blog Post (article page)
   ============================================ */
.article-header {
    background: var(--navy);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.article-header .article-category {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.article-header h1 {
    color: #fff;
    max-width: 800px;
    margin: 0 auto 16px;
    font-size: 2.3rem;
}
.article-header .article-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}
.article-hero-img {
    max-width: 900px;
    margin: -30px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.article-hero-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}
.article-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.article-content h3 {
    margin-top: 2rem;
}
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 1.2rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: var(--orange-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-dark);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.article-content th {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td {
    background: var(--border-light);
}

/* Info box */
.info-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 1.5rem 0;
}
.info-box h4 {
    color: var(--blue-accent);
    margin-bottom: 8px;
}

/* ============================================
   Blog Listing
   ============================================ */
.blog-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.blog-header h1 {
    color: #fff;
}
.blog-header p {
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 300px;
}
.footer-brand .logo-link img {
    height: 60px;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.site-footer ul li {
    margin-bottom: 8px;
}
.site-footer ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.site-footer ul a:hover {
    color: var(--orange);
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner a {
    color: var(--orange);
}
.cookie-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
    white-space: nowrap;
}
.cookie-btn:hover {
    background: var(--orange-dark);
}

/* ============================================
   Static Pages (About, Contact, Legal)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { color: #fff; }
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}
.page-content h2 {
    margin-top: 2rem;
}

/* Contact form */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg-white);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}
.form-group textarea {
    resize: vertical;
    min-height: 140px;
}
.form-submit {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.form-submit:hover {
    background: var(--orange-dark);
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
    text-align: center;
    padding: 100px 24px;
}
.error-page h1 {
    font-size: 5rem;
    color: var(--orange);
}
.error-page p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.error-page .hero-cta {
    display: inline-block;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    /* Mobile nav */
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    .main-nav a {
        font-size: 1.05rem;
    }

    /* Grids */
    .featured-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Hero */
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }

    /* Article */
    .article-header h1 { font-size: 1.8rem; }
    .article-hero-img img { height: 260px; }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header-inner { height: 90px; }
    .logo-link img { height: 70px; }
    .hero h1 { font-size: 1.8rem; }
    .featured-card { min-height: 280px; }
    .article-header { padding: 40px 0 30px; }
}
