/* =============================================================================
   GLOBAL BEVERAGE B2B — CORE STYLESHEET
   Native CSS3 only. No preprocessors, no frameworks.
   Structure:
     1. Design Tokens (:root)
     2. Modern CSS Reset
     3. Base Typography
     4. Layout Utilities (.container / .section-title)
     5. Buttons
     6. Header / Navigation / Mobile Drawer
     7. Hero Section & Trust Metric Bar
     8. Product / Packaging Showcase
     9. Multi-Office Tab Hub
    10. Lead Capture Form
    11. Form Validation States
    12. Floating WhatsApp CTA
    13. Footer / Offices
    14. Scroll-Triggered Entrance Animations
    15. Accessibility Focus Styles
    16. Keyframe Animations
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg-dark: #0F172A;
  --color-bg-light: #F8FAFC;
  --color-surface: #1E293B;
  --color-accent: #F59E0B; /* High-energy Gold/Amber */
  --color-accent-hover: #D97706;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #F8FAFC;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE57;
  --color-border: #E2E8F0;
  --color-error: #EF4444;
  --color-success: #16A34A;

  /* Typography */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-hero: clamp(2.5rem, 5vw, 4.2rem);
  --font-size-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --font-size-body: 1rem;

  /* Spacing & Layout */
  --container-width: 1240px;
  --container-padding: 1.5rem;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Animations & Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Derived layout tokens */
  --header-height: 84px;
}

/* -----------------------------------------------------------------------
   2. MODERN CSS RESET
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body.no-scroll {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#page {
  isolation: isolate;
}

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

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  z-index: 100000;
  clip: auto;
}

/* -----------------------------------------------------------------------
   3. BASE TYPOGRAPHY
   ----------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

h1 {
  font-size: var(--font-size-hero);
}

h2 {
  font-size: var(--font-size-h2);
}

/* -----------------------------------------------------------------------
   4. LAYOUT UTILITIES
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

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

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.section-subtitle--light {
  color: rgba(248, 250, 252, 0.75);
}

/* -----------------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

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

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* -----------------------------------------------------------------------
   6. HEADER / NAVIGATION / MOBILE DRAWER
   ----------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-dark);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.site-branding a,
.site-title-link {
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1.25rem;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-navigation .primary-menu {
  display: flex;
  gap: 1.75rem;
}

.main-navigation .primary-menu a {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.main-navigation .primary-menu a:hover,
.main-navigation .primary-menu a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.mobile-nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  max-width: 100vw;
  background-color: var(--color-surface);
  padding: calc(var(--header-height) + 1.5rem) 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 1001;
  overflow-y: auto;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.mobile-drawer__nav .mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer__nav .mobile-menu a {
  display: block;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.mobile-drawer__nav .mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
}

.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  z-index: 1000;
}

.mobile-drawer__overlay.is-active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .main-navigation {
    display: none;
  }

  .site-header__cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

/* -----------------------------------------------------------------------
   7. HERO SECTION & TRUST METRIC BAR
   ----------------------------------------------------------------------- */
