/* ============================================================
   Quincaillerie Ray Hardware — Design System & Styles
   A Castle Building Centres Group Member (Saint-Léonard, NB)
   Aesthetics: Claude (Navy/Castle Blue) + Features: Gemini
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Castle Brand Guidelines Colors */
  --castle-blue: #004990;
  --castle-blue-dark: #003366;
  --castle-blue-darker: #002244;
  --castle-blue-light: #0070BA;
  --castle-blue-cyan: #0082C8;
  --castle-blue-glow: rgba(0, 73, 144, 0.4);
  --castle-blue-subtle: rgba(0, 73, 144, 0.12);

  --castle-red: #E02A27;
  --castle-red-dark: #B81B18;
  --castle-red-light: #FF4D4A;

  --castle-yellow: #FFC324;
  --castle-yellow-alt: #FFD006;
  --castle-yellow-glow: rgba(255, 195, 36, 0.35);

  /* Modern Dark Navy Surfaces */
  --primary-dark: #060E1A;
  --primary-darker: #030810;
  --surface-dark: #0A1628;
  --surface-card: #0F2038;
  --surface-card-hover: #152B4B;
  --surface-elevated: #1B365D;

  /* Text Colors */
  --text-primary: #F0F4FA;
  --text-secondary: #A2B3CC;
  --text-muted: #6B7E9C;
  --text-accent: #0082C8;
  --text-gold: #FFC324;

  /* Status Colors */
  --status-open: #22C55E;
  --status-closed: #EF4444;

  /* Neutrals & Borders */
  --border-subtle: rgba(0, 130, 200, 0.16);
  --border-light: rgba(0, 130, 200, 0.3);
  --border-focus: #0082C8;

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #004990 0%, #0070BA 100%);
  --gradient-blue-card: linear-gradient(145deg, #004990 0%, #003366 100%);
  --gradient-hero: linear-gradient(135deg, rgba(3, 8, 16, 0.95) 0%, rgba(0, 73, 144, 0.42) 100%);
  --gradient-card: linear-gradient(145deg, rgba(15, 32, 56, 0.95) 0%, rgba(10, 22, 40, 0.98) 100%);
  --gradient-gold: linear-gradient(135deg, #FFC324 0%, #FFA800 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 6px 30px rgba(0, 73, 144, 0.45);
  --shadow-glow: 0 0 35px rgba(0, 130, 200, 0.25);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-bar {
  background-color: var(--primary-darker);
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1360px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.castle-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--castle-yellow);
}

.castle-partner-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.divider-dot {
  color: var(--text-muted);
}

.top-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.top-address svg {
  width: 14px;
  height: 14px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-open);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-dot.closed {
  background-color: var(--status-closed);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* ============================================================
   STICKY NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(6, 14, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  padding: 0 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--castle-red);
  border-radius: 50%;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 130, 200, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Sticky Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 73, 144, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--castle-blue-light);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 112, 186, 0.4);
}

.nav-castle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  background: rgba(0, 73, 144, 0.32);
  border: 1.5px solid rgba(0, 153, 230, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.nav-castle-badge:hover {
  background: rgba(0, 73, 144, 0.55);
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 4px 18px rgba(0, 112, 186, 0.45);
}

.nav-castle-badge img {
  height: 34px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--gradient-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-blue);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.5);
}

