/* ========================================
   Tivera Group LLC — Global Stylesheet
   ======================================== */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2b4a;
  --navy-light: #243556;
  --navy-dark: #111d33;
  --gold: #c0392b;
  --gold-light: #e74c3c;
  --gold-dark: #a93226;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #e8eaee;
  --gray-200: #d1d5db;
  --gray-300: #9ca3af;
  --gray-400: #6b7280;
  --gray-500: #4b5563;
  --text: #1f2937;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  height: 72px;
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--gold);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 0.25rem 0;
}

.header__link:hover,
.header__link.active {
  color: var(--white);
}

.header__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .header__nav.open {
    transform: translateY(0);
  }

  .header__link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--off-white);
}

.section__label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 640px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header .section__desc {
  margin: 0 auto;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.25s;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(26, 43, 74, 0.08);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 1.3rem;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card__text {
  font-size: 0.93rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* --- Trust / Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-box {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2rem 1.5rem;
}

.stat-box__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.stat-box__label {
  font-size: 0.95rem;
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}

/* --- About Page --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 1.75rem 1rem;
  transition: border-color 0.2s;
}

.value-card:hover {
  border-color: var(--gold);
}

.value-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 700px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Services Detail Page --- */
.service-detail {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.service-detail__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-detail__title span {
  font-size: 1.4rem;
}

.service-detail__desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-detail ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.service-detail ul li {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.service-detail__disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-300);
  font-style: italic;
  background: var(--off-white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.3rem;
  display: none;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-consent label {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.form-consent label a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.form-consent.error label {
  color: #dc2626;
}

.contact-info {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 10px;
  padding: 2.5rem;
  color: var(--white);
}

.contact-info__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-info__value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info__value a {
  color: var(--gold-light);
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: #16a34a;
}

.form-success__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-success__text {
  font-size: 0.95rem;
  color: var(--gray-400);
}

/* --- Legal / Policy Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--navy);
}

/* --- SMS Disclosures --- */
.campaign-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.campaign-card__number {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.campaign-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.campaign-card table {
  width: 100%;
  border-collapse: collapse;
}

.campaign-card table tr {
  border-bottom: 1px solid var(--gray-100);
}

.campaign-card table tr:last-child {
  border-bottom: none;
}

.campaign-card table td {
  padding: 0.75rem 0;
  font-size: 0.93rem;
  color: var(--gray-500);
  vertical-align: top;
  line-height: 1.6;
}

.campaign-card table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 160px;
  padding-right: 1rem;
  white-space: nowrap;
}

.campaign-card__disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-300);
  font-style: italic;
  background: var(--off-white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

@media (max-width: 600px) {
  .campaign-card table td:first-child {
    width: 120px;
    white-space: normal;
  }
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand-name span {
  color: var(--gold);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--gold);
}

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

.footer__sms p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 900px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
