/* ========================================
   Opt-Me-In Design V2 — Rebuilt from Figma
   Colors: Teal #0c6478, Green #8dbb44, Light #ddecef
   Fonts: Poppins (headings), Roboto (body)
   ======================================== */

:root {
  --teal: #0c6478;
  --teal-dark: #094e5d;
  --green: #8dbb44;
  --green-hover: #7aa93a;
  --light-bg: #ddecef;
  --white: #ffffff;
  --dark: #111213;
  --body-text: #292929;
  --grey: #666666;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --container: 1280px;
  --container-wide: 1520px;
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-lg: 40px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.5rem; line-height: 1.2; }
h4 { font-size: 2rem; line-height: 1.3; }

p { font-size: 1rem; line-height: 1.5; color: var(--body-text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover {
  background: #8dbb44;
  color: var(--white);
  border-color: #8dbb44;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--teal);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: var(--transition);
}

/* Admin bar compensation — WP injects html{margin-top:32/46px} for logged-in
   users, but position:fixed elements ignore it. Push the navbar down so the
   admin toolbar isn't rendered on top of it. */
body.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
}

.navbar .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo img { height: 36px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* .navbar-menu is the UL that wp_nav_menu() emits (and that our fallback
   mirrors). The <li>/<a> structure is required for wp_nav_menu() admin
   editability, so desktop CSS targets the menu list explicitly. */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-menu > li { display: flex; align-items: center; }

.navbar-menu a {
  font-size: 1rem;
  color: var(--body-text);
  font-weight: 400;
  text-decoration: none;
}
.navbar-menu a:hover { color: var(--teal); }
.navbar-menu .current-menu-item > a { color: var(--teal); }

.navbar-menu .btn { font-size: 0.875rem; padding: 10px 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--dark);
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative;
  height: 760px;
  margin-top: 72px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 80px;
  text-align: center;
}

.hero-card {
  background: transparent;
  padding: 48px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.hero-card h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-card p {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.hero-curve img {
  width: 100%;
  display: block;
}

/* === Section Curved Divider === */
.curve-divider {
  width: 100%;
  display: block;
  margin-top: -3px;
  margin-bottom: -3px;
  position: relative;
  z-index: 2;
}

/* === Brands Strip === */
.brands-strip {
  background: var(--light-bg);
  padding: 40px 0 60px;
}

.brands-strip-header {
  text-align: center;
  margin-bottom: 24px;
}

.brands-strip-header h4 {
  font-size: 1.5rem;
  color: var(--dark);
}

.brands-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.brand-card {
  width: 207px;
  height: 104px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex: 0 0 auto;
  transition: var(--transition);
}

.brand-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.brand-card img {
  display: block;
  max-height: 58px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brands-strip-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* === About Section === */
.about-section {
  padding: 112px 0;
  background: var(--white);
  position: relative;
}

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

.about-content .tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-content .btn { margin-top: 8px; }

.about-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.about-image img {
  width: 100%;
  max-width: 760px;
}

/* === Transparency Section (teal bg) === */
.transparency-section {
  background: var(--teal);
  color: var(--white);
  padding: 112px 0;
  position: relative;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.transparency-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.transparency-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.transparency-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

/* === Your Data Section === */
.data-section {
  padding: 112px 0;
  background: var(--white);
  position: relative;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.data-content h2 { margin-bottom: 20px; }
.data-content p { margin-bottom: 16px; }

.data-image img {
  width: 100%;
  max-width: 760px;
}

/* === Your Rights Section === */
.rights-section {
  background: var(--light-bg);
  padding: 112px 0;
  position: relative;
}

.rights-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 48px;
}

.rights-header h2 { margin-bottom: 0; }
.rights-header p { font-size: 1rem; }

.rights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rights-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.rights-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rights-icon img {
  width: 52px;
  height: 52px;
}

.rights-expand {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rights-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.rights-card-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--body-text);
  margin-bottom: 8px;
}

.rights-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
}

/* === Mailing Brands === */
.mailing-section {
  padding: 112px 0;
  background: var(--white);
}

.mailing-section h3 {
  text-align: center;
  margin-bottom: 40px;
}

.mailing-conveyor {
  overflow: hidden;
  padding: 20px 0;
}

.mailing-track {
  display: flex;
  gap: 80px;
  animation: scroll-mailing 25s linear infinite;
  width: max-content;
}

.mailing-track:hover {
  animation-play-state: paused;
}

.mailing-track img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-mailing {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Footer === */
.footer {
  background: var(--light-bg);
  padding: 72px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo img { height: 36px; }
.footer-tagline { font-size: 0.875rem; color: var(--grey); margin: 0; max-width: 240px; line-height: 1.5; }

.footer-cols {
  display: flex;
  justify-content: flex-end;
  gap: 72px;
}
.footer-cols > .footer-col { min-width: 150px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
/* wp_nav_menu emits <ul><li>; kill the default list bullets + indent so the
   footer columns render as a clean text stack. Same for the legal strip. */
.footer-col ul, .footer-col li,
.footer-legal ul, .footer-legal li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 4px;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--grey);
  text-decoration: none;
}
.footer-col a:hover { color: var(--teal); }

/* legacy — kept in case any page still uses .footer-links */
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}
.footer-links a:hover { color: var(--teal); }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--teal-dark); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: var(--grey); text-decoration: none; }
.footer-legal a:hover { color: var(--teal); }

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--grey);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.875rem;
  color: var(--grey);
}
.footer-bottom-links a:hover { color: var(--teal); }

/* === Forms === */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 100, 120, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === Page Header (subpages) === */
.page-header {
  background: var(--teal);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.page-header-curve {
  width: 100%;
  display: block;
  margin-top: -3px;
  position: relative;
  z-index: 2;
}

/* === Responsive === */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }

  .hero { height: auto; min-height: 500px; }
  .hero-content { padding: 60px 0 100px; justify-content: center; }
  .hero-card { max-width: 100%; }
  .hero-card h1 { font-size: 2.5rem; }

  .about-grid, .transparency-grid, .data-grid { grid-template-columns: 1fr; }
  .rights-header { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-brand { align-items: flex-start; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; justify-content: stretch; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  /* Mobile navbar (hamburger drawer) lives in mobile.css to avoid rule
     duplication between s3.css and style.css fighting each other. */

  .hero-card h1 { font-size: 1.75rem; }
  .hero-card { padding: 32px; }

  .rights-grid { grid-template-columns: 1fr 1fr; }
  .brands-logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .brand-card { flex: 0 0 140px; height: 70px; }
  .brand-card img { max-height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .mailing-logos { gap: 24px; }
  .mailing-logos img { height: 60px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .rights-grid, .rc-grid { grid-template-columns: 1fr; }
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
