/* ==========================================================================
   MayMaria Consulting
   Clean, professional one-page site for US & Canada businesses
   Brand palette: Navy #0B1F3A · Royal #2563EB · Emerald #10B981
   ========================================================================== */

:root {
  --navy-950: #071526;
  --navy-900: #0b1f3a;
  --navy-800: #16365c;
  --navy-700: #1e4a78;
  --royal: #2563eb;
  --royal-hover: #1d4ed8;
  --emerald: #10b981;
  --emerald-soft: #d1fae5;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --teal-600: #10b981;
  --teal-500: #34d399;
  --teal-100: #d1fae5;
  --gold-500: #c9a227;
  --error: #b91c1c;
  --success: #047857;

  --font-sans: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--navy-800);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 960px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-900);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--navy-900);
}

.brand:hover .brand-name {
  color: var(--royal);
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  transition: color 0.2s var(--ease);
}

.brand-suffix {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}

.footer-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  border-radius: 9px;
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-suffix {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

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

.nav-list a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--navy-900);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.55rem 1.1rem !important;
  background: var(--navy-900);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--royal);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--navy-950);
  color: var(--slate-100);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(30, 74, 120, 0.45), transparent 50%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #0c2038 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-100);
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  color: var(--white);
  margin-bottom: 0.35em;
  font-weight: 700;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-style: italic;
  color: #93c5fd;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--slate-400);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--royal-hover);
  border-color: var(--royal-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.section h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-lead {
  color: var(--slate-600);
  font-size: 1.08rem;
}

/* About */
.about {
  background: var(--slate-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-copy p {
  color: var(--slate-600);
  font-size: 1.05rem;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-card ul {
  display: grid;
  gap: 0.75rem;
}

.about-card li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--slate-600);
  font-size: 0.98rem;
  line-height: 1.45;
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-600);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-wide {
  grid-column: span 1;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-100), var(--slate-100));
  color: var(--navy-800);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--slate-600);
  font-size: 0.98rem;
  margin: 0;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--slate-200);
}

.testimonials .section-label {
  color: var(--teal-500);
}

.testimonials h2 {
  color: var(--white);
}

.testimonials .section-lead {
  color: var(--slate-400);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.75rem 1.6rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--teal-500);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--slate-200);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.testimonial-card footer cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-card footer strong {
  color: var(--white);
  font-size: 0.98rem;
}

.testimonial-card footer span {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Contact */
.contact {
  background: var(--slate-50);
}

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

.contact-info p {
  color: var(--slate-600);
  max-width: 36rem;
}

.contact-highlights {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.98rem;
}

.contact-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--teal-600);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.req {
  color: var(--teal-600);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--slate-400);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal-600);
  box-shadow: var(--focus);
}

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

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--error);
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.form-status.is-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.form-fineprint {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Legal pages (Privacy, Refund)
   -------------------------------------------------------------------------- */
.legal-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0.5rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.legal-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.narrow-legal {
  width: min(100% - 2.5rem, 740px);
  margin-inline: auto;
}

.legal-content {
  padding-top: 2.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--navy-800);
}

.legal-content p,
.legal-content li {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-cross {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 2.75rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-title {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.footer-tag {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--slate-300, #cbd5e1);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-meta {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: grid;
  gap: 0.35rem;
}

.footer-meta p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav-list a:hover {
    background: var(--slate-50);
  }

  .nav-cta {
    justify-content: center !important;
    margin-top: 0.35rem;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container,
  .container.narrow,
  .header-inner {
    width: min(100% - 1.5rem, var(--wrap));
  }

  .contact-form {
    padding: 1.35rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print: keep content clean */
@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .contact-form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero,
  .testimonials,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .testimonials h2,
  .testimonial-card p,
  .footer-title {
    color: #000 !important;
  }
}
