/*
Theme Name: Naveed Aluminium
Theme URI: https://naveedaluminium.com/
Author: Naveed Aluminium
Author URI: https://naveedaluminium.com/
Description: Arabic-first WordPress theme for Naveed Aluminium — luxury aluminium doors, windows, glass and wooden doors in Riyadh. Includes language switcher (AR/EN) and full RTL support.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naveed-aluminium
Tags: business, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* ===== BRAND ===== */
:root {
  --bg: #0a1929;
  --bg-soft: #0f2238;
  --surface: #fbf8f3;
  --ink: #0a1929;
  --ink-soft: #2c3e50;
  --muted: #6b7a8a;
  --line: rgba(10, 25, 41, 0.10);
  --gold: #c9a45c;
  --gold-bright: #e3c084;
  --gold-deep: #a07e3a;
  --whatsapp: #25D366;
  --font-ar: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --container: 1240px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ar); background: var(--surface); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
html.lang-en body { font-family: var(--font-en); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== LANGUAGE TOGGLE (uses [data-ar]/[data-en] attribute selectors only) ===== */
[data-ar] { display: inline; }
[data-en] { display: none; }
html.lang-en [data-ar] { display: none; }
html.lang-en [data-en] { display: inline; }

/* ===== HEADER ===== */
.top-bar { background: var(--bg); color: rgba(255,255,255,0.78); font-size: 13px; padding: 8px 0; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar a { display: inline-flex; align-items: center; gap: 8px; }
.top-bar a:hover { color: var(--gold-bright); }
.top-bar i { color: var(--gold); font-size: 12px; }
.top-bar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.lang-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold-bright); padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lang-btn:hover { background: var(--gold); color: var(--bg); }

.site-header { background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 20px -8px rgba(10,25,41,.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo__mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg); border-radius: 10px; color: var(--gold-bright); font-weight: 800; font-size: 18px; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.site-logo__text .ar { font-weight: 800; font-size: 19px; color: var(--bg); }
.site-logo__text .en { font-size: 11px; color: var(--gold-deep); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a { padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ink); border-radius: 8px; position: relative; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold-deep); }

.header-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: transform .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--bg); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--call:hover { background: var(--gold); color: var(--bg); }
.btn--whatsapp { background: var(--whatsapp); color: white; }
.btn--whatsapp:hover { background: #1ebe5a; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: var(--gold-bright); color: var(--bg); }
.btn--ghost { background: transparent; color: white; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 32px; font-size: 15px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; background: var(--bg); color: var(--gold-bright); align-items: center; justify-content: center; font-size: 18px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(135deg, rgba(10,25,41,0.85) 0%, rgba(10,25,41,0.65) 100%), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: white;
}
.hero h1 { font-weight: 900; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -1px; max-width: 900px; }
.hero h1 .accent { color: var(--gold-bright); }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; color: rgba(255,255,255,0.85); margin: 0 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 100px 0 70px; background: linear-gradient(135deg, rgba(10,25,41,0.92), rgba(10,25,41,0.78)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80') center/cover; color: white; text-align: center; }
.page-header h1 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; letter-spacing: -1px; }
.page-header__sub { font-size: 17px; color: rgba(255,255,255,0.78); max-width: 600px; margin: 0 auto; }

/* ===== SECTION SCAFFOLD ===== */
section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.section-title { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.5px; color: var(--bg); }
.section-lead { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ===== WHY CHOOSE US ===== */
.why { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: white; padding: 32px 28px; border-radius: 14px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(10,25,41,.12); }
.why-card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--bg); color: var(--gold-bright); display: grid; place-items: center; font-size: 20px; margin-bottom: 18px; }
.why-card h3 { font-weight: 800; font-size: 19px; margin: 0; color: var(--bg); }

/* ===== SERVICES (cards) ===== */
.services { background: var(--bg); color: white; }
.services .section-title { color: white; }
.services .section-lead { color: rgba(255,255,255,0.7); }
.services .section-eyebrow { color: var(--gold-bright); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; display: block; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover img { transform: scale(1.06); }
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,25,41,.92) 100%); }
.service-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px; color: white; z-index: 2; }
.service-card h3 { font-weight: 800; font-size: 22px; margin: 0; }
.services__cta { text-align: center; margin-top: 50px; }

