/* ============================================================
   MILLER & ASSOCIATES, INC. — Data-Centric Agency Hub
   Colors: Deep Teal #0B4F6C | Copper #C87A2C | Cream #F5F0E8
============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #F5F0E8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #0B4F6C;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #C87A2C;
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid #C87A2C;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #0B4F6C;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); }

p { margin-bottom: 1.25rem; }

.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #C87A2C;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- Utility ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Navigation ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0B4F6C;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #F5F0E8;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  color: #F5F0E8;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: #F5F0E8;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  color: #C87A2C;
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #F5F0E8;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Split ------------------------------------------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  margin-top: 70px;
}

.hero-left {
  background: #0B4F6C;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.hero-left-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: #C87A2C;
  color: #F5F0E8;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-left h1 {
  color: #F5F0E8;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

.hero-left h1 span {
  color: #C87A2C;
}

.hero-left p {
  color: #d4d4d4;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #C87A2C;
  color: #F5F0E8;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #a5631f;
  color: #F5F0E8;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-right {
  background: #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  overflow: hidden;
  position: relative;
}

.hero-right::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(11, 79, 108, 0.1);
  border-radius: 50%;
}

.hero-right::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(200, 122, 44, 0.12);
  border-radius: 50%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.metric-card {
  background: #FFFFFF;
  border: 2px solid #0B4F6C;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 4px 4px 0px rgba(11, 79, 108, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:nth-child(2) {
  border-color: #C87A2C;
  box-shadow: 4px 4px 0px rgba(200, 122, 44, 0.25);
}

.metric-card:nth-child(4) {
  border-color: #C87A2C;
  box-shadow: 4px 4px 0px rgba(200, 122, 44, 0.25);
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0B4F6C;
  line-height: 1.1;
}

.metric-number[data-target] {
  transition: none;
}

.metric-number.copper {
  color: #C87A2C;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Counter Bar ------------------------------------------ */
.counter-bar {
  background: #0B4F6C;
  padding: 3rem 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item {
  padding: 1rem;
}

.counter-value {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: #C87A2C;
  line-height: 1.2;
}

.counter-desc {
  display: block;
  font-size: 0.95rem;
  color: #F5F0E8;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* --- Capability Matrix ------------------------------------ */
.capability-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

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

.matrix-header h2 {
  color: #0B4F6C;
  margin-bottom: 0.75rem;
}

.matrix-header p {
  color: #555;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.matrix-cell {
  background: #F5F0E8;
  border-left: 4px solid #0B4F6C;
  padding: 2rem 1.5rem;
  border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.matrix-cell:nth-child(even) {
  border-left-color: #C87A2C;
}

.matrix-cell:hover {
  background: #edebe3;
}

.matrix-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.matrix-cell h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #0B4F6C;
}

.matrix-cell p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0;
}

/* --- Services Section ------------------------------------- */
.services-section {
  padding: 5rem 0;
  background: #F5F0E8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* --- About / Why Us --------------------------------------- */
.about-section {
  padding: 5rem 0;
  background: #0B4F6C;
  color: #F5F0E8;
}

.about-section .section-title {
  color: #F5F0E8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: #C87A2C;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.about-text p {
  color: #d4d4d4;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.about-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #C87A2C;
}

.about-stat-label {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 0.35rem;
}

/* --- Clients / Trusted By -------------------------------- */
.clients-section {
  padding: 3rem 0;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.clients-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.clients-label {
  font-weight: 700;
  color: #0B4F6C;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.client-logo-placeholder {
  font-weight: 800;
  color: #999;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

/* --- Contact / CTA ---------------------------------------- */
.contact-section {
  padding: 5rem 0;
  background: #F5F0E8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: #555;
  margin-bottom: 1.5rem;
}

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

.contact-detail strong {
  display: block;
  color: #0B4F6C;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.contact-detail span {
  color: #555;
}

.contact-form-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  color: #0B4F6C;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #F5F0E8;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0B4F6C;
  background: #FFFFFF;
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0B4F6C;
  color: #F5F0E8;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: #083b50;
  outline-offset: 2px;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: #0B4F6C;
  color: #d4d4d4;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #bbb;
  margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
  color: #F5F0E8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bbb;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #C87A2C;
}

.footer-contact address {
  font-style: normal;
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #999;
}

/* --- Policy Pages ----------------------------------------- */
.policy-page {
  padding: 6rem 0 4rem;
  margin-top: 70px;
  background: #FFFFFF;
}

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

.policy-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.policy-meta {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.policy-content section {
  margin-bottom: 2.5rem;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: #0B4F6C;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C87A2C;
}

.policy-content h3 {
  font-size: 1.15rem;
  color: #C87A2C;
  margin: 1.5rem 0 0.75rem;
}

.policy-content p {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.policy-content ul,
.policy-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: #333;
}

.policy-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.policy-content strong {
  color: #0B4F6C;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 3rem 2rem;
  }

  .hero-right {
    padding: 2rem 2rem 3rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }

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

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

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

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

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

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0B4F6C;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

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

  .nav-links a {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

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

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

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

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .metric-card {
    padding: 1.25rem 1rem;
  }

  .metric-number {
    font-size: 2rem;
  }

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

  .clients-section .container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 2.5rem 1.5rem;
  }

  .hero-right {
    padding: 2rem 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}

/* --- Reduced Motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
