/* ===========================
   HMG Arabia — Stylesheet
   =========================== */

:root {
  --gold: #c9a227;
  --gold-light: #e6c655;
  --gold-dark: #a9861c;
  --gold-pale: #f9f0da;
  --gold-pale-border: rgba(201, 162, 39, 0.3);
  --navy: #0b1f3a;
  --navy-light: #142c4f;
  --navy-lighter: #1c3a63;
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: var(--gold-pale);
  --gray-100: #f2f2f2;
  --gray-300: #d9d9d9;
  --text-muted: #6b7280;
  --text-body: #333333;
  --shadow-sm: 0 2px 10px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 10, 10, 0.1);
  --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.25);
  --radius: 10px;
  --container-width: 1180px;
  --font-en: "Poppins", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  color: var(--text-body);
  background: var(--gold-pale);
  line-height: 1.65;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

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

section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.3rem; }

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-white { color: var(--white); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-block {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.logo-img {
  height: 82px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 88px;
}

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

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-toggle:hover {
  border-color: var(--gold);
}

.lang-option {
  padding: 2px 4px;
  opacity: 0.5;
  transition: var(--transition);
}

.lang-option.active {
  opacity: 1;
  color: var(--gold-dark);
}

.lang-sep {
  opacity: 0.35;
}

.nav-cta {
  padding: 11px 22px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 55%, var(--black) 100%);
  color: var(--white);
  padding: 130px 0 150px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  color: var(--white);
  font-size: 3.4rem;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--gold-light);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 60%, var(--black) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.breadcrumb {
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.page-header .page-subtitle {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 16px auto 0;
}

/* ===== Home: About preview ===== */
.about-preview {
  background: var(--off-white);
}

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

.about-preview-media {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-preview-media .badge-years {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 22px;
  background: var(--gold-pale);
  border-radius: 8px;
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.badge-years strong {
  display: block;
  font-size: 1.7rem;
  color: var(--gold-dark);
}

.badge-years span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.icon-xl svg {
  width: 96px;
  height: 96px;
  stroke: var(--gold-light);
  opacity: 0.85;
}

.about-preview-content h2 {
  margin-bottom: 18px;
}

.about-preview-content p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* ===== Services grid (Home preview) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--gold-pale);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-light);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-preview-footer {
  text-align: center;
  margin-top: 44px;
}

/* ===== Why choose us ===== */
.why-section {
  background: var(--navy);
  color: var(--white);
}

.why-section .section-head h2 {
  color: var(--white);
}

.why-section .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.why-card {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold);
}

.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 18px;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold-light));
  text-align: center;
  padding: 70px 0;
}

.cta-banner h2 {
  color: var(--black);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(10, 10, 10, 0.75);
  max-width: 560px;
  margin: 0 auto 30px;
}

/* ===== About page ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-content h2 {
  margin-bottom: 18px;
}

.overview-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.overview-media {
  height: 380px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.mv-section {
  background: var(--off-white);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mv-card {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.mv-card .service-icon {
  margin-bottom: 22px;
}

.mv-card h3 {
  margin-bottom: 12px;
}

.mv-card p {
  color: var(--text-muted);
}

/* ===== CEO section ===== */
.ceo-section {
  background: linear-gradient(155deg, var(--navy), var(--black));
  color: var(--white);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 54px;
  align-items: center;
}

.ceo-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-lighter), var(--navy));
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceo-photo svg {
  width: 100px;
  height: 100px;
  stroke: var(--gold-light);
  opacity: 0.85;
}

.ceo-label {
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
  display: block;
}

.ceo-quote {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 22px;
  color: var(--white);
}

.ceo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

.ceo-title {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ===== Values grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.value-card .service-icon {
  margin: 0 auto 20px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== Services page ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail:nth-child(even) .service-detail-media {
  order: 2;
}

.service-detail-media {
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.service-detail-media svg {
  width: 90px;
  height: 90px;
  stroke: var(--gold-light);
}

.service-detail-content .service-index {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.service-detail-content h2 {
  margin-bottom: 14px;
}

.service-detail-content > p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tags li {
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
}

.service-tags li::before {
  content: "\2713  ";
  color: var(--gold-dark);
  font-weight: 700;
}

/* ===== Contact page ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 70px;
}

.info-card {
  text-align: center;
  padding: 40px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.info-card .service-icon {
  margin: 0 auto 20px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.info-card p,
.info-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
}

.info-card a:hover {
  color: var(--gold-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 44px;
}

.contact-form-wrap h2 {
  margin-bottom: 26px;
  font-size: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error,
.form-success {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-error.show {
  display: block;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f3c6c1;
}

.form-success.show {
  display: block;
  background: #eaf7ee;
  color: #1e7a3d;
  border: 1px solid #c3e9cf;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.map-wrap h3 {
  padding: 20px 24px;
  background: var(--navy);
  color: var(--white);
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  flex: 1;
  min-height: 360px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--gold-pale);
  color: var(--text-muted);
  padding: 70px 0 0;
  border-top: 1px solid var(--gold-pale-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 22px;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-dark);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--gray-100);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-preview-grid,
  .overview-grid,
  .mv-grid,
  .ceo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail:nth-child(even) .service-detail-media {
    order: 0;
  }
  .ceo-photo {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .logo-img { height: 58px; }
  .navbar-inner { height: 92px; }
  .nav-links {
    position: fixed;
    top: 92px;
    inset-inline-start: 0;
    width: 100%;
    background: var(--gold-pale);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid var(--gold-pale-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a::after {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 90px 0 100px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .services-grid,
  .why-grid,
  .values-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-form-wrap {
    padding: 28px 22px;
  }
}

/* ===========================
   RTL adjustments
   =========================== */
html[dir="rtl"] .service-tags li::before {
  content: "";
}

html[dir="rtl"] .service-tags li::after {
  content: "  \2713";
  color: var(--gold-dark);
  font-weight: 700;
}

html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .footer-contact li {
  direction: rtl;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .ceo-label {
  letter-spacing: 0.5px;
}
