/* ===== EMCO SALES - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-bg: #eff6ff;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-secondary);
  color: #475569;
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.7s ease forwards;
  opacity: 0;
}

.animate-fade-in-right {
  animation: fadeInRight 0.7s ease forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

.delay-7 {
  animation-delay: 0.7s;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  animation: slideDown 0.5s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}

/* ===== LOGO IMAGE FIX ===== */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
  margin: 5px 0;
}

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

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 40px 0;
}

/* Hero Top Brand (duplicated nav-logo in hero) */
.hero-top-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.hero-top-brand .nav-logo-icon {
  width: 55px;
  height: 55px;
}

.hero-top-brand .nav-logo span {
  font-size: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(26, 86, 219, 0.1);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeInUp 0.7s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  animation: fadeInUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: #2563eb;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary-lighter);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.9s ease 0.3s forwards;
  opacity: 0;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.6);
}


/* ===== SECTION COMMON ===== */
.section {
  padding: 110px 0;
}

.section-alt {
  background: #f1f5f9;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(26, 86, 219, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #f1f1f1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-lighter);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all var(--transition-normal);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
}

.feature-icon.cyan {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: var(--accent);
}

.feature-icon.green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: var(--success);
}

.feature-icon.amber {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: var(--warning);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

/* ===== BRANDS SECTION ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.brand-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f1f1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  min-height: 160px;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-lighter);
  background: rgba(37, 99, 235, 0.05);
}

.brand-card img {
  max-width: 130px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all var(--transition-normal);
}

.brand-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.brand-card .brand-name {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
}

/* Fallback: when logo fails to load, show styled brand name */
.brand-name.fallback-visible {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  padding: 20px 12px;
  background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  letter-spacing: 0.3px;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  padding: 60px 0 24px;
  color: var(--gray-400);
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-400);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-lighter);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-lighter);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
}

.page-hero h1 {
  font-size: 3rem;
  color: #0f172a;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.15rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

.about-intro {
  padding: 80px 0;
}

.about-intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-intro-content h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 20px;
}

.about-intro-content p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Branch Cards */
.branches-section {
  padding: 80px 0;
  background: #f1f5f9;
}

.branch-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  border: 1px solid #f1f1f1;
}

.branch-card.reverse {
  direction: rtl;
}

.branch-card.reverse>* {
  direction: ltr;
}

.branch-card-image {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.branch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.branch-card:hover .branch-card-image img {
  transform: scale(1.05);
}

.branch-card-content {
  padding: 40px;
}

.branch-card-content h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.branch-card-content .branch-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.branch-card-content p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* Branch Hero (Main Branch large image) */
.branch-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow-xl);
  position: relative;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

/* Default img rule (keeps backward-compat if the old local image is ever restored) */
.branch-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

/* Main Branch: show the full image, no cropping */
.branch-hero-main-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-slow);
}

.branch-hero:hover .branch-hero-main-img {
  transform: scale(1.02);
}

.branch-hero-info {
  padding: 32px 36px;
  background: var(--white);
}

.branch-hero-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.branch-hero-info p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}

/* Branch Sections (vertical alternating layout) */
.branch-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f1f1;
  margin-bottom: 40px;
  transition: box-shadow var(--transition-normal);
}

.branch-section:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.branch-section.reverse {
  direction: rtl;
}

.branch-section.reverse>* {
  direction: ltr;
}

.branch-section-img {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Real photos: show full image, no cropping */
.branch-section-contain-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: transform var(--transition-slow);
}

.branch-section.reverse .branch-section-contain-img {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.branch-section:hover .branch-section-contain-img {
  transform: scale(1.03);
}

.branch-section-text {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.branch-section-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 14px;
}

.branch-section-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.branch-section-text p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
}

.branch-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 60px auto;
}

/* Owner Section */
.owner-section {
  padding: 80px 0;
  background: transparent;
}

