/* ============================================
   AlSharqiaan — Royal Heritage Theme
   Navy #0B1D3A  |  Mid-Blue #1A3A5C
   Gold #C9A84C  |  Light Gold #E8D5A3
   Cream #F5F0E6 |  Burgundy #8B2E2E
   ============================================ */

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

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

body {
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #F5F0E6;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.3;
}

.section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9A84C;
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-subtext {
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.7;
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: #C9A84C;
    color: #0B1D3A;
}
.btn-primary:hover {
    background: #E8D5A3;
}

.btn-outline {
    background: transparent;
    border: 1px solid #C9A84C;
    color: #C9A84C;
}
.btn-outline:hover {
    background: #C9A84C;
    color: #0B1D3A;
}

.btn-dark {
    background: #0B1D3A;
    color: #C9A84C;
}
.btn-dark:hover {
    background: #1A3A5C;
}

/* ── Navigation ────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 29, 58, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* The logo mark is 863x716 (1.205:1). Height is fixed and width left auto so
   the ratio stays exact; the HTML width/height attributes only reserve space
   before the image loads. Was `.nav-logo svg`, which matched nothing — the
   markup has always used <img>. */
.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #C9A84C;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 13px;
    letter-spacing: 1px;
    color: #E8D5A3;
    transition: color 0.3s;
    text-transform: uppercase;
}
.nav-links a:hover { color: #C9A84C; }

.nav-cta {
    padding: 10px 24px !important;
    font-size: 12px !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: #C9A84C;
    transition: all 0.3s;
}

/* ── Hero Section ──────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #0B1D3A;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 29, 58, 0.75) 0%,
        rgba(11, 29, 58, 0.65) 50%,
        rgba(11, 29, 58, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
}

.hero-content .section-label {
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease both;
}

.hero-content h1 {
    font-size: 48px;
    color: #F5F0E6;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-motto {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #E8D5A3;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-intro {
    font-size: 15px;
    color: rgba(232, 213, 163, 0.85);
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-trust {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.75s both;
}

.hero-trust-item {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(201, 168, 76, 0.7);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #C9A84C;
    transform: rotate(45deg);
    display: inline-block;
}

/* ── Gold divider ──────────────────────────── */
.gold-divider {
    text-align: center;
    padding: 24px 0;
}

.gold-divider::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #C9A84C;
    vertical-align: middle;
}

.gold-divider .diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #C9A84C;
    transform: rotate(45deg);
    margin: 0 12px;
    vertical-align: middle;
}

.gold-divider::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #C9A84C;
    vertical-align: middle;
}

/* ── Categories Section ────────────────────── */
.categories-section {
    padding: 80px 0;
    background: #F5F0E6;
    text-align: center;
}

.categories-section .section-heading { color: #0B1D3A; }
.categories-section .section-subtext { color: #1A3A5C; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.category-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: #0B1D3A;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(11, 29, 58, 0.3);
}

.category-card.no-carousel {
    cursor: default;
}

.category-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card-img { transform: scale(1.08); }

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11,29,58,0.9) 0%, rgba(11,29,58,0.2) 60%);
    transition: background 0.3s;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    text-align: left;
}

.category-card h3 {
    font-size: 18px;
    color: #F5F0E6;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: #E8D5A3;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card .card-cta {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C9A84C;
    transition: color 0.3s;
}

