/* ============================================
   ThriftyWeb Brand Overrides — V2 Guidelines
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0F1E35;
  --navy-light:  #162132;
  --teal:        #00C2A8;
  --teal-hover:  #00d4b8;
  --gold:        #E8A020;
  --warm-white:  #FAFAF8;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: rgba(15,30,53,0.08);
  --text-light:  #4A6080;
  --text-dark:   rgba(255,255,255,0.55);
  --text-muted:  #8AA0B8;

  /* Bootstrap overrides */
  --blue: #00C2A8;
  --primary: #0F1E35;
  --success: #00C2A8;
  --info: #0F1E35;
  --dark: #0F1E35;
  --light: #FAFAF8;
  --secondary: #162132;
  --gray: #8AA0B8;
  --gray-dark: #0F1E35;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: 'DM Sans', sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ── Base Typography ── */
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
  background-color: var(--warm-white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.04em;
}

h5, h6, .h5, .h6 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display-1, .display-2, .display-3, .display-4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
}

p, .lead {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: var(--teal);
  transition: all 0.3s ease;
}
a:hover {
  color: var(--teal-hover);
  text-decoration: none;
}

/* ── Section Labels ── */
.section-header small,
header.section-header small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

/* ── Logo Styling ── */
.navbar-brand .thrifty-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.navbar-brand .thrifty-logo .thrifty {
  color: #ffffff;
}
.navbar-brand .thrifty-logo .web {
  color: var(--teal);
}
.navbar-brand .thrifty-logo .dot {
  color: var(--teal);
}

/* ── Buttons ── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  text-transform: none !important;
  transition: all 0.3s ease;
}

/* Primary — Teal bg, Navy text */
.btn-primary,
.btn-success {
  background: var(--teal);
  border: 1.5px solid var(--teal);
  color: var(--navy) !important;
  font-weight: 500;
}
.btn-primary:hover,
.btn-success:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--navy) !important;
  transform: scale(1.02);
}

/* Secondary — Transparent + Teal border */
.btn-outline-primary,
.btn-outline-success {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal) !important;
  font-weight: 500;
}
.btn-outline-primary:hover,
.btn-outline-success:hover {
  background: var(--teal);
  color: var(--navy) !important;
  transform: scale(1.02);
}

/* Ghost style — no border, right arrow */
.btn-ghost {
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.75rem;
}
.btn-ghost::after {
  content: " →";
  opacity: 0;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  color: #ffffff;
}
.btn-ghost:hover::after {
  opacity: 1;
  margin-left: 4px;
}

/* ── Card Styling ── */
.card {
  background: var(--warm-white);
  border: 1px solid var(--border-light) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(15,30,53,0.08);
}

/* Cards on dark sections */
[class*="bg-dark"] .card,
[class*="bg-primary"] .card,
.bg-navy .card {
  background: var(--navy-light);
  border: 1px solid var(--border-dark) !important;
}

/* ── Section Background Styles ── */
.bg-gray,
.bg-light {
  background-color: var(--warm-white) !important;
}

.bg-primary,
.bg-dark {
  background-color: var(--navy) !important;
}

/* Navy sections get grain */
.bg-navy {
  background-color: var(--navy) !important;
}

/* ── Text Colour Overrides ── */
.text-muted {
  color: var(--text-muted) !important;
}

.text-lighter {
  color: var(--text-dark) !important;
}

.text-success {
  color: var(--teal) !important;
}

.text-primary {
  color: var(--navy) !important;
}

/* ── Dividers (sparse teal accent) ── */
hr {
  border: none;
  height: 2px;
  background: var(--teal);
  width: 3rem;
  margin: 1.5rem 0;
  opacity: 1;
}

.section-header hr {
  margin: 1.5rem auto;
}

/* ── Navbar ── */
.navbar-dark {
  background-color: var(--navy) !important;
  border-bottom: 1px solid var(--border-dark);
}

.navbar-dark .nav-link {
  color: rgba(255,255,255,0.55) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.navbar-dark .nav-link:hover {
  color: var(--teal) !important;
}

/* ── Pricing Tables ── */
.pricing-1 {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
}
.pricing-1:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(15,30,53,0.08);
}
.pricing-1.popular {
  border: 2px solid var(--teal);
  position: relative;
}
.pricing-1 .plan-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.pricing-1 .price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.pricing-1 .price-unit {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--text-muted);
}

/* ── Partner Logos ── */
.partner img {
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.3s ease;
}
.partner img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ── Footer ── */
.footer {
  background-color: var(--navy) !important;
  color: var(--text-dark);
}
.footer h6 {
  color: #ffffff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer a.nav-link {
  color: rgba(255,255,255,0.55) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  padding: 0.2rem 0;
}
.footer a.nav-link:hover {
  color: var(--teal) !important;
}
.footer .btn-primary {
  background: var(--teal);
  border: 1.5px solid var(--teal);
  color: var(--navy) !important;
}
.footer .btn-secondary {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal) !important;
}

/* ── CTA Dialog ── */
.section-dialog {
  background: var(--navy) !important;
  border-radius: 20px;
  padding: 50px;
  border: 1px solid var(--border-dark);
}
.section-dialog h4 {
  color: #ffffff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ── Input Styling ── */
.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  border-radius: 8px;
}
.form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(0,194,168,0.25);
  color: #ffffff;
}
.form-control::placeholder {
  color: rgba(255,255,255,0.35);
}

/* ── Scroll Top ── */
.scroll-top {
  background: var(--teal) !important;
  border: none;
  color: var(--navy) !important;
  border-radius: 50% !important;
}
.scroll-top:hover {
  background: var(--teal-hover) !important;
  transform: scale(1.1);
}

/* ── Pricing Toggle ── */
.btn-group-toggle .btn {
  border-radius: 8px !important;
}
.btn-group-toggle .btn.active {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: var(--navy) !important;
}
.btn-outline-dark {
  border-color: var(--border-light) !important;
  color: var(--text-light) !important;
}
.btn-outline-dark:hover,
.btn-outline-dark.active {
  background: var(--teal) !important;
  color: var(--navy) !important;
  border-color: var(--teal) !important;
}

/* ── FAQ Section ── */
#section-faq h5 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
#section-faq p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ── Video wrapper ── */
.video-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,30,53,0.08);
}
.video-wrapper .btn-circle {
  background: var(--teal) !important;
  border: none;
  color: var(--navy) !important;
}

/* ── Shadow overrides ── */
.shadow-6 {
  box-shadow: 0 20px 60px rgba(15,30,53,0.08) !important;
}

/* ── Border radius fixes ── */
.rounded {
  border-radius: 20px !important;
}

/* ── Grain texture for navy sections ── */
.has-grain {
  position: relative;
}
.has-grain::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.has-grain > * {
  position: relative;
  z-index: 1;
}