.btn-quote-header {
  padding: 7px 13px;
  background: rgba(255, 195, 36, 0.12);
  border: 1px solid var(--castle-yellow);
  color: var(--castle-yellow);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-quote-header:hover {
  background: var(--castle-yellow);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 195, 36, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================================
   HERO SECTION (Blueprint Drafting Craftsmanship Theme)
   ============================================================ */
.hero {
  position: relative;
  padding: 60px 0 70px;
  background: 
    radial-gradient(circle at 75% 30%, rgba(0, 112, 186, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(255, 195, 36, 0.08) 0%, transparent 45%),
    linear-gradient(145deg, #030812 0%, #071529 50%, #030710 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Subtle architectural drafting grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 130, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 130, 200, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  background: rgba(0, 73, 144, 0.45);
  border: 1.5px solid rgba(0, 153, 230, 0.45);
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 73, 144, 0.35);
  transition: all var(--transition-fast);
}

.hero-badge:hover {
  background: rgba(0, 73, 144, 0.6);
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 6px 25px rgba(0, 153, 230, 0.45);
}

.hero-badge .castle-logo-mini {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.highlight-blue {
  color: var(--castle-blue-cyan);
}

.highlight-yellow {
  color: var(--castle-yellow);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 112, 186, 0.5);
}

.btn-secondary {
  background: rgba(15, 32, 56, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(21, 43, 75, 0.9);
  border-color: var(--castle-blue-cyan);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-gold);
  color: #030810;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 195, 36, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 195, 36, 0.5);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--castle-yellow);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
  display: block;
}

/* Hero Quick Hub Card (Right Column) */
.hero-hub-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.hub-services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hub-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hub-service-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 112, 186, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--castle-blue-cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.hub-service-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.hub-service-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hub-card-cta {
  width: 100%;
}

/* ============================================================
   QUICK INFO STRIP
   ============================================================ */
.quick-info-strip {
  background: var(--surface-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 32, 56, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.info-cell:hover {
  background: rgba(15, 32, 56, 0.8);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.cell-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cell-icon.fb-svg svg {
  width: 26px;
  height: 26px;
  fill: #1877F2;
}

.cell-info {
  display: flex;
  flex-direction: column;
}

.cell-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.cell-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cell-action-btn {
  font-size: 0.78rem;
  color: var(--castle-blue-cyan);
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================================
   DEPARTMENTS SECTION
   ============================================================ */
.departments-section {
  padding: 80px 0;
  background: var(--primary-dark);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 112, 186, 0.15);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--castle-blue-cyan);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Department Filter Tabs */
.dept-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.dept-tab-btn {
  background: rgba(15, 32, 56, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dept-tab-btn:hover {
  background: rgba(0, 112, 186, 0.2);
  color: #fff;
  border-color: var(--border-light);
}

.dept-tab-btn.active {
  background: var(--castle-blue);
  color: #fff;
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 4px 15px rgba(0, 73, 144, 0.4);
}

/* Department Cards Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.dept-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.dept-card:hover {
  transform: translateY(-8px);
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 16px 36px rgba(0, 73, 144, 0.35);
  background: var(--surface-card-hover);
}

.dept-card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #061120;
}

.dept-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dept-card:hover .dept-card-visual img {
  transform: scale(1.06);
}

.dept-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--castle-yellow);
  z-index: 2;
}

.dept-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.dept-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dept-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.dept-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.dept-checklist li svg {
  width: 14px;
  height: 14px;
  color: var(--castle-yellow);
  flex-shrink: 0;
}

/* Department Dropdowns (Well Pumps & Septic) */
.dept-dropdown-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 16px;
}

.dept-dropdown {
  background: rgba(0, 73, 144, 0.16);
  border: 1px solid rgba(0, 153, 230, 0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.dept-dropdown:hover {
  background: rgba(0, 73, 144, 0.26);
  border-color: var(--castle-blue-cyan);
}

.dept-dropdown.dropdown-septic {
  background: rgba(16, 68, 48, 0.18);
  border-color: rgba(46, 175, 125, 0.32);
}

.dept-dropdown.dropdown-septic:hover {
  background: rgba(16, 68, 48, 0.28);
  border-color: #2eaf7d;
}

.dept-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--transition-fast);
}

.dept-dropdown-summary::-webkit-details-marker {
  display: none;
}

.dropdown-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dropdown-icon {
  font-size: 1.05rem;
}

.dropdown-title-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.dropdown-chevron {
  font-size: 0.95rem;
  color: var(--castle-blue-cyan);
  transition: transform var(--transition-fast);
}

.dept-dropdown.dropdown-septic .dropdown-chevron {
  color: #6ee7b7;
}

.dept-dropdown[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.dept-dropdown-body {
  padding: 8px 14px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-desc {
  font-size: 0.80rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.dropdown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dept-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
}

.btn-brands {
  flex: 1;
  background: rgba(0, 112, 186, 0.15);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-brands:hover {
  background: var(--castle-blue);
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 4px 15px rgba(0, 112, 186, 0.35);
}

.btn-quote-dept {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quote-dept:hover {
  border-color: var(--castle-yellow);
  color: var(--castle-yellow);
  background: rgba(255, 195, 36, 0.08);
}

/* ============================================================
   INTERACTIVE CALCULATORS SECTION (Gemini Feature)
   ============================================================ */
.calculators-section {
  padding: 80px 0;
  background: var(--surface-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.calc-tab-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-tab-btn:hover {
  background: rgba(0, 112, 186, 0.2);
  color: #fff;
  border-color: var(--border-light);
}

.calc-tab-btn.active {
  background: var(--castle-blue);
  color: #fff;
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 4px 15px rgba(0, 73, 144, 0.4);
}

.calc-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: 30px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.calc-inputs h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}

.calc-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(6, 14, 26, 0.8);
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--castle-blue-cyan);
  box-shadow: 0 0 0 3px rgba(0, 130, 200, 0.25);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-results-box {
  background: linear-gradient(145deg, #030812 0%, #08162b 100%);
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.results-badge {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--castle-yellow);
}

.calc-metric-sub {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.result-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--castle-blue-cyan);
  min-width: 50px;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   CIRCULAIRE & FLYER SECTION
   ============================================================ */
.flyer-section {
  padding: 80px 0;
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.flyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
  margin-top: 36px;
  align-items: stretch;
}

.flyer-card {
  background: linear-gradient(145deg, rgba(15, 32, 56, 0.94) 0%, rgba(6, 14, 26, 0.98) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.flyer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--castle-blue-light), var(--castle-yellow), transparent);
  opacity: 0.7;
}

.flyer-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 195, 36, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 130, 200, 0.15);
}

.flyer-card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flyer-brand-badge {
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.flyer-card:hover .flyer-brand-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.flyer-brand-badge-dark {
  background: #006241;   /* Metabo green, matches the logo picture */
}

.flyer-brand-logo {
  height: 26px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}

.flyer-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.flyer-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Large Flyer Preview Showcase */
.flyer-preview-box {
  background: rgba(3, 8, 16, 0.7);
  border: 1px solid rgba(0, 130, 200, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flyer-preview-box:hover {
  border-color: var(--castle-yellow);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 12px 35px rgba(255, 195, 36, 0.22);
}

.flyer-cover-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  margin: 0 auto;
  background: #0b1523;
  width: 100%;
  max-width: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-cover-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
}

.flyer-preview-box:hover .flyer-cover-img {
  transform: scale(1.04);
}

/* Completely remove/hide badge labels over cover images */
.flyer-badge-overlay {
  display: none !important;
}

.flyer-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(0, 73, 144, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.flyer-preview-box:hover .flyer-hover-action {
  opacity: 1;
}

.flyer-validity-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--castle-yellow);
  font-weight: 600;
  margin: 12px 0 0 0;
  padding: 3px 10px;
  background: rgba(255, 195, 36, 0.1);
  border: 1px solid rgba(255, 195, 36, 0.25);
  border-radius: var(--radius-full);
}

.flyer-validity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--castle-yellow);
}

.flyer-content {
  flex-grow: 1;
}

.flyer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.flyer-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

.flyer-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   MODAL: FLYER & CATALOGUE VIEWER (FULL THEATRE EDGE-TO-EDGE)
   ============================================================ */
.modal-overlay.flyer-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(3, 8, 16, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 10000 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.flyer-modal-overlay.open {
  display: flex !important;
}

.modal-box.flyer-modal-box {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #040810 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.flyer-modal-header {
  height: 56px;
  min-height: 56px;
  padding: 8px 24px;
  background: #060e1a;
  border-bottom: 1px solid rgba(0, 130, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
  gap: 16px;
}

.flyer-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flyer-modal-header .modal-close {
  position: static !important;
  font-size: 26px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-sm) !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  line-height: 1 !important;
  margin-left: 6px !important;
  transition: all var(--transition-fast) !important;
}

.flyer-modal-header .modal-close:hover {
  background: var(--castle-red) !important;
  border-color: var(--castle-red) !important;
  color: #fff !important;
}

.flyer-modal-body {
  flex: 1 1 auto;
  width: 100vw !important;
  height: calc(100vh - 56px) !important;
  background: #080f1a !important;
  position: relative;
  overflow: hidden;
}

.flyer-modal-body iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  background: #111;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   SERVICES & CONTRACTORS SECTION
   ============================================================ */
.services-section {
  padding: 80px 0;
  background: var(--surface-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  background: var(--surface-card-hover);
}

.service-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 112, 186, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--castle-yellow);
  margin-bottom: 18px;
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 80px 0;
  background: var(--primary-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(3, 8, 16, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-overlay-badge img {
  height: 32px;
  width: auto;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ============================================================
   HOURS & CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 80px 0;
  background: var(--surface-dark);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 35px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 20px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 12px 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hours-table td.day-col {
  font-weight: 600;
  color: var(--text-primary);
}

.hours-table tr.today {
  background: rgba(255, 195, 36, 0.12);
  border-radius: var(--radius-sm);
}

.hours-table tr.today td {
  color: var(--castle-yellow);
  font-weight: 700;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 112, 186, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--castle-blue-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-item-text a:hover {
  color: var(--castle-blue-cyan);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box:not(.flyer-modal-box) {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 35px;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Brands Grid in Modal */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.brand-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 73, 144, 0.22);
  border-color: var(--castle-blue);
}

.brand-card img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.brand-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  margin-top: 6px;
  text-align: center;
}

/* Form in Modal */
.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 0.9rem;
}

.form-feedback.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--status-open);
  color: #86EFAC;
  line-height: 1.6;
}
.form-feedback a { color: #FFC324; font-weight: 700; }
.btn-copy-quote {
  background: #FFC324;
  color: #0a1628;
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .flyer-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.76rem;
  }
  .top-bar-container {
    justify-content: center;
    text-align: center;
  }
  .top-address {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .quick-info-grid {
    grid-template-columns: 1fr;
  }
  .dept-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}


/* Mobile Navigation Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 30px 24px;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

@media (max-width: 1200px) {
  .nav-brand-name {
    font-size: 0.98rem;
  }
  .nav-links a {
    padding: 6px 7px;
    font-size: 0.80rem;
  }
  .navbar .container {
    gap: 8px;
  }
}

@media (max-width: 1080px) {
  .btn-quote-header {
    display: none !important;
  }
  .nav-links a {
    padding: 6px 6px;
    font-size: 0.80rem;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .nav-castle-badge, .btn-quote-header, .nav-cta {
    display: none !important;
  }
  .nav-brand-sub {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  .nav-actions {
    gap: 8px !important;
  }
  .hero-badge {
    font-size: 0.90rem;
    padding: 8px 18px;
    gap: 10px;
  }
  .hero-badge .castle-logo-mini {
    height: 24px;
  }
}

@media (max-width: 480px) {
  .nav-brand-name {
    font-size: 0.88rem;
  }
}

/* ---------- "Visit us on Facebook" links ---------- */
.top-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #1877f2;
  transition: background 0.2s;
}
.top-fb-link:hover { background: #2d88ff; }
.top-fb-link svg { width: 14px; height: 14px; flex: none; }

.btn-facebook {
  background: #1877f2;
  color: #fff;
  border: none;
  gap: 8px;
}
.btn-facebook:hover { background: #2d88ff; color: #fff; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .top-fb-link span { display: none; }   /* icon only in the narrow top bar; the menu has the full button */
  .top-fb-link { padding: 4px 6px; }
}
