/* Shared styles: reset, tokens, buttons, header/nav, footer, WhatsApp button, toast. */

:root {
  --deep: #081929;
  --blue: #1465a7;
  --cyan: #26b7e2;
  --cyan-l: #2eb5e6;
  --sky: #D8EEF8;
  --ivory: #F4F9FD;
  --white: #ffffff;
  --text: #111827;
  --muted: #4A5568;
  --border: rgba(20,101,167,0.18);
  --font-d: 'Playfair Display',Georgia,serif;
  --font-b: 'Inter',system-ui,sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--deep);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-size: .875rem;
  font-weight: 600;
  transition: top .2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue)!important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s var(--ease);
  border: none;
  white-space: nowrap;
  border-radius: 2px;
}

.btn-primary {
  background: var(--cyan);
  color: var(--deep);
}

.btn-primary:hover {
  background: var(--cyan-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38,183,226,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(38,183,226,.1);
}

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

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-dark {
  background: var(--deep);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--blue);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .75rem;
}

#nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  background: rgba(8,25,41,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38,183,226,.1);
  transition: background .3s,box-shadow .3s;
}

#nav.scrolled {
  background: rgba(8,25,41,.98);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .2s,background .2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.nav-cta {
  background: var(--cyan);
  color: var(--deep);
  font-weight: 700;
  border-radius: 2px;
  margin-left: 8px;
}

.nav-links a.nav-cta:hover {
  background: var(--cyan-l);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -.125em;
  flex-shrink: 0;
}

.icon-sm {
  width: .85em;
  height: .85em;
}

.f-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

footer {
  background: var(--deep);
  color: rgba(255,255,255,.5);
  padding: 64px 5% 36px;
}

.f-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.f-desc {
  font-size: .875rem;
  line-height: 1.75;
  max-width: 280px;
  margin: 16px 0 24px;
}

.f-social {
  display: flex;
  gap: 12px;
}

.s-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s,color .2s;
}

.s-link:hover {
  background: var(--cyan);
  color: var(--deep);
}

.f-col h4 {
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.f-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.f-col a:hover {
  color: var(--cyan);
}

.f-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}

.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s,box-shadow .2s;
  text-decoration: none;
}

.wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.5);
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(.9);
    opacity: .7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 300;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(20,101,167,.3);
  transition: transform .4s var(--ease),opacity .4s;
  opacity: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease),transform .6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1024px) {
  .f-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(8,25,41,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .f-grid {
    grid-template-columns: 1fr;
  }
  .f-row2 {
    grid-template-columns: 1fr;
  }
}

/* Header layout helpers */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 170px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
}

.f-logo {
  height: 22px;
  width: auto;
  opacity: .7;
  margin-bottom: 14px;
}

.f-bottom a {
  color: var(--muted);
}

/* Without JavaScript, show everything */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Honeypot field: invisible to people, tempting to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
