/* ==========================================================================
   Family Funeral Service — Stylesheet (Bilingual Amharic/English)
   Theme: Navy Blue, Soft Dove White, Muted Silver, Gentle Gold accents
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Ethiopic:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  --color-primary: #0A192F;
  --color-primary-light: #172A45;
  --color-accent-gold: #D4AF37;
  --color-accent-gold-hover: #c49d28;
  --color-accent-gold-light: rgba(212, 175, 55, 0.12);
  --color-dove-white: #FAF9F6;
  --color-dove-gray: #F0F1F4;
  --color-white: #FFFFFF;
  --color-muted-silver: #8E9AA6;
  --color-border-silver: #E2E8F0;
  --color-text-dark: #1E293B;
  --color-text-light: #F8FAFC;
  --color-text-body: #4A5568;
  --color-emergency: #d93838;
  --color-emergency-dark: #b82a2a;

  --font-amharic: 'Noto Sans Ethiopic', sans-serif;
  --font-english-head: 'Playfair Display', serif;
  --font-english-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  --shadow-soft: 0 4px 20px rgba(2, 12, 27, 0.06);
  --shadow-medium: 0 10px 30px -10px rgba(2, 12, 27, 0.12);
  --shadow-heavy: 0 20px 40px -15px rgba(2, 12, 27, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--color-dove-white);
  color: var(--color-text-dark);
  font-family: var(--font-english-body);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

body.lang-am {
  font-family: var(--font-amharic);
}

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

a {
  color: inherit;
}

/* ── Bilingual Toggling ───────────────────────────────────────────────── */
[data-lang] {
  display: none;
}

html.lang-en [data-lang="en"] { display: block; }
html.lang-am [data-lang="am"] { display: block; }

html.lang-en span[data-lang="en"],
html.lang-en a[data-lang="en"],
html.lang-en strong[data-lang="en"],
html.lang-en p[data-lang="en"] { display: inline; }

html.lang-am span[data-lang="am"],
html.lang-am a[data-lang="am"],
html.lang-am strong[data-lang="am"],
html.lang-am p[data-lang="am"] { display: inline; }

/* Button spans inside flex buttons need inline display */
html.lang-en .btn span[data-lang="en"],
html.lang-am .btn span[data-lang="am"] { display: inline; }

html.lang-en div[data-lang="en"].flex { display: flex; }
html.lang-am div[data-lang="am"].flex { display: flex; }

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

html.lang-en h1, html.lang-en h2, html.lang-en h3, html.lang-en h4 {
  font-family: var(--font-english-head);
}

html.lang-am h1, html.lang-am h2, html.lang-am h3, html.lang-am h4 {
  font-family: var(--font-amharic);
  letter-spacing: 0.02em;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-gold);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted-silver);
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ── Animations ───────────────────────────────────────────────────────── */
.fade-in-section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-8px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(217, 56, 56, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(217, 56, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 56, 56, 0); }
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.animate-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-emergency {
  background-color: var(--color-emergency);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(217, 56, 56, 0.35);
  animation: pulse-ring 2.5s infinite;
}

.btn-emergency:hover {
  background-color: var(--color-emergency-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 56, 56, 0.5);
  animation: none;
}

/* ── Top Emergency Alert Bar ──────────────────────────────────────────── */
.top-alert-bar {
  background: linear-gradient(90deg, var(--color-emergency-dark), var(--color-emergency));
  color: var(--color-white);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1001;
}

.top-alert-bar a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-alert-bar a:hover {
  text-decoration-thickness: 2px;
}

/* ── Sticky Header ────────────────────────────────────────────────────── */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 15px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-accent-gold);
  background-color: var(--color-white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  font-family: var(--font-english-head);
}

body.lang-am .logo-title {
  font-family: var(--font-amharic);
  font-size: 1.05rem;
}

.logo-subtitle {
  color: var(--color-accent-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

/* Hide mobile-only nav footer on desktop */
.nav-menu-footer {
  display: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--color-accent-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent-gold);
  border-radius: 2px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sticky-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.sticky-phone i {
  color: var(--color-accent-gold);
  font-size: 0.9rem;
}

.sticky-phone:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent-gold);
}