/* Services page detail */
.services-detail { background: var(--surface); }
.svc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; margin-bottom: 60px; background: white; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px -14px rgba(10,25,41,.10); }
.svc-row:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.svc-row:nth-child(even) .svc-row__visual { order: 2; }
.svc-row__visual { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.svc-row__visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__num { font-size: 48px; color: var(--gold); font-weight: 800; line-height: 1; margin-bottom: 14px; }
.svc-row h3 { font-weight: 800; font-size: 28px; margin-bottom: 12px; color: var(--bg); }
.svc-row p { font-size: 16px; color: var(--muted); margin: 0 0 22px; line-height: 1.8; }

/* ===== ABOUT PREVIEW ===== */
.about-preview { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-grid__visual { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 14px 40px -16px rgba(10,25,41,.18); }
.about-grid__visual img { width: 100%; height: 100%; object-fit: cover; }
.about-preview h2 { margin-bottom: 18px; }
.about-preview p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.85; margin: 0 0 28px; }

/* ===== GALLERY ===== */
.gallery { background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,25,41,.7)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__label { position: absolute; bottom: 16px; inset-inline-start: 18px; color: white; font-weight: 700; opacity: 0; transition: opacity .25s; z-index: 1; }
.gallery-item:hover .gallery-item__label { opacity: 1; }
.gallery__cta { text-align: center; margin-top: 40px; }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 70px 0; background: linear-gradient(135deg, rgba(10,25,41,0.92), rgba(10,25,41,0.78)), url('https://images.unsplash.com/photo-1565538810643-b5bdb714032a?auto=format&fit=crop&w=2000&q=80') center/cover; color: white; }
.cta-banner__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.cta-banner h2 { font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); margin: 0; line-height: 1.25; }
.cta-banner__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--surface); padding: 32px 28px; border-radius: 14px; border: 1px solid var(--line); }
.testimonial__stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--gold-bright); display: grid; place-items: center; font-weight: 700; }
.testimonial__name { font-weight: 700; color: var(--bg); margin: 0; font-size: 15px; }
.testimonial__role { font-size: 13px; color: var(--muted); margin: 0; }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-grid .section-title { color: white; }
.contact-grid .section-eyebrow { color: var(--gold-bright); }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-info__item { display: flex; gap: 16px; padding: 18px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.contact-info__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--gold); color: var(--bg); display: grid; place-items: center; font-size: 16px; }
.contact-info__label { color: var(--gold-bright); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 4px; font-weight: 600; }
.contact-info__value { margin: 0; font-size: 15.5px; color: white; }

.contact-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 36px; border-radius: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gold-bright); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 14px 16px; color: white; font: inherit; font-size: 15px; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.09); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.4); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg); color: white; }
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form button[type="submit"] { width: 100%; padding: 15px; justify-content: center; }
.form-message { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; display: none; }
.form-message.success { display: block; background: rgba(37,211,102,.15); color: #25D366; }
.form-message.error { display: block; background: rgba(220,53,69,.15); color: #ff6b7a; }

/* ===== FOOTER ===== */
.site-footer { background: #050f1c; color: rgba(255,255,255,.7); padding: 60px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.site-footer__about { margin: 20px 0 0; font-size: 14.5px; line-height: 1.8; }
.site-footer h4 { color: white; font-weight: 700; font-size: 17px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: inline-block; }
.site-footer ul li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer ul li a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer ul li a:hover { color: var(--gold-bright); }
.site-footer__bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; text-align: center; }
.footer-contact-item { display: flex !important; align-items: flex-start; gap: 10px; }
.footer-contact-item i { color: var(--gold); margin-top: 4px; }

/* ===== FLOATING CTA ===== */
.floating-cta { position: fixed; bottom: 22px; inset-inline-end: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 80; }
.floating-cta a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 22px; box-shadow: 0 8px 24px -6px rgba(0,0,0,.4); }
.floating-cta a:hover { transform: scale(1.08); }
.floating-cta .wa { background: var(--whatsapp); }
.floating-cta .ph { background: var(--gold); color: var(--bg); }

/* ===== MOBILE NAV ===== */
.mobile-nav { position: fixed; inset: 0; background: var(--bg); z-index: 200; padding: 28px; transform: translateY(-100%); transition: transform .3s; display: flex; flex-direction: column; }
.mobile-nav.open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mobile-nav__close { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.08); color: white; display: grid; place-items: center; font-size: 18px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 18px; color: white; font-size: 17px; font-weight: 600; border-radius: 10px; }
.mobile-nav a:hover { background: rgba(201,164,92,.15); color: var(--gold-bright); }
.mobile-nav__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid, .services-grid, .testimonials-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .svc-row:nth-child(even) .svc-row__visual { order: 0; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta .btn span { display: none; }
  .menu-toggle { display: inline-flex; }
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .why-grid, .services-grid, .testimonials-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner__buttons { justify-content: center; }
  .top-bar__left { gap: 14px; font-size: 12px; }
  .contact-form { padding: 24px; }
}

/* WP core */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

