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

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

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) {
    .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; }
}

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