/* ==========================================================
   ReCoat Revolution October Promotion Terms Stylesheet
   - Authentic ReCoat branding with official logo
   - Multi-tier responsive dropdown navigation
   - Dedicated legal terms & conditions presentation
   ========================================================== */

:root {
  --color-navy-dark: #00244c;
  --color-navy-deep: #071f3a;
  --color-seafoam: #77c8b3;
  --color-seafoam-dark: #3aa68c;
  --color-seafoam-light: #eaf7f3;
  --color-seafoam-border: #bce9db;
  --color-pink: #e8004c;
  --color-pink-hover: #c90041;
  --color-pink-light: #fbe6ed;
  --color-text-main: #1f2937;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --color-bg-page: #f4f6f8;
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 36, 76, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 36, 76, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* ==========================================================
   1. Top Promotional / Utility Strip
   ========================================================== */
.utility-bar {
  background-color: var(--color-seafoam);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.utility-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-message {
  letter-spacing: 0.01em;
}

.utility-message strong {
  font-weight: 800;
  color: #001935;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.phone-link {
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.phone-prefix {
  font-weight: 500;
  opacity: 0.9;
}

.phone-link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 36, 76, 0.12);
  color: var(--color-navy-dark);
  transition: background-color 0.2s, transform 0.15s;
}

.social-btn:hover {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ==========================================================
   2. Main Header & Navigation with Dropdowns
   ========================================================== */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 220px;
  height: auto;
  max-height: 52px;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--color-pink);
}

.dropdown-chevron {
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .dropdown-chevron,
.nav-item.has-dropdown:focus-within .dropdown-chevron {
  transform: translateY(2px) rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
}

.nav-item.has-dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown:focus-within > .dropdown-menu,
.nav-item.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: var(--color-seafoam-light);
  color: var(--color-navy-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-quote {
  background-color: var(--color-pink);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(232, 0, 76, 0.3);
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-quote:hover {
  background-color: var(--color-pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 0, 76, 0.4);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-navy-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================
   3. Terms Page Content Layout
   ========================================================== */
.terms-page-main {
  padding: 3rem 1.25rem 5rem;
}

.terms-page-container {
  max-width: 940px;
  margin: 0 auto;
}

.terms-page-header {
  margin-bottom: 2rem;
}

.terms-breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terms-breadcrumbs a {
  color: var(--color-seafoam-dark);
  font-weight: 600;
}

.terms-breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-separator {
  color: #9ca3af;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Document Card */
.terms-document-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Summary Callout */
.terms-summary-callout {
  background-color: var(--color-seafoam-light);
  border-left: 4px solid var(--color-seafoam-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
}

.summary-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  margin-bottom: 0.5rem;
}

.terms-summary-callout p {
  font-size: 0.95rem;
  color: #1f3b33;
  margin-bottom: 0.75rem;
}

.summary-points {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: #1f3b33;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Clauses */
.terms-clause h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f1f5f9;
}

.terms-clause p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.terms-clause p strong {
  color: var(--color-navy-dark);
}

.terms-clause a {
  color: var(--color-seafoam-dark);
  text-decoration: underline;
}

.terms-clause ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
  color: #374151;
  font-size: 0.975rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Table */
.terms-table-wrapper {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.terms-table th {
  background-color: #f8fafc;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy-dark);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.terms-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}

.terms-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.badge-eligible {
  background-color: var(--color-seafoam-light);
  color: var(--color-seafoam-dark);
}

.badge-ineligible {
  background-color: #f1f5f9;
  color: #64748b;
}

/* ==========================================================
   4. Site Footer
   ========================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #9cb4cc;
  padding-top: 3.5rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand-logo img {
  filter: brightness(0) invert(1);
  width: 170px;
  height: auto;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.footer-phone-highlight {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
}

.footer-phone-highlight a {
  color: var(--color-seafoam);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #9cb4cc;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.25rem;
}

.footer-bottom-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8da2b5;
}

.footer-fineprint {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ==========================================================
   5. Responsive Breakpoints
   ========================================================== */
@media (max-width: 1024px) {
  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-list {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Drawer */
  .main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav.mobile-active .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .main-nav.mobile-active .nav-item {
    width: 100%;
  }

  .main-nav.mobile-active .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .main-nav.mobile-active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    margin-top: 0.25rem;
    display: none;
  }

  .main-nav.mobile-active .nav-item.is-open .dropdown-menu {
    display: block;
  }

  .terms-document-card {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 1.95rem;
  }
}

@media (max-width: 600px) {
  .utility-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .utility-contact {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo-img {
    width: 175px;
  }

  .phone-link {
    font-size: 0.775rem;
  }

  .btn-quote {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