.hero {
  background-color: var(--color-bg-dark);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero__content {
  max-width: 780px;
  animation: heroFadeIn var(--transition-smooth) both;
  animation-duration: 0.8s;
}

.hero__headline {
  font-size: var(--font-size-hero);
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.hero__subheadline {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: heroFadeIn var(--transition-smooth) both;
  animation-duration: 1s;
  animation-delay: 0.15s;
}

.metric-bar {
  background-color: var(--color-surface);
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}

.metric-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: rgba(248, 250, 252, 0.08);
}

.metric-card {
  background-color: var(--color-surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.metric-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

@media (min-width: 600px) {
  .metric-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metric-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -----------------------------------------------------------------------
   8. PRODUCT / PACKAGING SHOWCASE
   ----------------------------------------------------------------------- */
.products-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background-color: var(--color-bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.product-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.product-card__badge {
  align-self: flex-start;
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.product-card__title {
  font-size: 1.35rem;
}

.product-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.product-card__specs li {
  padding-left: 1.1rem;
  position: relative;
}

.product-card__specs li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent-hover);
  font-weight: 700;
}

.product-card__cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-accent-hover);
  padding-top: 0.5rem;
}

.product-card__cta:hover {
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------------------------------------------------------
   9. MULTI-OFFICE TAB HUB
   ----------------------------------------------------------------------- */
.offices-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background-color: var(--color-surface);
  color: var(--color-text-light);
}

.offices-section .section-title {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.office-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.office-tab {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background-color: transparent;
  border: 1px solid rgba(248, 250, 252, 0.2);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.office-tab:hover {
  border-color: var(--color-accent);
}

.office-tab.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.office-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.office-panel.is-active {
  display: grid;
}

.office-panel__title {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.office-panel__row {
  margin-bottom: 0.6rem;
  color: rgba(248, 250, 252, 0.85);
}

.office-panel__label {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.4rem;
}

.office-panel__details .btn {
  margin-top: 1rem;
}

.office-panel__map iframe {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  border: 0;
}

@media (min-width: 900px) {
  .office-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* -----------------------------------------------------------------------
   10. LEAD CAPTURE FORM
   ----------------------------------------------------------------------- */
.lead-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background-color: var(--color-bg-dark);
}

.lead-section__inner {
  max-width: 860px;
}

.lead-section__intro {
  margin-bottom: 2.5rem;
}

.lead-form {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Honeypot: visually hidden via CSS rather than type="hidden" so basic
   bots that skip hidden inputs still fall into the trap. */
.b2b-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.form-field .required {
  color: var(--color-accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  background-color: var(--color-bg-dark);
  border: 1px solid rgba(248, 250, 252, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--color-text-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.form-response-message {
  display: none;
  margin-top: 1.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-response-message.is-visible {
  display: block;
}

.form-response-message.is-success {
  background-color: rgba(22, 163, 74, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.form-response-message.is-error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.lead-form__submit {
  margin-top: 1.75rem;
  width: 100%;
  position: relative;
}

.lead-form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  border-top-color: var(--color-bg-dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.lead-form__submit.is-loading .lead-form__submit-label {
  opacity: 0.6;
}

.lead-form__submit.is-loading .lead-form__spinner {
  display: inline-block;
}

@media (min-width: 640px) {
  .lead-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -----------------------------------------------------------------------
   11. FORM VALIDATION STATES
   ----------------------------------------------------------------------- */

/* High-contrast alert border for invalid fields (Task 4.1). */
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}

/* Inline helper text below an invalid field, smoothly revealed. */
.field-error-message {
  display: block;
  min-height: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-error);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast), max-height var(--transition-fast);
}

.field-error-message:not(:empty) {
  opacity: 1;
  max-height: 2rem;
  margin-top: 0.15rem;
}

/* -----------------------------------------------------------------------
   12. FLOATING WHATSAPP CTA
   ----------------------------------------------------------------------- */
.floating-whatsapp-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-whatsapp);
  color: var(--color-text-light);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  animation: pulse 2s infinite;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.floating-whatsapp-cta:hover,
.floating-whatsapp-cta:focus-visible {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.08);
}

.floating-whatsapp-cta__icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 600px) {
  .floating-whatsapp-cta {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .floating-whatsapp-cta__icon {
    width: 26px;
    height: 26px;
  }
}

/* -----------------------------------------------------------------------
   13. FOOTER / OFFICES
   ----------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-surface);
  color: var(--color-text-light);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.footer-block__title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer-contact-item {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.footer-contact-item__label {
  color: var(--color-text-muted);
  margin-right: 0.35rem;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-social-list {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-social-list a {
  color: var(--color-text-light);
  font-weight: 500;
}

.footer-social-list a:hover {
  color: var(--color-accent);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.office-card {
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.office-card__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.office-card__address,
.office-card__phone {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.office-card__phone a:hover {
  color: var(--color-accent);
}

.office-card__map iframe {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  border: 0;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------
   14. SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   ----------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays for grid items (metric cards, product cards). */
.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

/* -----------------------------------------------------------------------
   15. ACCESSIBILITY FOCUS STYLES
   ----------------------------------------------------------------------- */

/* Consistent, high-visibility focus ring across all interactive elements.
   Uses :focus-visible so mouse clicks don't trigger the ring, only
   keyboard/assistive-tech navigation does. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.office-tab:focus-visible,
.mobile-nav-toggle:focus-visible,
.floating-whatsapp-cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Ensure the mobile nav toggle and burger bars remain visible against
   the dark header when focused via keyboard tab order. */
.mobile-nav-toggle:focus-visible {
  outline-offset: 4px;
}

/* -----------------------------------------------------------------------
   16. KEYFRAME ANIMATIONS
   ----------------------------------------------------------------------- */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__actions,
  .floating-whatsapp-cta {
    animation: none;
  }

  .animate-on-scroll {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* -----------------------------------------------------------------------
   17. BUTTON VARIANT — OUTLINE (used on the 404 page secondary CTA)
   ----------------------------------------------------------------------- */
.btn--outline {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(248, 250, 252, 0.35);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: rgba(248, 250, 252, 0.08);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------
   18. 404 ERROR PAGE
   ----------------------------------------------------------------------- */
.error-404-section {
  background-color: var(--color-bg-dark);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-404__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404__code {
  display: block;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.error-404__title {
  font-size: var(--font-size-h2);
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.error-404__subtitle {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.7);
  max-width: 460px;
  margin: 0 auto 2.25rem;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.error-404__search {
  width: 100%;
  max-width: 380px;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

.error-404__search-label {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.6);
  margin-bottom: 0.75rem;
}

/* Style WordPress' native get_search_form() output to match the theme. */
.error-404__search .search-form {
  display: flex;
  gap: 0.5rem;
}

.error-404__search .search-form__label {
  display: none;
}

.error-404__search .search-field {
  flex: 1;
  background-color: var(--color-surface);
  border: 1px solid rgba(248, 250, 252, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--color-text-light);
  transition: border-color var(--transition-fast);
}

.error-404__search .search-field:focus {
  outline: none;
  border-color: var(--color-accent);
}

.error-404__search .search-submit {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
}

.error-404__search .search-submit:hover {
  background-color: var(--color-accent-hover);
}

@media (max-width: 480px) {
  .error-404__actions {
    flex-direction: column;
    width: 100%;
  }

  .error-404__actions .btn {
    width: 100%;
  }
}
