/* =====================================================================
   Photographer Studio - Public Site Stylesheet
   Design system: CSS custom properties drive both light & dark themes.
   ===================================================================== */

:root {
    --gold: #c9a24b;
    --gold-dark: #a9822f;
    --ink: #111318;
    --bg: #ffffff;
    --bg-alt: #f6f4f0;
    --surface: #ffffff;
    --text: #1c1e22;
    --text-muted: #6b7078;
    --border: #e7e4dd;
    --shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
    --radius: 16px;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
    --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
    --ink: #f5f3ef;
    --bg: #0e0f12;
    --bg-alt: #16181d;
    --surface: #1a1c22;
    --text: #eceef1;
    --text-muted: #9a9fa8;
    --border: #2a2d34;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html[lang="ar"] body { font-family: 'Tajawal', var(--font-body); }

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

body.lang-fade { animation: langFade .5s ease; }
@keyframes langFade { from { opacity: 0; } to { opacity: 1; } }

h1, h2, h3, h4, .display-font { font-family: var(--font-heading); color: var(--ink); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

.section { padding: 100px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

.section-eyebrow {
    color: var(--gold-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: .8rem;
}

.section-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.text-center-block { text-align: center; margin-bottom: 48px; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #17140a;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 999px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 8px 20px rgba(201,162,75,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,75,.45); color: #17140a; }

.btn-outline-soft {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 999px;
    background: transparent;
    transition: all var(--transition);
}
.btn-outline-soft:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------------- Navbar ---------------- */
#mainNav {
    background: transparent;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
#mainNav.scrolled {
    background: var(--surface);
    padding: 10px 0;
    box-shadow: var(--shadow);
}
#mainNav .navbar-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--ink) !important; }
#mainNav .nav-link { color: var(--text) !important; font-weight: 500; margin: 0 8px; position: relative; }
#mainNav .nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gold); transition: width var(--transition);
}
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { width: 100%; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--transition); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-dark); transform: rotate(15deg); }

/* ---------------- Hero ---------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(201,162,75,.15), transparent 55%), var(--bg-alt);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .35; pointer-events: none;
}
.hero-photo-frame {
    position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    aspect-ratio: 4/5;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; }
.hero .lead-muted { color: var(--text-muted); font-size: 1.15rem; max-width: 520px; }
.scroll-cue {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    color: var(--text-muted); font-size: .8rem; text-align: center; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }

/* ---------------- About ---------------- */
.about-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-portrait img { width: 100%; display: block; }
.stat-box { text-align: center; padding: 20px; }
.stat-box .num { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold-dark); font-weight: 700; }
.stat-box .label { color: var(--text-muted); font-size: .9rem; }

/* ---------------- Services ---------------- */
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px 28px; height: 100%; transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-icon {
    width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(201,162,75,.05));
    color: var(--gold-dark); font-size: 1.6rem; margin-bottom: 20px;
}

/* ---------------- Gallery ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    padding: 8px 20px; border-radius: 999px; font-size: .9rem; cursor: pointer; transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); border-color: var(--gold); color: #17140a; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; cursor: pointer;
    box-shadow: var(--shadow); transition: transform .3s ease, opacity .3s ease;
}
.gallery-item.hidden-item { display: none; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 55%);
    display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity .3s ease; color: #fff;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .play-badge {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff;
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---------------- Packages ---------------- */
.package-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; height: 100%; position: relative; transition: transform var(--transition), box-shadow var(--transition);
}
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.package-price { font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold-dark); font-weight: 700; }
.package-card ul { list-style: none; padding: 0; margin: 20px 0; }
.package-card ul li { padding: 6px 0; color: var(--text-muted); }
.package-card ul li i { color: var(--gold-dark); margin-inline-end: 8px; }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; height: 100%;
}
.testimonial-stars { color: var(--gold); margin-bottom: 12px; }
.testimonial-name { font-weight: 600; margin-top: 16px; }

/* ---------------- Contact / Request Form ---------------- */
.request-form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.form-control, .form-select {
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
    padding: 12px 16px; border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    background: var(--bg-alt); color: var(--text); border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(201,162,75,.2);
}
.form-label { font-weight: 500; margin-bottom: 6px; }
::placeholder { color: var(--text-muted); opacity: .7; }

/* ---------------- Footer ---------------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 50px 0 24px; }
.social-links a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); align-items: center; justify-content: center; margin-inline-end: 8px; color: var(--text); }
.social-links a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------------- Status timeline (tracking page) ---------------- */
.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before { content:''; position:absolute; inset-inline-start: 9px; top:0; bottom:0; width:2px; background: var(--border); }
.timeline-step { position: relative; padding-bottom: 28px; }
.timeline-step::before {
    content:''; position:absolute; inset-inline-start:-30px; top:2px; width:20px; height:20px; border-radius:50%;
    background: var(--surface); border: 3px solid var(--border);
}
.timeline-step.done::before { border-color: var(--gold); background: var(--gold); }
.timeline-step .step-title { font-weight: 600; }
.timeline-step .step-time { color: var(--text-muted); font-size: .85rem; }

/* Star rating widget */
.star-rating { display: inline-flex; flex-direction: row-reverse; font-size: 2rem; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { color: var(--border); cursor: pointer; transition: color .2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

/* Utility */
.badge-status { padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.card-muted { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; padding: 20px; }

[dir="rtl"] .filter-bar, [dir="rtl"] .text-center-block { direction: rtl; }
