/*
Theme Name: ESTA Global
Theme URI: https://esta.global
Author: ESTA Global
Description: Custom theme for ESTA application service
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: estaglobal
*/

/* =========================================
   CSS RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0a2240;
  --navy-dark:   #061629;
  --navy-mid:    #103460;
  --blue:        #1565c0;
  --blue-light:  #1976d2;
  --gold:        #d4a017;
  --gold-dark:   #b8860b;
  --gold-light:  #f0c040;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --light-gray:  #e8ecf0;
  --mid-gray:    #9aa5b4;
  --text-dark:   #1a2332;
  --text-body:   #3d4f63;
  --text-muted:  #6b7c93;
  --success:     #1a8a4a;
  --danger:      #c0392b;

  --font-base:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-heading:'Georgia', 'Times New Roman', serif;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.18);

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

  --transition:  0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue); text-decoration: underline; }

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

ul, ol { padding-left: 1.5rem; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

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

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1320px; }

.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 96px 0; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .3px;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,160,23,.4);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--secondary:hover {
  background: var(--white);
  color: var(--navy);
}

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

.btn--lg { padding: 18px 44px; font-size: 1.1rem; }
.btn--sm { padding: 10px 22px; font-size: .9rem; }
.btn--full { width: 100%; justify-content: center; }

/* =========================================
   SITE HEADER
   ========================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-top {
  background: var(--navy-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top-text {
  color: var(--mid-gray);
  font-size: .78rem;
  letter-spacing: .3px;
}
.header-top-text strong { color: var(--gold); }

.header-main {
  padding: 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .5px;
}
.logo-text .logo-tagline {
  font-size: .68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
}

.footer-main {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); text-decoration: none; }

.footer-disclaimer {
  background: rgba(0,0,0,.25);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-disclaimer p {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;

}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.35);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before { content: '★'; font-size: .7rem; }

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 span { color: var(--gold-light); }

.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.hero-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================
   APPLICATION FORM CARD
   ========================================= */
.app-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
}
.app-card-header {
  background: var(--gold);
  padding: 20px 28px;
  text-align: center;
}
.app-card-header h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.app-card-header p {
  color: var(--navy-mid);
  font-size: .82rem;
  margin: 4px 0 0;
}
.app-card-body { padding: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-base);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
.form-control::placeholder { color: var(--mid-gray); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa5b4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-card-footer {
  padding: 0 28px 24px;
  text-align: center;
}
.app-card-footer p {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.app-card-footer a { color: var(--blue-light); }
.app-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.app-card-price .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.app-card-price .price-label {
  font-size: .82rem;
  color: var(--text-muted);
}

/* =========================================
   INFO STRIP
   ========================================= */
.info-strip {
  background: var(--gold);
  padding: 14px 0;
}
.info-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.info-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-dark);
  font-size: .88rem;
  font-weight: 600;
}
.info-strip-item .icon {
  font-size: 1.2rem;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-gray);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover {}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* =========================================
   TRUST BADGES
   ========================================= */
.trust-section { background: var(--off-white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trust-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--light-gray);
}
.trust-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.trust-card h4 { margin-bottom: 8px; font-size: 1rem; }
.trust-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* =========================================
   SECTION HEADINGS
   ========================================= */
.section-heading { margin-bottom: 48px; }
.section-heading.text-center { text-align: center; }
.section-heading .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.section-heading h2 { margin-bottom: 12px; }
.section-heading p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   INNER PAGE HERO
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  justify-content: center;
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* =========================================
   CONTENT PAGE
   ========================================= */
.content-page { padding: 64px 0; }
.content-page .container--narrow {
  background: var(--white);
}
.entry-content h2 { margin: 32px 0 14px; }
.entry-content h3 { margin: 24px 0 10px; }
.entry-content p, .entry-content li { font-size: .97rem; line-height: 1.75; color: var(--text-body); }
.entry-content ul, .entry-content ol { margin-bottom: 1rem; }

/* =========================================
   HELP CENTER
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-question {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: .97rem;
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-question .toggle { font-size: 1.2rem; color: var(--blue-light); transition: transform var(--transition); }
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 18px; color: var(--text-body); font-size: .93rem; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* =========================================
   NOTICE BOXES
   ========================================= */
.notice {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 24px;
  font-size: .92rem;
}
.notice--info    { background: #e8f4fd; border-color: var(--blue-light); color: #0c3c6e; }
.notice--warning { background: #fff8e1; border-color: var(--gold); color: #5a3e00; }
.notice--success { background: #e8f7ee; border-color: var(--success); color: #0d3d22; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner .app-card { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu-open .primary-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    z-index: 999;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
  }
  .mobile-menu-open .primary-nav a { font-size: 1.2rem; padding: 12px 24px; }
  .mobile-menu-open .header-cta { display: flex; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .info-strip .container { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .header-top { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .steps { grid-template-columns: 1fr; }
  .app-card-body { padding: 20px; }
  .app-card-footer { padding: 0 20px 20px; }
}

/* Help Center contact form */
#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--gold) !important;
  background: rgba(255,255,255,.13) !important;
}
#contact input::placeholder,
#contact textarea::placeholder { color: rgba(255,255,255,.35); }
@media (max-width: 600px) {
  #contact > form > div:first-of-type { grid-template-columns: 1fr !important; }
}

/* Hero background image variant */


















/* Hero background image variant */
.hero--img {
  position: relative;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;


}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 28, 0.78);
  z-index: 0;
}

.hero--img .hero-content {
  max-width: 640px;
}

/* Hero bg image via <img> tag */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-inner--single {
  display: block;
  max-width: 640px;
}

/* SVG logo */
.site-logo__img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-brand .site-logo__img {
  height: 36px;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

/* Page hero with background image */
.page-hero--img {
  position: relative;
  overflow: hidden;
}
.page-hero--img .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.page-hero--img .hero__overlay {
  z-index: 1;
}
.page-hero--img .container {
  position: relative;
  z-index: 2;
}
