/* ══════════════════════════════════════════
   METTLE Umrah & Pilgrimage Services
   Corporate Website Stylesheet
   ══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --green: #315931;
  --green-dark: #264826;
  --gold: #C6A23A;
  --gold-hover: #b8932e;
  --black: #111111;
  --white: #FFFFFF;
  --gray-light: #f8f8f8;
  --gray-mid: #e0e0e0;
  --gray-text: #666666;
  --font-ar: 'Alexandria', sans-serif;
  --font-en: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-ar);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* ── Typography ── */
h1 {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.3;
}

h2 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.4;
}

h3 {
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.5;
}

p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* When English or LTR language is active */
body.lang-en,
body.lang-id,
body.lang-tr {
  font-family: var(--font-en);
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-id h1,
body.lang-id h2,
body.lang-id h3,
body.lang-tr h1,
body.lang-tr h2,
body.lang-tr h3 {
  font-family: var(--font-en);
}

/* Urdu font */
body.lang-ur {
  font-family: 'Noto Nastaliq Urdu', var(--font-ar);
}

body.lang-ur h1,
body.lang-ur h2,
body.lang-ur h3 {
  font-family: 'Noto Nastaliq Urdu', var(--font-ar);
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline-dark:hover {
  background: var(--green);
  color: var(--white);
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 48px;
  flex-wrap: nowrap;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.navbar-logo img.logo-hidden {
  display: none;
}

.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-logo .logo-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
}

.navbar-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

body[dir="rtl"] .nav-links a::after {
  transform-origin: right;
}

body[dir="ltr"] .nav-links a::after {
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}

/* Nav Actions (lang + hamburger always visible) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  border: 2px solid var(--green);
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  font-family: inherit;
  transition: all var(--transition);
}

.lang-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.lang-btn svg {
  width: 18px;
  height: 18px;
}

.lang-btn .lang-arrow {
  width: 14px;
  height: 14px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body[dir="rtl"] .lang-dropdown {
  right: auto;
  left: -10px;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--black);
  transition: background var(--transition);
}

.lang-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-dropdown a:hover {
  background: var(--gray-light);
}

.lang-dropdown a.active {
  color: var(--green);
  font-weight: 600;
  background: rgba(49, 89, 49, 0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0.25;
}

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

.hero-content h1 {
  margin-bottom: 20px;
  font-size: 3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0.95;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   SECTION BASE
   ══════════════════════════════════════════ */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  color: var(--green);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   ABOUT PREVIEW (Home)
   ══════════════════════════════════════════ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-text h2 {
  color: var(--green);
  margin-bottom: 16px;
}

.about-preview-text p {
  color: var(--gray-text);
  margin-bottom: 24px;
}

.about-preview-img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

body[dir="rtl"] .about-preview {
  direction: rtl;
}

/* ══════════════════════════════════════════
   SERVICES (Home)
   ══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.service-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

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

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

/* ══════════════════════════════════════════
   WHY US (Home + Page)
   ══════════════════════════════════════════ */
.why-us {
  background: var(--green);
  color: var(--white);
}

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

.why-us .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.why-us .section-label {
  color: var(--gold);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 28px 20px;
}

.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.why-item h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.why-item p {
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.65);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════
   PAGE HERO (Inner Pages)
   ══════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  margin-top: 72px;
}

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

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0.35;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.page-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 48px;
}

.about-block h2 {
  color: var(--green);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.about-block h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}

body[dir="rtl"] .about-block h2::after {
  left: auto;
  right: 0;
}

.about-block p {
  color: var(--gray-text);
  font-size: 1.05rem;
}

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

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: 4px;
}

.value-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.value-item span {
  font-weight: 500;
  color: var(--black);
}

/* ══════════════════════════════════════════
   SERVICES PAGE
   ══════════════════════════════════════════ */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-page-card {
  padding: 36px 28px;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  transition: border-color var(--transition);
}

.service-page-card:hover {
  border-color: var(--gold);
}

.service-page-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 18px;
}

.service-page-icon svg {
  width: 100%;
  height: 100%;
}

.service-page-card h3 {
  color: var(--green);
  margin-bottom: 12px;
}

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

/* ══════════════════════════════════════════
   WHY US PAGE
   ══════════════════════════════════════════ */
.why-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.why-page-item {
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-align: center;
}

.why-page-item .why-number {
  margin-bottom: 18px;
}

.why-page-item h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.why-page-item p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   GALLERY PAGE
   ══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

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

.contact-info {
  padding: 36px 28px;
  background: var(--gray-light);
  border-radius: 6px;
}

.contact-info h3 {
  color: var(--green);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

.contact-info-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-item strong {
  font-size: 0.95rem;
  color: var(--black);
}

.contact-info-item span,
.contact-info-item a {
  font-size: 0.92rem;
  color: var(--gray-text);
}

.contact-info-item a[dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}

.contact-info-item a:hover {
  color: var(--green);
}

.contact-map {
  margin-top: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 24px;
}

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

.footer-brand .logo-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-brand .logo-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  display: block;
}

.footer-contact a[dir="ltr"] {
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-registration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.footer-registration p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-reg-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body[dir="rtl"] .about-preview-img {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    height: 70px;
    padding: 0 20px;
  }

  .navbar-logo img {
    height: 50px;
  }

  .nav-links {
    position: fixed;
    top: 70px; /* matches navbar height at 768px */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  body[dir="rtl"] .nav-links {
    transform: translateX(-100%);
  }

  .nav-links.active,
  body[dir="rtl"] .nav-links.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .lang-btn-text {
    display: none;
  }

  .lang-btn .lang-arrow {
    display: none;
  }

  .lang-btn {
    padding: 8px;
    border-radius: 50%;
  }

  .lang-dropdown {
    right: 0;
    left: auto;
    border: 1px solid var(--gray-mid);
    background: var(--white);
  }

  body[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
  }

  .nav-cta.btn {
    width: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values-list {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    height: 280px;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .why-page-grid {
    grid-template-columns: 1fr;
  }

  .services-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar-logo img {
    height: 42px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cta-content h2 {
    font-size: 1.7rem;
  }
}
