/* Harrison | Allison - Brand Styles */

/* ===== CSS Variables ===== */
:root {
  /* Background Colors */
  --bg-dark: #3b373b;
  --bg-navy: #1d2541;
  --bg-slate: #3c516c;
  --bg-light: #f6f5f3;

  /* Accent Colors */
  --accent-deep: #0e152c;
  --accent-warm: #787165;
  --accent-neutral: #4a4948;
  --accent-gold: #b9a271;

  /* Text Colors */
  --text-dark: #3b373b;
  --text-light: #fcc89e;

  /* CTA Color */
  --cta: #8c5833;
  --cta-hover: #a36840;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-family: 'Montserrat', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-sm);
}

.text-light {
  color: var(--text-light);
}

.text-gold {
  color: var(--accent-gold);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--bg-light);
}

.section--navy {
  background-color: var(--bg-navy);
  color: var(--bg-light);
}

.section--slate {
  background-color: var(--bg-slate);
  color: var(--bg-light);
}

.section--light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-navy);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--accent-deep);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo img,
.header__logo-img {
  height: 40px;
  width: auto;
  max-width: 280px;
}

.footer__logo img {
  height: 40px;
  width: auto;
  max-width: 250px;
}

.header__logo-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--bg-light);
  letter-spacing: 0.05em;
}

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

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__item {
  position: relative;
}

.nav__link {
  color: var(--bg-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-xs) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__link:hover {
  color: var(--accent-gold);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--bg-navy);
  border-radius: 4px;
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-xs) var(--space-md);
  color: var(--bg-light);
  font-size: var(--font-size-sm);
}

.nav__dropdown-link:hover {
  background-color: var(--bg-slate);
  color: var(--accent-gold);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--bg-light);
  transition: var(--transition);
}

/* Hamburger Menu (Desktop) */
.hamburger-menu {
  position: relative;
  margin-left: var(--space-sm);
}

.hamburger-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.hamburger-toggle:hover span {
  background-color: var(--accent-gold);
}

.hamburger-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--bg-light);
  transition: var(--transition);
}

/* Active state - transform to X */
.hamburger-dropdown.active + .hamburger-toggle span,
.hamburger-toggle.active span {
  background-color: var(--accent-gold);
}

.hamburger-dropdown.active ~ .hamburger-toggle span:nth-child(1),
.hamburger-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-dropdown.active ~ .hamburger-toggle span:nth-child(2),
.hamburger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-dropdown.active ~ .hamburger-toggle span:nth-child(3),
.hamburger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background-color: var(--bg-navy);
  border-radius: 8px;
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 1001;
}

.hamburger-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-link {
  display: block;
  padding: 0.75rem var(--space-md);
  color: var(--bg-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.hamburger-link:hover {
  background-color: var(--bg-slate);
  color: var(--accent-gold);
}

.hamburger-logo {
  padding: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-sm);
  text-align: center;
}

.hamburger-logo img {
  height: auto;
  width: 100%;
  max-width: 160px;
  opacity: 0.7;
}

/* Hide mobile-only items on desktop */
.mobile-only {
  display: none;
}

.hamburger-divider {
  display: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--cta);
  color: var(--bg-light);
}

.btn--primary:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(140, 88, 51, 0.4);
}

.btn--secondary {
  background-color: transparent;
  color: var(--bg-light);
  border: 2px solid var(--accent-gold);
}

.btn--secondary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-navy);
}

.btn--outline {
  background-color: transparent;
  color: var(--cta);
  border: 2px solid var(--cta);
}

.btn--outline:hover {
  background-color: var(--cta);
  color: var(--bg-light);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-slate) 50%, var(--bg-dark) 100%);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(185, 162, 113, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__tagline {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--bg-light);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ===== Stats Section ===== */
.stats {
  background-color: var(--accent-deep);
  padding: var(--space-lg) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stats__item {
  padding: var(--space-md);
}

.stats__number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.stats__label {
  font-size: var(--font-size-sm);
  color: var(--bg-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Services Section ===== */
.services__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services__title {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.services__subtitle {
  font-size: var(--font-size-lg);
  color: var(--accent-neutral);
  max-width: 600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--cta);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-slate));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--accent-gold);
}

.service-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.service-card__description {
  color: var(--accent-neutral);
  margin-bottom: var(--space-md);
}

.service-card__link {
  color: var(--cta);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card__link:hover {
  color: var(--cta-hover);
}

/* ===== Insights Section ===== */
.insights {
  background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
}

.insights__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
}

.insight-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.insight-card__image {
  height: 200px;
  background-color: var(--bg-slate);
  background-size: cover;
  background-position: center;
}

.insight-card__content {
  padding: var(--space-md);
}

.insight-card__meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--accent-warm);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.insight-card__excerpt {
  color: var(--accent-neutral);
  font-size: var(--font-size-sm);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.cta-section__title {
  color: var(--bg-light);
  margin-bottom: var(--space-sm);
}

.cta-section__subtitle {
  color: var(--text-light);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Testimonials ===== */
.testimonials {
  background-color: var(--bg-slate);
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.testimonials__title {
  color: var(--bg-light);
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
}

.testimonial-card__quote {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--bg-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--bg-light);
}

.testimonial-card__role {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* ===== Resources Section ===== */
.resources__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.resource-block {
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-slate));
  border-radius: 8px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.resource-block__title {
  font-size: var(--font-size-2xl);
  color: var(--bg-light);
  margin-bottom: var(--space-sm);
}

.resource-block__description {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--accent-deep);
  color: var(--bg-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  max-width: 350px;
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__description {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.footer__tagline-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(185, 162, 113, 0.15);
  border: 1px solid rgba(185, 162, 113, 0.3);
  border-radius: 100px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social a:hover {
  background-color: var(--cta);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__social svg path,
.footer__social svg rect,
.footer__social svg circle {
  fill: var(--bg-light);
}

.footer__social a:last-child {
  color: var(--bg-light);
}

.footer__social a:last-child svg {
  fill: none;
}

.footer__social a:last-child svg rect,
.footer__social a:last-child svg path {
  fill: none !important;
  stroke: var(--bg-light);
}

.footer__column h4 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--accent-gold);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.footer__links a:hover {
  color: var(--bg-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.footer__legal a:hover {
  color: var(--bg-light);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  border: 2px solid var(--accent-neutral);
  border-radius: 4px;
  background-color: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cta);
}

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

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--bg-light);
  font-family: inherit;
  font-size: var(--font-size-base);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form input:focus {
  border-color: var(--accent-gold);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: var(--space-md);
  }
}

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  /* Hide nav list on mobile, use hamburger menu only */
  .nav__list {
    display: none;
  }

  /* Show mobile-only items in hamburger dropdown */
  .mobile-only {
    display: block;
  }

  .hamburger-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--space-sm) var(--space-md);
  }

  /* Full-screen hamburger dropdown on mobile */
  .hamburger-dropdown {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    border-radius: 0;
    padding: var(--space-md) 0;
    overflow-y: auto;
  }

  .hamburger-link {
    padding: 1rem var(--space-lg);
    font-size: var(--font-size-base);
  }

  .hamburger-logo {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
  }

  .hero__cta {
    flex-direction: column;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .insights__grid {
    grid-template-columns: 1fr;
  }

  .resources__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
