/*
 * D & B Garage Doors — Shared “SteelGate-style” shell for inner pages
 * Load AFTER /css/style.css and /css/tailwind.min.css
 */

:root {
  --accent: #fb923c;
  --accent-solid: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --bg: #0a0a0f;
  --bg-card: #111118;
  --text-muted-nav: rgba(255, 255, 255, 0.45);
  --border-mid: rgba(255, 255, 255, 0.12);
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius-pill: 999px;

  /* Overrides for legacy Liquid Glass tokens (see style.css) */
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-dark: #ea580c;
  --surface: #0a0a0f;
  --surface-raised: #111118;
  --surface-glass: rgba(17, 17, 24, 0.82);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body) !important;
  background: var(--surface) !important;
  color: var(--text-primary) !important;
}

body.font-sans {
  font-family: var(--font-body) !important;
}

.font-bold.text-sm.tracking-tight:first-line,
article h1,
article h2,
main h1,
main h2 {
  font-family: var(--font-display);
}

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  z-index: 100;
}

.site-nav .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.site-nav .nav-logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav .nav-logo-text strong {
  display: block;
  line-height: 1.15;
}

.site-nav .nav-logo-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted-nav);
  letter-spacing: 0;
}

.site-nav .nav-logo span.highlight {
  color: #f97316;
}

.site-nav .nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  font-size: 13px;
  color: var(--text-muted-nav);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav .nav-links a:hover {
  color: #fff;
}

.site-nav .nav-cta {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav .nav-cta:hover {
  opacity: 0.88;
}

@media (max-width: 900px) {
  .site-nav {
    padding: 10px 14px;
    width: calc(100% - 28px);
  }
  .site-nav .nav-links {
    display: none;
  }
}

/* Dark glass cards on inner pages */
.glass-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(17, 17, 24, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card--gloss {
  background: linear-gradient(
    145deg,
    rgba(34, 34, 44, 0.95) 0%,
    rgba(17, 17, 24, 0.88) 50%,
    rgba(249, 115, 22, 0.06) 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 48px -12px rgba(0, 0, 0, 0.55) !important;
}

.gradient-text {
  background-image: linear-gradient(135deg, #f97316, #fb923c, #ea580c, #f97316) !important;
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-input {
  background: rgba(10, 10, 15, 0.9) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-input:focus {
  border-color: rgba(249, 115, 22, 0.55) !important;
  box-shadow: var(--ring) !important;
}

/* Gradients on buttons (Tailwind from-primary) */
.from-primary,
.to-primary-dark {
  --tw-gradient-from: #f97316 var(--tw-gradient-from-position);
  --tw-gradient-to: #ea580c var(--tw-gradient-to-position);
}

.bg-gradient-to-r.from-primary.to-primary-dark,
a.bg-gradient-to-r.from-primary {
  background-image: linear-gradient(to right, #f97316, #ea580c) !important;
}

.text-primary-light {
  color: #fb923c !important;
}

.text-primary {
  color: #f97316 !important;
}

.border-primary\/30,
.hover\:border-primary\/30:hover {
  border-color: rgba(249, 115, 22, 0.35) !important;
}

.ring-primary {
  --tw-ring-color: rgba(249, 115, 22, 0.45);
}

.focus\:ring-primary:focus {
  --tw-ring-color: rgba(249, 115, 22, 0.45);
}

.mobile-bar {
  background: rgba(10, 10, 15, 0.92) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-bar a {
  border-radius: 999px !important;
  background: linear-gradient(to right, #f97316, #ea580c) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.25);
}

.site-footer-dark {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 36px 24px;
  background: var(--bg);
}

.site-footer-dark .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer-dark .footer-logo-line {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  text-decoration: none;
}

.site-footer-dark .footer-logo-line span.highlight {
  color: #f97316;
}

.site-footer-dark .footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 6px;
  max-width: 320px;
}

.site-footer-dark .footer-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer-dark .footer-email a {
  color: #f97316;
  text-decoration: none;
}

.site-footer-dark .footer-email a:hover {
  text-decoration: underline;
}

.site-footer-dark .footer-google {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.site-footer-dark .footer-google a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer-dark .footer-google a:hover {
  color: #f97316;
}

.google-map-frame {
  min-height: 220px;
  background: #111118;
}

.google-map-frame iframe,
iframe.js-google-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.google-feature-card {
  border: 2px solid rgba(249, 115, 22, 0.45) !important;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(249, 115, 22, 0.12), transparent 50%),
    rgba(17, 17, 24, 0.95) !important;
  box-shadow: 0 0 48px rgba(249, 115, 22, 0.12);
}

.google-feature-card h2 {
  font-size: 1.35rem !important;
}

.google-feature-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.google-feature-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 160px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.google-feature-cta a:hover {
  transform: translateY(-1px);
}

.google-feature-cta .btn-google-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.google-feature-cta .btn-google-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.google-strip {
  margin: 0 auto 2rem;
  max-width: 72rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.google-strip strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.google-strip span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.google-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3);
}

.site-footer-dark .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-footer-dark .footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-dark .footer-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .site-footer-dark .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

#top {
  background-image: none !important;
}

/* Tailwind custom color names used across inner pages */
.text-text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

.text-text-primary {
  color: #ffffff !important;
}

.ring-offset-surface {
  --tw-ring-offset-color: #0a0a0f !important;
}
