/* W1 London - Main Stylesheet */
/* Mobile-first responsive design with luxury aesthetic */

/* ===== CSS Variables ===== */
:root {
    --navy-blue: #1e3a8a;
    --gold: #f59e0b;
    --cream: #fef7ed;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

/* ===== Layout Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
}

/* ===== Header & Navigation ===== */
.top-bar {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a:hover {
    color: var(--gold);
}

.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-blue);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.6));
    z-index: 2;
}

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

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--cream);
}

.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.2);
}

/* ===== Content Sections ===== */
.content-section {
    padding: 4rem 0;
}

.section-alternate {
    background-color: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-top: 0;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 1.5rem auto;
}

/* ===== Grid Layouts ===== */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

/* ===== Cards ===== */
.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--navy-blue);
}

/* ===== Featured Content ===== */
.featured-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.featured-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.featured-text {
    flex: 1;
}

/* ===== Lists ===== */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.styled-list li::before {
    content: '→';
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ===== Info Boxes ===== */
.info-box {
    background-color: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    color: var(--navy-blue);
}

/* ===== Footer ===== */
.main-footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--cream);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--gold);
}

/* ===== Sitemap Page ===== */
.sitemap-section {
    margin-bottom: 3rem;
}

.sitemap-list {
    list-style: none;
    padding-left: 1rem;
}

.sitemap-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.sitemap-list li::before {
    content: '▸';
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ===== Responsive Design ===== */

/* Tablet: 768px and up */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content {
        flex-direction: row;
    }

    .featured-image {
        width: 50%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .top-bar .container {
        justify-content: center;
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-nav,
    .mobile-menu-toggle,
    .cta-button,
    .main-footer {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        page-break-after: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    a {
        color: var(--text-dark);
        text-decoration: underline;
    }
}

/* 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;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