/* Mobile nav backdrop default hide on desktop */
.mobile-nav-backdrop {
  display: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
  letter-spacing: 0.03em;
}

html.lang-en .lang-btn[data-switch="en"],
html.lang-am .lang-btn[data-switch="am"] {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1002;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero-section {
  height: 100vh;
  min-height: 650px;
  max-height: 1000px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-primary);
}

.hero-media-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 47, 0.5) 0%,
    rgba(10, 25, 47, 0.3) 40%,
    rgba(10, 25, 47, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-accent-gold);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(10, 25, 47, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.hero-badge i {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 22px;
  color: var(--color-white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

html.lang-am .hero-title {
  font-family: var(--font-amharic);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

html.lang-am .hero-subtitle {
  font-family: var(--font-amharic);
  font-size: 1.05rem;
  line-height: 1.9;
}

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

/* ── About / Welcome Section ──────────────────────────────────────────── */
.welcome-section {
  background-color: var(--color-white);
  text-align: center;
}

.welcome-text {
  max-width: 780px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

html.lang-am .welcome-text {
  font-family: var(--font-amharic);
  line-height: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.feature-item {
  padding: 35px 28px;
  background-color: var(--color-dove-white);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border-silver);
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 1.5rem;
  color: var(--color-accent-gold);
  transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
  background-color: var(--color-accent-gold);
  color: var(--color-white);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--color-text-body);
  font-size: 0.9rem;
  line-height: 1.7;
}

html.lang-am .feature-desc {
  font-family: var(--font-amharic);
}

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

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.service-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-accent-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-accent-gold);
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
  background-color: var(--color-primary);
  color: var(--color-accent-gold);
  border-color: var(--color-primary);
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* In the dark services section, make card titles white for readability over glassmorphism */
.section-dark .service-card-title {
  color: var(--color-white);
}
.section-dark .service-card-text {
  color: var(--color-muted-silver);
}

.service-card-text {
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.7;
  flex-grow: 1;
}

html.lang-am .service-card-text {
  font-family: var(--font-amharic);
  line-height: 1.85;
}

/* ── Gallery Section ──────────────────────────────────────────────────── */
.gallery-filter {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-silver);
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color: var(--color-primary);
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.gallery-item.landscape { aspect-ratio: 16 / 10; }
.gallery-item.portrait  { aspect-ratio: 3 / 4; }

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-heavy);
  border-color: var(--color-accent-gold);
}

.gallery-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-element {
  opacity: 0.82;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-media-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(10, 25, 47, 0.65);
  color: var(--color-accent-gold);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 3;
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(4px);
}

/* ── Contact & Maps Section ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.emergency-card-large {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #1a3a5c 100%);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.emergency-card-large::before {
  content: "\f06c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-size: 7rem;
  opacity: 0.04;
  pointer-events: none;
}

.emergency-card-title {
  color: var(--color-accent-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 12px;
}

.emergency-card-headline {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
  color: var(--color-white);
}

html.lang-am .emergency-card-headline {
  font-family: var(--font-amharic);
  font-size: 1.4rem;
  line-height: 1.5;
}

.emergency-card-text {
  font-size: 0.92rem;
  color: var(--color-muted-silver);
  line-height: 1.7;
}

.emergency-phone-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-link-large {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  transition: var(--transition-fast);
  font-family: var(--font-english-body);
}

.phone-link-large i {
  color: var(--color-accent-gold);
  font-size: 1.5rem;
}

.phone-link-large .provider {
  font-size: 0.7rem;
  color: var(--color-muted-silver);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-link-large:hover {
  color: var(--color-accent-gold);
  transform: translateX(4px);
}

/* Secondary Phones */
.secondary-phones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.phone-link-medium {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-link-medium i {
  color: var(--color-accent-gold);
  font-size: 0.9rem;
}

.phone-link-medium:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  transform: translateY(-2px);
}

/* Locations */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.location-icon {
  color: var(--color-accent-gold);
  font-size: 1.1rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.location-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--color-white);
}

