/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1a6fd4;
  --blue-dark: #1357aa;
  --blue-light: #e8f0fb;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray: #6b7280;
  --gray-dark: #374151;
  --text: #111827;
  --border: #e5e7eb;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

/* ── Navigation ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-logo:hover { text-decoration: none; opacity: .85; }

.nav-logo-img {
  height: 46px !important;
  width: auto !important;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  text-decoration: none;
}

.nav-links .nav-cta > a,
.nav-links li > a.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  border-radius: 6px;
  padding: .3rem .9rem;
  font-weight: 600;
  transition: background .2s;
}

.nav-links .nav-cta > a:hover,
.nav-links li > a.nav-cta:hover {
  background: var(--blue-dark);
}

/* ── Language Selector ── */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .7rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-dark);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.lang-flag-img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.lang-option .lang-flag-img { width: 20px; height: 14px; }

.lang-btn .lang-caret {
  font-size: .65rem;
  margin-left: .1rem;
  transition: transform .2s;
}
.lang-selector.open .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}

.lang-selector.open .lang-dropdown { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  font-size: .9rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: background .15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.lang-option:hover { background: var(--blue-light); color: var(--blue); }
.lang-option.selected { color: var(--blue); font-weight: 600; }
.lang-option .lang-flag { font-size: 1.15rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, #dce9fa 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

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

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

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

/* ── Sections ── */
.section {
  padding: 4rem 1.5rem;
}

.section-alt { background: var(--gray-light); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--blue);
  margin-bottom: .75rem;
  text-align: center;
}

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

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}

.card:hover { box-shadow: 0 6px 20px rgba(26,111,212,.1); }

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.card p {
  color: var(--gray);
  font-size: .95rem;
}

/* ── How It Works steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--blue-dark);
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.step p { color: var(--gray); font-size: .95rem; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: var(--gray-dark);
}

.contact-detail span:first-child { font-size: 1.2rem; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,.15);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-light), #dce9fa);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue-dark);
  margin-bottom: .75rem;
}

.page-hero p {
  color: var(--gray-dark);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Try Now / Phone input ── */
.try-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(26,111,212,.08);
}

.try-card h2 {
  color: var(--blue);
  font-size: 1.6rem;
  margin-bottom: .5rem;
  text-align: center;
}

.try-card .try-sub {
  color: var(--gray);
  font-size: .95rem;
  text-align: center;
  margin-bottom: 2rem;
}


/* ── Footer ── */
footer {
  background: var(--gray-dark);
  color: #d1d5db;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #4b5563;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-top: .75rem;
  color: #9ca3af;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .75rem;
  letter-spacing: .03em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: .5rem;
}

.footer-col ul li a {
  color: #9ca3af;
  font-size: .9rem;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #9ca3af;
}

.footer-disclaimer {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.6;
  border-top: 1px solid #374151;
  padding-top: 1rem;
}

/* ── Try Now page ── */
.try-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.try-card h2 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}

.try-sub {
  color: var(--gray);
  font-size: .93rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Phone group: dial picker + number input side by side */
.phone-group {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}

.phone-number-input {
  flex: 1;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.phone-number-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,.12);
}

/* Dial picker */
.dial-select-wrap { flex-shrink: 0; }

.dial-trigger {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-dark);
  white-space: nowrap;
  transition: border-color .2s;
  height: 100%;
}

.dial-trigger:hover { border-color: var(--blue); }

.dial-trigger-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.dial-trigger-caret { font-size: .7rem; color: var(--gray); }

/* Dropdown uses position:fixed so it is never clipped by parent overflow */
.dial-dropdown-menu {
  display: none;
  position: fixed;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  width: 280px;
  max-height: 320px;
  flex-direction: column;
}

.dial-dropdown-menu.open { display: flex; }

.dial-search {
  padding: .6rem .85rem;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  width: 100%;
  flex-shrink: 0;
}

.dial-options-list {
  overflow-y: auto;
  flex: 1;
}

.dial-opt {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--gray-dark);
  transition: background .15s;
}

.dial-opt:hover { background: var(--blue-light); }
.dial-opt.selected { background: var(--blue-light); font-weight: 600; color: var(--blue); }

.dial-opt-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.dial-opt-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dial-opt-code { color: var(--gray); font-size: .85rem; flex-shrink: 0; }

/* Consent row */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1rem 0;
  font-size: .88rem;
  color: var(--gray);
}

.consent-row input[type="checkbox"] {
  width: auto;
  margin-top: .2rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .lang-btn .lang-label { display: none; }
  .lang-btn { padding: .35rem .5rem; }

  .lang-dropdown { right: 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

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

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

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
}
