/* 
  One King's Road Park Landing Page - Custom CSS 
*/

:root {
    /* Color Palette */
    --primary-blue: #0A192F; /* Dark Blue from Logo */
    --primary-blue-light: #162B4A;
    --gold: #D4AF37; /* Premium Gold/Champagne */
    --gold-hover: #C5A028;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray: #6C757D;
    --gray-dark: #343A40;
    --text-color: #333333;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --nav-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--border-radius); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background-color: var(--white);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lang:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

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

.logo img {
    height: 56px;
    width: 250px;
    object-fit: cover;
    object-position: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.75);
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.text-center.section-desc {
    margin-left: auto;
    margin-right: auto;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Events Section */
.events {
    background-color: var(--primary-blue);
    color: var(--white);
}

.events .section-title {
    color: var(--gold);
}

.events .section-desc {
    color: var(--gray-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.event-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
}

.event-city {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.event-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-time {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.event-info {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
}

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

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Register Section */
.register {
    background-color: var(--off-white);
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.register-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--off-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Toggle Group Styles */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--off-white);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    user-select: none;
}

.toggle-btn input[type="radio"] {
    display: none; /* Hide default radio */
}

.toggle-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.toggle-btn:hover:not(.active) {
    background-color: var(--gray-light);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* Intl Tel Input Override */
.iti { width: 100%; }

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 56px;
    width: 250px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--primary-blue);
}

.form-success h3 {
    color: #28a745;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .register-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .logo img {
        height: 48px;
        width: 150px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-lang {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-cta {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .events-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .toggle-group { flex-direction: column; }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
        width: 120px;
    }

    .btn-lang {
        padding: 5px 10px;
        font-size: 11px;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Arabic & RTL (Right-to-Left) Styles
   ========================================================================== */

[lang="ar"] {
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

[lang="ar"] body {
    text-align: right;
}

[lang="ar"] h1, 
[lang="ar"] h2, 
[lang="ar"] h3, 
[lang="ar"] h4, 
[lang="ar"] h5, 
[lang="ar"] h6 {
    line-height: 1.4; /* Arabic headings need slightly more breathing room */
}

/* Keep header LTR in Arabic mode */
[lang="ar"] .navbar {
    direction: ltr !important;
}

/* About Section Benefits List */
[lang="ar"] .benefits-list li {
    padding-left: 0;
    padding-right: 30px;
}
[lang="ar"] .benefits-list li::before {
    left: auto;
    right: 0;
}

/* Form layouts */
[lang="ar"] .form-control {
    text-align: right;
}

/* intl-tel-input adjustments for RTL */
[lang="ar"] .iti {
    direction: ltr !important;
}
[lang="ar"] .iti__flag-container {
    left: 0 !important;
    right: auto !important;
    direction: ltr !important;
}
[lang="ar"] .iti__selected-flag {
    border-right: 1px solid var(--gray-light) !important;
    border-left: none !important;
}
[lang="ar"] .iti__selected-dial-code {
    margin-left: 6px !important;
    margin-right: 0 !important;
    direction: ltr !important;
}
[lang="ar"] .iti input {
    direction: ltr !important;
    text-align: left !important;
    padding-left: 92px !important;
    padding-right: 16px !important;
}
[lang="ar"] .form-group:has(#phone) {
    text-align: right;
}

/* Contact Info */
.contact-info {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-item i {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.social-icon:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.social-icon--linkedin { background: #0a66c2; }
.social-icon--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

[lang="ar"] .whatsapp-float {
    right: auto;
    left: 28px;
}

[lang="ar"] .register-wrapper {
    direction: rtl;
}
[lang="ar"] .register-content {
    text-align: right;
}

[lang="ar"] .footer {
    text-align: center;
}

/* Responsive RTL tweaks */
@media (max-width: 768px) {
    [lang="ar"] .form-row,
    [lang="ar"] .toggle-group,
    [lang="ar"] .hero-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   London Investment Campaign — New Components
   ========================================================================== */

/* Chinese typography */
[lang="zh"] {
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;
}
[lang="zh"] h1, [lang="zh"] h2, [lang="zh"] h3,
[lang="zh"] h4, [lang="zh"] h5, [lang="zh"] h6 {
    line-height: 1.35;
}

/* Eyebrow / section labels */
.eyebrow, .hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.hero-eyebrow { letter-spacing: 0.22em; }

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
}
.section-header .section-desc { margin-bottom: 0; }

/* Hero tweaks */
.hero-title { letter-spacing: 0.01em; }

/* Image placeholder frames (used until real assets are dropped into /images) */
.img-frame {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-blue-light);
    position: relative;
}
.img-frame.is-placeholder {
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}
.img-frame.is-placeholder::after {
    content: attr(data-label) ' — image coming soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    border: 1px dashed rgba(212, 175, 55, 0.35);
}

/* ---------- Key Stats ---------- */
.stats { background-color: var(--white); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(10,25,47,0.10);
    border-color: var(--gold);
}
.stat-card--highlight {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}
.stat-card--highlight .stat-number { color: var(--gold); }
.stat-card--highlight .stat-label { color: var(--gray-light); }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 10px;
}
.stat-number span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.stat-card--highlight .stat-number span { color: var(--gray-light); }
.stat-label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ---------- Why London ---------- */
.why { background-color: var(--off-white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 44px 34px;
    box-shadow: 0 10px 30px rgba(10,25,47,0.06);
    transition: var(--transition);
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(10,25,47,0.12); }
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
}
.why-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.why-card p { color: var(--gray); font-size: 1rem; }

/* ---------- Featured Developments ---------- */
.developments { background-color: var(--white); }
.dev-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}
.dev-card:last-child { margin-bottom: 0; }
.dev-card--reverse .dev-image { order: 2; }
.dev-image {
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(10,25,47,0.12);
}
.dev-location {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.dev-location i { margin-right: 6px; }
.dev-content h3 { font-size: 2rem; margin-bottom: 14px; }
.dev-tagline { color: var(--gray); font-size: 1.05rem; margin-bottom: 22px; }
.dev-features {
    margin-bottom: 28px;
}
.dev-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-color);
}
.dev-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: bold;
}
.dev-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--gray-light);
    padding-top: 24px;
}
.dev-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.dev-price-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    display: block;
    margin-bottom: 2px;
}
.dev-cta { white-space: nowrap; }

/* ---------- Form extras ---------- */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236C757D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
    line-height: 1.5;
}
.footer-disclaimer {
    max-width: 680px;
    margin: 10px auto 0;
    font-size: 0.78rem !important;
    color: rgba(255,255,255,0.45) !important;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card--highlight { grid-column: span 2; }
    .why-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .dev-card { grid-template-columns: 1fr; gap: 28px; }
    .dev-card--reverse .dev-image { order: 0; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card--highlight { grid-column: span 1; }
    .dev-footer { flex-direction: column; align-items: stretch; }
    .dev-cta { width: 100%; }
}

/* RTL safety (in case AR is ever re-enabled) */
[lang="ar"] .dev-features li { padding-left: 0; padding-right: 28px; }
[lang="ar"] .dev-features li::before { left: auto; right: 0; }
[lang="ar"] .dev-location i { margin-right: 0; margin-left: 6px; }
