/* ============================================
   TechLife Abroad — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --primary:       #1b3a5c;   /* navy */
  --primary-light: #2d6a9f;   /* mid navy */
  --primary-dark:  #0f2744;   /* deep navy */
  --primary-bg:    #eff6ff;   /* soft navy tint */
  --accent:        #f5a623;   /* amber (lantern flame) */
  --accent-dark:   #d4891a;
  --white:         #ffffff;
  --surface:       #f8fafc;
  --border:        #e2e8f0;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 32px rgba(0,0,0,0.12);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --max-width:  1100px;
  --transition: all 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 68px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
}
.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: -0.4px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--primary-bg);
  color: var(--primary);
}
/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Dropdown */
.nav__mobile {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav__mobile a:hover { background: var(--primary-bg); color: var(--primary); }

/* ============================================
   HERO — HOME PAGE
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1e4d78 100%);
  color: white;
  padding: 110px 24px 100px;
  text-align: center;
  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.04'%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");
}
.hero__inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  padding: 5px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.88;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HERO — INNER PAGES
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}
.page-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--white {
  background: white;
  color: var(--primary);
}
.btn--white:hover { background: var(--primary-bg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--amber {
  background: var(--accent);
  color: white;
}
.btn--amber:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.section     { padding: 88px 24px; }
.section--alt { background: var(--surface); }
.container   { max-width: var(--max-width); margin: 0 auto; }

.section__header { text-align: center; margin-bottom: 60px; }
.section__eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   HOME SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.service-card__desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 8px;
  transition: var(--transition);
}
.service-card__link:hover { gap: 10px; }
.service-card__link svg { width: 14px; height: 14px; }

/* ============================================
   FEATURE ITEMS — SERVICE PAGES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.feature-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.feature-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.feature-item__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.feature-item__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   "WHY IT MATTERS" CALLOUT
   ============================================ */
.callout-wrap { padding: 0 24px 88px; }
.callout {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.callout::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.callout__inner { position: relative; }
.callout__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.callout h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.callout p {
  font-size: 1.05rem;
  opacity: 0.87;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-card__icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.93rem;
  transition: var(--transition);
}
.contact-card a:hover { color: var(--primary-dark); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 52px 24px 36px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.4px;
}
.footer__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--transition);
}
.footer__nav a:hover { color: white; }
.footer__divider {
  width: 100%;
  max-width: 400px;
  border: none;
  border-top: 1px solid #1e293b;
}
.footer__copy { font-size: 0.82rem; color: #475569; }

/* ============================================
   SCROLL ANIMATION
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section  { padding: 64px 20px; }
  .callout  { padding: 44px 28px; }
  .callout-wrap { padding: 0 20px 64px; }
  .hero     { padding: 80px 20px 72px; }
  .page-hero { padding: 60px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
