/* ============================================================
   CAPRICANA S.A. — style.css
   Fonts: Bebas Neue (display) + Outfit (body)
   Theme: Dark · Orange · White accents
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --orange: #f26419;
  --orange-light: #ff8c42;
  --orange-glow: rgba(242, 100, 25, 0.15);
  --orange-border: rgba(242, 100, 25, 0.3);

  --dark-0: #080808;
  --dark-1: #0e0e0e;
  --dark-2: #141414;
  --dark-3: #1c1c1c;
  --dark-4: #242424;
  --dark-5: #2e2e2e;

  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-03: rgba(255, 255, 255, 0.03);

  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-hero: clamp(4rem, 9vw, 8rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--dark-0);
  color: var(--white-90);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ── UTILITY ── */
.text-orange {
  color: var(--orange);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white-90);
  border: 2px solid var(--white-30);
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.btn-ghost:hover {
  border-color: var(--white-60);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── SECTION COMMON ── */
section {
  padding: var(--space-3xl) var(--space-xl);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-xs);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.section-sub {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--white-60);
  max-width: 520px;
  line-height: 1.8;
}
.divider-bar {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 40%,
    transparent 100%
  );
}

/* ── NAV ── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--space-xl);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--white-06);
  transition:
    padding 0.4s var(--ease),
    background 0.4s;
}
#main-nav.scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(8, 8, 8, 0.97);
}
.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white-60);
  transition: color var(--duration);
}
.nav-links a:hover {
  color: var(--white);
}

/* nav-right: flag switcher + CTA together */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── FLAG LANGUAGE SWITCHER ── */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--dark-3);
  border: 1px solid var(--white-10);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--duration);
  white-space: nowrap;
}
.lang-btn .flag {
  font-size: 14px;
  line-height: 1;
}
.lang-btn .lang-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-btn:hover {
  background: var(--dark-5);
  color: var(--white-90);
}
.lang-btn.active {
  background: var(--orange);
  color: var(--white);
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-90);
  border-radius: 2px;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--dark-1);
  border-bottom: 1px solid var(--white-10);
  padding: var(--space-md) var(--space-lg);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white-90);
}
.mobile-lang {
  display: flex;
  gap: 8px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--white-06);
}
.mobile-lang .lang-btn {
  flex: 1;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--dark-3);
  border: 1px solid var(--white-10);
}
.mobile-lang .lang-btn .flag {
  font-size: 20px;
}
.mobile-lang .lang-btn .lang-code {
  font-size: 12px;
}
.mobile-lang .lang-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    black 20%,
    transparent 100%
  );
}
.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 100, 25, 0.2) 0%,
    transparent 70%
  );
  top: -120px;
  right: -80px;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 100, 25, 0.1) 0%,
    transparent 70%
  );
  bottom: 60px;
  left: 5%;
  pointer-events: none;
}

/* ── GLYPH WATERMARK ── */
.hero-glyph-watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 700px;
  pointer-events: none;
  z-index: 1;
}
.hero-glyph-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.06;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-md);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
}
.hero-headline .line-white {
  color: var(--white);
}
.hero-headline .line-muted {
  color: var(--white-60);
}
.hero-headline .line-orange {
  color: var(--orange);
}

.hero-subline {
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--white-60);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--white-10);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}

/* Flag stat — slightly smaller so 3 flags fit neatly */
.hero-stat-flags {
  font-family: var(--font-body);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--white-30);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--white-10);
  flex-shrink: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.8s var(--ease) both;
}
.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.45s;
}
.delay-4 {
  animation-delay: 0.6s;
}

/* ── ABOUT ── */
#about {
  background: var(--dark-1);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-left {
  position: relative;
  padding-bottom: 3.5rem;
}
.about-card {
  background: var(--dark-3);
  border: 1px solid var(--white-06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.about-card-accent {
  width: 40px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}
.about-card p {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.85;
}
.about-card p + p {
  margin-top: var(--space-sm);
}
.about-badge {
  position: absolute;
  bottom: -2.5rem; /* was -1.25rem */
  right: 1.5rem; /* was -1.25rem */
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
}
.about-badge-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.pillar {
  background: var(--dark-3);
  border: 1px solid var(--white-06);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}
.pillar-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.pillar-text {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.6;
}

/* ── SERVICES ── */
#services {
  background: var(--dark-0);
}
.section-header {
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
}
.header-sub {
  max-width: 340px;
}
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-06);
  border: 1px solid var(--white-06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--dark-1);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--duration) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange-glow);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.service-card:hover {
  background: var(--dark-2);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover .service-icon {
  background: var(--orange);
}
.service-num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white-30);
  margin-bottom: 1.25rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--dark-4);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 1.25rem;
  transition: background var(--duration) var(--ease);
}
.service-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}
.service-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.75;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 1.25rem;
  transition: gap var(--duration) var(--ease);
}
.service-link:hover {
  gap: 10px;
}
.service-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(242, 100, 25, 0.06);
  border-left: 1px solid var(--orange-border);
}
.service-cta-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: var(--space-md);
}

/* ── BRANDS ── */
#brands {
  background: var(--dark-1);
}
.brands-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.brands-header {
  margin-bottom: var(--space-2xl);
}
.brands-track {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.brand-pill {
  background: var(--dark-3);
  border: 1px solid var(--white-10);
  border-radius: 999px;
  padding: 0.625rem 1.625rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white-60);
  cursor: default;
  transition: all var(--duration) var(--ease);
}
.brand-pill:hover {
  border-color: var(--orange-border);
  color: var(--orange);
  background: var(--dark-4);
}
.brand-pill {
  /* all existing styles stay exactly the same, just add: */
  cursor: pointer;
}
/* ── CONTACT ── */
#contact {
  background: var(--dark-0);
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-items {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
}
.contact-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--white-06);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--dark-3);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 3px;
}
.contact-value {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--white-90);
}

/* ── FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-60);
}
.form-input,
.form-textarea,
.form-select {
  background: var(--dark-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1rem;
  color: var(--white-90);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  width: 100%;
  transition:
    border-color var(--duration),
    background var(--duration);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--orange);
  background: var(--dark-4);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--white-30);
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
.form-select option {
  background: var(--dark-3);
  color: var(--white-90);
}

/* ── FOOTER ── */
footer {
  background: var(--dark-1);
  border-top: 1px solid var(--white-06);
  padding: 2.5rem var(--space-xl);
}
.footer-glyph {
  display: flex;
  justify-content: center;
  padding: 0 0 1.5rem;
  pointer-events: none;
}
.footer-glyph img {
  width: 48px;
  height: 48px;
  opacity: 0.12;
  filter: grayscale(100%);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-logo img {
  height: 40px;
  opacity: 0.75;
}
.footer-copy {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--white-30);
}
.footer-copy a {
  color: var(--orange);
}
.footer-copy a:hover {
  text-decoration: underline;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.footer-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-30);
  transition: color var(--duration);
}
.footer-links a:hover {
  color: var(--orange);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root {
    --space-xl: 2.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-3xl: 5rem;
    --text-hero: clamp(3.5rem, 14vw, 6rem);
  }
  #main-nav .nav-links,
  #main-nav .nav-right {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-badge {
    position: static;
    display: inline-block;
    margin-top: var(--space-md);
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-sub {
    max-width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 2rem var(--space-xl);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}
/* Form success / error messages */
.form-message {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 0.5rem;
}
.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Submit button loading state */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