.location-details p {
  color: var(--color-muted-silver);
  font-size: 0.9rem;
}

/* Maps Tabs */
.maps-container {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.maps-tabs {
  display: flex;
  background-color: var(--color-dove-gray);
  border-bottom: 1px solid var(--color-border-silver);
}

.map-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-english-body);
  border-bottom: 3px solid transparent;
}

body.lang-am .map-tab-btn {
  font-family: var(--font-amharic);
}

.map-tab-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.map-tab-btn.active {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-bottom-color: var(--color-accent-gold);
}

.map-panel {
  display: none;
  height: 420px;
  width: 100%;
}

.map-panel.active {
  display: block;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Lightbox Modal ───────────────────────────────────────────────────── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-media {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 18px;
  font-size: 1rem;
  font-family: var(--font-english-body);
  text-align: center;
  max-width: 600px;
}

body.lang-am .lightbox-caption {
  font-family: var(--font-amharic);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  border-color: var(--color-accent-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.lightbox-nav:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  border-color: var(--color-accent-gold);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 45px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-english-head);
  font-size: 1.2rem;
  font-weight: 700;
}

body.lang-am .footer-logo {
  font-family: var(--font-amharic);
}

.footer-motto {
  font-size: 0.92rem;
  color: var(--color-muted-silver);
  font-style: italic;
  line-height: 1.6;
}

html.lang-am .footer-motto {
  font-family: var(--font-amharic);
  font-style: normal;
}

.footer-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-gold);
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.footer-heading {
  font-size: 1rem;
  color: var(--color-accent-gold);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent-gold);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--color-muted-silver);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-muted-silver);
  font-size: 0.88rem;
}

.footer-contact-details li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-details i {
  color: var(--color-accent-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-details a {
  color: var(--color-muted-silver);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--color-muted-silver);
  font-size: 0.82rem;
}

.back-to-top {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.back-to-top:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
  border-color: var(--color-accent-gold);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════════════════
   Responsive Breakpoints
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  html.lang-am .hero-title {
    font-size: 2.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 40px 30px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    z-index: 1001;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
    gap: 6px;
    overflow-y: auto;
    visibility: hidden;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  }

  /* Dark backdrop behind mobile nav */
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 999; /* Place behind sticky-wrapper (z-index 1000) so links and close toggle inside it stay clickable */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 12px 14px;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Keep lang switcher visible, hide phone on mobile */
  .header-actions {
    display: flex;
    gap: 10px;
  }

  .sticky-phone {
    display: none;
  }

  /* Mobile nav footer */
  .nav-menu-footer {
    margin-top: auto;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .secondary-phones {
    grid-template-columns: 1fr;
  }

  .map-panel {
    height: 300px;
  }

  .section-title-wrapper {
    margin-bottom: 40px;
  }

  /* ── Mobile Header & Lightbox Tweaks (consolidated) ── */
  .logo-img {
    width: 40px !important;
    height: 40px !important;
  }
  .logo-title {
    font-size: 1rem !important;
  }
  body.lang-am .logo-title {
    font-size: 0.9rem !important;
  }
  .logo-subtitle {
    font-size: 0.65rem !important;
  }
  .lightbox-close {
    top: 15px !important;
    right: 15px !important;
    position: fixed !important;
    z-index: 2002 !important;
    background: rgba(10, 25, 47, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
    padding: 0 10px;
  }

  .section {
    padding: 55px 0;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    padding: 15px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  html.lang-am .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .emergency-card-large {
    padding: 24px;
  }

  .phone-link-large {
    font-size: 1.2rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }

  .top-alert-bar {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .logo-img {
    width: 35px !important;
    height: 35px !important;
    border-width: 1.5px !important;
  }
  .logo-title {
    font-size: 0.85rem !important;
  }
  body.lang-am .logo-title {
    font-size: 0.8rem !important;
  }
  .logo-subtitle {
    font-size: 0.55rem !important;
    letter-spacing: 0.05em !important;
  }
  .logo-container {
    gap: 6px !important;
  }
  .lang-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }
  .main-header {
    padding: 8px 0 !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
