/* ==========================================================================
   HITEC PHONE SYSTEMS - PRODUCTION STYLESHEET
   Brand Palette matched to logo.png: Vibrant Tech Blue, Metallic Slate, Action Orange
   ========================================================================== */

:root {
  --brand-blue: #0077cc;
  --brand-blue-bright: #0099ff;
  --brand-blue-dark: #005299;
  --brand-blue-light: #eef7ff;
  --brand-accent: #ff5722;
  --brand-accent-hover: #e64a19;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(0, 119, 204, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1220px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--slate-900);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p { margin-top: 0; margin-bottom: 1.1rem; color: var(--slate-600); }

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

.section { padding: 4.5rem 0; }
.section-alt { background-color: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-dark { background: linear-gradient(135deg, var(--slate-900) 0%, #0b2545 100%); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cbd5e1; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.max-w-700 { max-width: 720px; margin-left: auto; margin-right: auto; }
.badge-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  margin-bottom: 0.85rem;
}
.section-dark .badge-pill {
  background: rgba(0, 153, 255, 0.2);
  color: #7dd3fc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.btn-primary:hover { background: var(--brand-accent-hover); color: var(--white); }
.btn-blue {
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 119, 204, 0.25);
}
.btn-blue:hover { background: var(--brand-blue-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.btn-outline:hover { background: var(--brand-blue); color: var(--white); }
.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover { background: var(--white); color: var(--slate-900); }
.btn-block { width: 100%; }

/* Top Utility Bar */
.top-bar {
  background: var(--slate-900);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-items { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.top-bar a { color: #7dd3fc; font-weight: 600; }
.top-bar a:hover { color: var(--white); }

/* Sticky Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}
.brand-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.main-nav a {
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
  font-size: 0.98rem;
}
.phone-pill:hover { background: var(--brand-blue); color: var(--white); }

.mobile-menu-toggle {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--slate-900);
}

/* Hero Section */
.hero {
  background: linear-gradient(125deg, #f0f8ff 0%, #ffffff 55%, #eef6ff 100%);
  padding: 3.75rem 0 4.5rem;
  border-bottom: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--slate-700);
  margin-bottom: 1.6rem;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
}
.trust-icon {
  color: var(--brand-blue);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Lead Capture Card */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #dbeafe;
  position: relative;
}
.quote-card-header {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--white);
  margin: -2rem -2rem 1.5rem -2rem;
  padding: 1.35rem 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.quote-card-header h2, .quote-card-header h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}
.quote-card-header p {
  color: #e0f2fe;
  font-size: 0.9rem;
  margin-bottom: 0;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-group { margin-bottom: 0.95rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 0.3rem;
}
.form-control {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--slate-900);
  background: var(--slate-50);
  transition: border-color 0.2s, background 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.14);
}
.hp-field { display: none !important; visibility: hidden !important; }
.form-privacy {
  font-size: 0.78rem;
  color: var(--slate-600);
  text-align: center;
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.form-alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}
.form-alert.success { display: block; background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-alert.error { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-featured {
  border: 2px solid var(--brand-blue);
  position: relative;
}
.card-ribbon {
  position: absolute;
  top: -13px;
  right: 1.25rem;
  background: var(--brand-accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-tag {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin: 0.75rem 0;
}
.price-tag span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
  color: var(--slate-700);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue);
  font-weight: 900;
}
.card .btn { margin-top: auto; }

.img-rounded {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.compare-table thead th {
  background: var(--slate-900);
  color: var(--white);
  font-weight: 700;
}
.compare-table thead th.highlight-col {
  background: var(--brand-blue);
}
.compare-table tbody tr:nth-child(even) { background: var(--slate-50); }
.compare-table td:first-child { font-weight: 700; color: var(--slate-900); }

/* Suburb Directory (Brisbane Local SEO) */
.suburb-search-bar {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.suburb-search-bar input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--brand-blue);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.region-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.region-card h3 {
  color: var(--brand-blue-dark);
  border-bottom: 2px solid var(--brand-blue-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.suburb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.suburb-tag {
  background: var(--slate-100);
  color: var(--slate-800);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--slate-200);
}
.suburb-tag.hidden { display: none; }

/* Accordion FAQ */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--brand-blue); }
.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--slate-600);
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.35rem; color: var(--brand-blue); transition: transform 0.2s; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-banner p { color: #e0f2fe; margin-bottom: 0; font-size: 1.08rem; }
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}
.footer-logo-wrap {
  background: var(--white);
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.footer-logo-wrap img { height: 48px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #7dd3fc; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Sticky Mobile Call Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--slate-900);
  padding: 0.6rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .mobile-menu-toggle { display: inline-block; }
  .header-cta .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { padding-bottom: 64px; }
  .mobile-sticky-bar { display: grid; }
  .form-grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .cta-banner { padding: 2rem 1.5rem; }
}