.owner-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 48px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f1f1;
  position: relative;
  overflow: hidden;
}

.owner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Two-column inner layout: image left, content right */
.owner-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* ── Owner Image ── */
.owner-img-wrap {
  flex-shrink: 0;
  width: 150px;
}

.owner-img {
  width: 150px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.18);
  border: 3px solid var(--white);
  outline: 2px solid var(--primary-lighter);
}

/* ── Message Content ── */
.owner-card-content {
  flex: 1;
  min-width: 0;
}

.owner-card-content .quote-icon {
  font-size: 3rem;
  color: var(--primary-lighter);
  margin-bottom: 8px;
  display: block;
  line-height: 1;
}

.owner-card-content h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 16px;
}

.owner-card-content blockquote {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--primary-lighter);
}

.owner-card .owner-name {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1rem;
}

.owner-card .owner-title {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ── Responsive: stack on mobile ── */
@media (max-width: 640px) {
  .owner-card {
    padding: 32px 24px;
  }

  .owner-card-inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .owner-card-content {
    text-align: center;
  }

  .owner-card-content blockquote {
    border-left: none;
    padding-left: 0;
    padding-top: 16px;
    border-top: 3px solid var(--primary-lighter);
  }

  .owner-card-content .quote-icon {
    text-align: center;
  }
}

/* ===== ACHIEVEMENTS PAGE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f1f1;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-overlay h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Add More Card */
.gallery-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--gray-400);
}

.gallery-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.gallery-add svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.gallery-add span {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.contact-info {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f1f1;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.contact-info>p {
  color: #475569;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.contact-item:hover {
  background: var(--primary-bg);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.contact-item-text a {
  color: var(--primary);
  font-weight: 500;
}

.contact-item-text a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f1f1;
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.contact-form-wrapper>p {
  color: #475569;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.form-submit svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding: 20px 0;
  }

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

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 70%;
    margin: 0 auto;
  }

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

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

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

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

  .branch-card {
    grid-template-columns: 1fr;
  }

  .branch-card.reverse {
    direction: ltr;
  }

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

  .branch-section {
    grid-template-columns: 1fr;
  }

  .branch-section.reverse {
    direction: ltr;
  }

  .branch-hero img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-image img {
    max-width: 90%;
  }

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

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

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

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .owner-card {
    padding: 32px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .branch-showcase-grid {
    grid-template-columns: 1fr;
  }

  .branch-showcase-img {
    height: 200px;
  }

  .branch-section {
    grid-template-columns: 1fr;
  }

  .branch-section.reverse {
    direction: ltr;
  }

  .branch-section-img {
    min-height: 220px;
  }

  .branch-section-text {
    padding: 28px 24px;
  }

  .branch-hero img {
    height: 240px;
  }

  .branch-hero-info {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 120px 0 60px;
  }
}

/* ===== CONTACT PAGE NOTICE ===== */
.notice-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f6ff;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 16px;
}

.notice-box p {
  margin: 0;
}

.notice-box .notice-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-box strong {
  font-weight: 700;
  color: #333;
}

/* ===== ORDER NOTE CARD ===== */
.order-note-card {
  max-width: 600px;
  margin: 40px auto 0;
  background: #f1f5f9;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.order-note-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-note-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.order-note-content p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

/* ===== BRANCH LOCATIONS SECTION (Contact Page) ===== */
.branch-locations-section {
  background: #ffffff;
  padding: 80px 0;
}

.branch-address-wrap {
  max-width: 600px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.branch-address-item {
  padding: 32px;
  position: relative;
}

.branch-address-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0 32px;
}

.branch-address-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.branch-address-tag--2 {
  background: #e0f2fe;
  color: #0891b2;
}

.branch-address-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.branch-address-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.branch-map-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.branch-map-link:hover {
  color: var(--primary-dark, #1e40af);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .branch-address-item {
    padding: 24px;
  }

  .branch-address-divider {
    margin: 0 24px;
  }
}