/* ==========================================================================
   MAGICSOFT CORPORATION - DESIGN SYSTEM & STYLESHEET
   (shares its look and feel with itservices.org)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dark theme (default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1b2640;
  --bg-card: rgba(19, 27, 46, 0.7);
  --bg-card-hover: rgba(27, 38, 64, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #6366f1 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --nav-height: 80px;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(37, 99, 235, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--accent-blue); color: #fff; padding: 0.5rem 1rem; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & BADGES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p + p { margin-top: 1rem; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-tag.amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: var(--accent-amber); }

.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 3rem auto; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

.prose a, .text-link { color: var(--accent-cyan); }
.prose a:hover, .text-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-primary { background: var(--gradient-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5); }

.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.btn-outline:hover { background: rgba(56, 189, 248, 0.1); transform: translateY(-2px); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: scale(1.05); }

/* --------------------------------------------------------------------------
   5. TOP BAR, HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-item a:hover { color: var(--accent-cyan); }

.header {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.header.scrolled { box-shadow: var(--shadow-md); height: 70px; }

.navbar { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo-container { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
.logo-img { height: 48px; width: 48px; border-radius: var(--radius-sm); object-fit: cover; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--accent-cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-toggle { display: none; background: transparent; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: var(--gradient-glow);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-card::before, .glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-feature-img { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 1rem; }
.hero-feature-img img { width: 100%; height: 220px; object-fit: cover; }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.thumb-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }

/* Inner page header */
.page-header-hero {
  padding: 5rem 0 3rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.page-header-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  pointer-events: none;
}
.page-header-hero .container { position: relative; }
.page-header-hero h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.page-header-hero p { color: var(--text-secondary); max-width: 720px; font-size: 1.1rem; line-height: 1.7; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent-cyan); transition: color var(--transition-fast); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; }

/* --------------------------------------------------------------------------
   7. SECTIONS & CARDS
   -------------------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.split p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); background: var(--bg-card-hover); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card .btn { align-self: flex-start; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.2));
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}
.feature-row .service-icon { width: 44px; height: 44px; font-size: 1.15rem; margin: 0; }
.feature-row strong { font-size: 1rem; }

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.media-card img { border-radius: var(--radius-md); margin: 0 auto; }

/* Split card with image + text (about/inner pages) */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.glow-card-media { position: relative; min-height: 320px; background: var(--bg-tertiary); }
.glow-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glow-card-media.contain img { object-fit: contain; padding: 1.5rem; }
.glow-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-card) 100%); pointer-events: none; }
.glow-card-media.contain::after { display: none; }
.glow-card-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.glow-card-body p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-secondary); }
.check-list li i { color: var(--accent-emerald); margin-top: 0.3rem; }

.figure { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1rem; transition: all var(--transition-normal); }
.figure:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.figure img { border-radius: var(--radius-md); width: 100%; }
.figure figcaption { color: var(--text-secondary); font-size: 0.92rem; padding: 1rem 0.5rem 0.25rem; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }

/* CTA band */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.15));
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}
.cta-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: center; }
.cta-grid h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.cta-grid p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-grid img { max-height: 300px; width: auto; margin: 0 auto; }

/* News */
.news-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}
.news-card .service-icon { margin: 0; }
.news-card p { font-size: 1.15rem; font-weight: 600; flex: 1; }

/* --------------------------------------------------------------------------
   8. CONTACT & FORMS
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-info-card > p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

.contact-detail-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 1.25rem; }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-detail-item h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-detail-item p, .contact-detail-item a, .contact-detail-item address { color: var(--text-secondary); font-size: 0.95rem; font-style: normal; }
.contact-detail-item a:hover { color: var(--accent-cyan); }

.contact-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); height: 100%; min-height: 260px; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-control:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: var(--accent-red); }
.form-status.success { color: var(--accent-emerald); }

/* --------------------------------------------------------------------------
   9. PROSE & DOCUMENTS
   -------------------------------------------------------------------------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); line-height: 1.8; }

.pdf-frame { width: 100%; height: 80vh; min-height: 500px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: #fff; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-logo img { height: 36px; width: 36px; border-radius: 4px; object-fit: cover; }
.footer-desc { margin-bottom: 1rem; max-width: 380px; }
.footer-col h4 { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-links i { color: var(--accent-cyan); width: 18px; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a:hover { color: var(--accent-cyan); }

/* --------------------------------------------------------------------------
   11. MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}
.modal-backdrop.active .modal-card { transform: scale(1); }
.modal-card h3 { margin-bottom: 0.75rem; }
.modal-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid, .contact-grid, .split, .glow-card, .cta-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .glow-card-media::after { display: none; }
  .glow-card-body { padding: 2rem; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-toggle { display: block; }

  .top-bar-content { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .top-bar-info { gap: 0.25rem 1.5rem; }
}

@media (max-width: 576px) {
  .footer-grid, .gallery { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar .hide-sm { display: none; }
  .news-card { flex-direction: column; align-items: flex-start; }
  .contact-info-card, .contact-form-card { padding: 1.75rem; }
  .logo-container { font-size: 1.05rem; }
}