.category-card:hover .card-cta { color: #E8D5A3; }

/* ── About / Heritage Section ──────────────── */
.about-section {
    padding: 80px 0;
    background: #0B1D3A;
    color: #E8D5A3;
}

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

.about-image {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #1A3A5C;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text .section-heading { color: #F5F0E6; }

.about-text p {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.about-value-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #E8D5A3;
}

.about-value-item::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #C9A84C;
    transform: rotate(45deg);
    margin-top: 6px;
}

.about-quote {
    margin-top: 32px;
    padding: 20px 24px;
    border-left: 3px solid #C9A84C;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: #C9A84C;
}

/* ── Process Section ───────────────────────── */
.process-section {
    padding: 80px 0;
    background: #1A3A5C;
    text-align: center;
    color: #E8D5A3;
}

.process-section .section-heading { color: #F5F0E6; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.process-step {
    background: rgba(245, 240, 230, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 6px;
    padding: 32px 20px;
    transition: background 0.3s, border-color 0.3s;
}

.process-step:hover {
    background: rgba(245, 240, 230, 0.1);
    border-color: rgba(201, 168, 76, 0.4);
}

.process-step-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: #C9A84C;
    margin-bottom: 12px;
}

.process-step h4 {
    font-size: 16px;
    color: #F5F0E6;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: #E8D5A3;
    line-height: 1.6;
}

.process-statement {
    margin-top: 48px;
    padding: 24px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.process-statement p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #C9A84C;
}

/* ── Why Choose Section ────────────────────── */
.why-section {
    padding: 80px 0;
    background: #F5F0E6;
    text-align: center;
}

.why-section .section-heading { color: #0B1D3A; }
.why-section .section-subtext { color: #1A3A5C; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
    text-align: left;
}

.why-card {
    background: white;
    border-radius: 6px;
    padding: 28px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    border-color: #C9A84C;
    box-shadow: 0 8px 32px rgba(11, 29, 58, 0.08);
}

.why-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

/* Shared geometry for the eight "Why AlSharqiaan" line icons. Stroke colour
   and width live here rather than on each <svg>, so the whole set retones
   from one place. CSS beats SVG presentation attributes, so the markup
   carries only viewBox and path data. */
.why-card-icon svg {
    display: block;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: #0B1D3A;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The focal element of each icon — yarn twist, magnifier, pencil, scissors. */
.why-card-icon .ico-accent { stroke: #C9A84C; }

/* Knocks the parcel out of the globe behind it. Must match .why-card background. */
.why-card-icon .ico-knockout { fill: #FFFFFF; }

.why-card h4 {
    font-size: 16px;
    color: #0B1D3A;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: #1A3A5C;
    line-height: 1.6;
}

/* ── Contact Section ───────────────────────── */
.contact-section {
    padding: 80px 0;
    background: #0B1D3A;
    color: #E8D5A3;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info .section-heading { color: #F5F0E6; }

.contact-info p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
    font-size: 14px;
    min-width: 36px;
}

.contact-form {
    background: rgba(245, 240, 230, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 8px;
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: #E8D5A3;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #8B2E2E;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(245, 240, 230, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    color: #F5F0E6;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #C9A84C;
    background: rgba(245, 240, 230, 0.12);
}

.form-control::placeholder {
    color: rgba(232, 213, 163, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-privacy {
    font-size: 12px;
    color: rgba(232, 213, 163, 0.5);
    margin-top: 12px;
    line-height: 1.5;
}

/* The reCAPTCHA v3 badge is fixed bottom-right, exactly where .whatsapp-float
   sits. Hide it and carry Google's required attribution in .recaptcha-notice. */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-notice {
    margin-top: 8px;
    font-size: 11px;
}

.recaptcha-notice a {
    color: rgba(232, 213, 163, 0.75);
    text-decoration: underline;
}

.recaptcha-notice a:hover { color: #C9A84C; }

.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
    display: block;
}

.form-message.error {
    background: rgba(139, 46, 46, 0.2);
    border: 1px solid rgba(139, 46, 46, 0.4);
    color: #ef9a9a;
    display: block;
}

/* ── Footer ────────────────────────────────── */
.site-footer {
    background: #070F1D;
    padding: 48px 0 24px;
    color: #E8D5A3;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    opacity: 0.7;
}

.footer-col h4 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #E8D5A3;
    padding: 4px 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.5;
}

/* ── Carousel Modal ────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 29, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #C9A84C;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #0B1D3A;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(11,29,58,0.9), transparent);
    color: #E8D5A3;
    font-size: 14px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(11, 29, 58, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    color: #C9A84C;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.carousel-btn:hover { background: rgba(201, 168, 76, 0.2); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.3);
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.carousel-dot.active { background: #C9A84C; }

.carousel-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #C9A84C;
    margin-bottom: 16px;
}

/* ── WhatsApp Widget ───────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(11, 29, 58, 0.98);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    }

    .hero-content h1 { font-size: 32px; }
    .hero-motto { font-size: 16px; }
    .section-heading { font-size: 26px; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .hero-trust { gap: 16px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .why-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
}

/* ── reCAPTCHA override ────────────────────── */
.g-recaptcha {
    margin-bottom: 16px;
}
