/* ==========================================================================
   ALTERNET, one-page site. Idea by Konstantin Stalinsky
   Bootstrap 5 + custom layer. Palette and components per alternet.ge. (assets/main.css), img/..., without prefix assets/.
   ========================================================================== */

:root {
  --brand-dark:  #042C53;
  --brand:       #185FA5;
  --brand-light: #378ADD;
  --brand-pale:  #E6F1FB;
  --text:        #1a1a1a;
  --text-muted:  #5f6b7a;
  --text-light:  #8a96a3;
  --bg:          #ffffff;
  --bg-soft:     #f7f9fc;
  --border:      #e5ebf2;
  --footer-bg:   #0a1929;
  --radius:      10px;
  --radius-lg:   16px;
  --header-h:    80px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .al-hero-video { display: none; }
}

body {
  font-family: 'Noto Sans Georgian', 'Helvetica Neue', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.2; color: var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-light); }

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

.al-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Skip link */
.al-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--brand); padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.al-skip:focus { left: 0; }

/* ---- Buttons ---- */
.al-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1.4;
  text-align: center;
}
.al-btn-primary { background: var(--brand-light); color: #fff; }
.al-btn-primary:hover, .al-btn-primary:focus { background: var(--brand); color: #fff; }
.al-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.al-btn-outline:hover, .al-btn-outline:focus { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.al-btn-white { background: #fff; color: var(--brand-dark); }
.al-btn-white:hover, .al-btn-white:focus { background: var(--brand-pale); color: var(--brand-dark); }

/* ============ HEADER ============ */
.al-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.al-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.al-logo img { height: 50px; width: auto; }
.al-menu {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.al-menu a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  display: block;
}
.al-menu a:hover, .al-menu a.active { color: var(--brand); }
.al-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
}
.al-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.al-lang a { color: var(--text-light); }
.al-lang a.active { color: var(--brand); }
.al-lang-sep { color: var(--border); }

.al-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.al-burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.al-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.al-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.al-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO ============ */
.al-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Video on section */
.al-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.al-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Darkness, gradient */
.al-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(4,44,83,.92) 0%,
    rgba(4,44,83,.75) 45%,
    rgba(4,44,83,.45) 100%);
}

.al-hero-inner { position: relative; z-index: 1; }
.al-hero-content { max-width: 560px; }

/* მედია ბლოკი 1:1 */
.al-hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #0a3a68 0%, var(--brand-dark) 100%);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.55);
}

.al-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.al-tagline {
  display: inline-block;
  background: rgba(255,255,255,.1);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
}
.al-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #fff;
}
.al-hero-text {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 540px;
}
.al-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
.al-section { padding: 80px 0; scroll-margin-top: var(--header-h); }
.al-bg-soft { background: var(--bg-soft); }
.al-section-head { margin-bottom: 48px; }
.al-section-title { font-size: clamp(28px, 3.5vw, 38px); font-weight: 600; margin-bottom: 16px; }
.al-section-sub { color: var(--text-muted); font-size: 17px; max-width: 700px; }
.al-text-center { text-align: center; }
.al-text-center .al-section-sub { margin-left: auto; margin-right: auto; }
.al-narrow { max-width: 800px; }

/* ============ CARDS ============ */
.al-service-card,
.al-plan-card,
.al-pricing-card,
.al-feat-card,
.al-contact-card,
.al-dir-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
}

/*  */
.al-service-icon,
.al-plan-icon,
.al-pricing-icon,
.al-feat-icon,
.al-contact-icon,
.al-dir-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-pale);
  color: var(--brand);
}

/* hover-up */
.al-service-card,
.al-plan-card {
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.al-service-card:hover,
.al-service-card:focus,
.al-plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

/* Services */
.al-service-card {
  padding: 32px 24px;
  color: var(--text);
  display: block;
}
.al-service-card:hover, .al-service-card:focus {
  box-shadow: 0 10px 30px -10px rgba(24,95,165,.2);
  color: var(--text);
}
.al-service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: background .3s, color .3s;
}
.al-service-card:hover .al-service-icon { background: var(--brand); color: #fff; }
.al-service-card h3 { font-size: 18px; margin-bottom: 8px; }
.al-service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Stats */
.al-stats {
  background: var(--bg-soft);
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.al-stat { text-align: center; }
.al-stat-num {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}
.al-stat-label { font-size: 13px; color: var(--text-muted); }

/* About */
.al-lead { font-size: 18px; margin: 0 0 16px; line-height: 1.5; font-weight: 500; }
.al-about-content p:not(.al-lead) { color: var(--text-muted); margin-bottom: 20px; }
.al-about-card {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.al-about-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: var(--brand);
  border-radius: 50%;
  opacity: .3;
}
.al-about-card-num { font-size: 72px; font-weight: 700; line-height: 1; margin-bottom: 8px; color: #fff; position: relative; z-index: 1; }
.al-about-card-text { font-size: 14px; color: rgba(255,255,255,.8); position: relative; z-index: 1; }

/* Directions */
.al-dir-item {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.al-dir-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.al-dir-item p { color: var(--text); font-size: 15px; line-height: 1.5; margin: 0; }

/* Check list */
.al-check-list { list-style: none; padding: 0; margin: 0; }
.al-check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.al-check-list li:last-child { border-bottom: none; }
.al-check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background-color: var(--brand-pale);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Plan / hosting cards */
.al-plan-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.al-plan-card:hover { box-shadow: 0 15px 40px -15px rgba(24,95,165,.25); }
.al-plan-featured { border-color: var(--brand); border-width: 2px; }
.al-plan-featured::before {
  content: '★';
  position: absolute;
  top: 16px; right: 20px;
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}
.al-plan-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.al-plan-card h3 { font-size: 22px; margin-bottom: 10px; }
.al-plan-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; line-height: 1.5; }
.al-plan-card .al-check-list { margin-bottom: 24px; }
.al-plan-card .al-btn { margin-top: auto; align-self: flex-start; }

/* Pricing */
.al-pricing-card {
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.al-pricing-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin: 0 auto 20px;
}
.al-pricing-card h3 { font-size: 22px; margin-bottom: 12px; }
.al-pricing-desc { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.al-pricing-card .al-btn { margin-top: auto; align-self: center; }

/* Terms */
.al-term h4 { font-size: 17px; margin-bottom: 8px; color: var(--brand-dark); }
.al-term p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* Notice */
.al-notice {
  display: flex;
  gap: 20px;
  background: var(--brand-pale);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  align-items: flex-start;
}
.al-notice-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.al-notice-content h4 { font-size: 17px; margin-bottom: 6px; color: var(--brand-dark); }
.al-notice-content p { font-size: 15px; margin-bottom: 8px; }
.al-notice-content p:last-child { margin-bottom: 0; }
.al-link-arrow { color: var(--brand); font-weight: 500; font-size: 14px; }

/* Features (corporate) */
.al-feat-card { padding: 28px 24px; }
.al-feat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.al-feat-card h4 { font-size: 17px; margin-bottom: 8px; }
.al-feat-card p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* Contact */
.al-contact-card { padding: 28px 20px; text-align: center; }
.al-contact-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.al-contact-card h4 { font-size: 15px; margin-bottom: 8px; }
.al-contact-card p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============ CTA ============ */
.al-cta { background: var(--brand-dark); padding: 64px 0; color: #fff; }
.al-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.al-cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; color: #fff; }
.al-cta p { color: rgba(255,255,255,.8); font-size: 16px; margin: 0; }

/* ============ UTILITY (IP) ============ */
.al-utility { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.al-utility-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 13px; }
.al-ip-label { color: var(--text-muted); }
.al-ip-value { font-family: 'Monaco', 'Menlo', monospace; font-weight: 600; color: var(--text); margin-left: 6px; }
.al-port-link { color: var(--brand); font-weight: 500; }

/* ============ FOOTER ============ */
.al-footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.al-footer-logo { margin-bottom: 16px; height: 50px; width: auto; opacity: .9; 
  background: #fff; 
  -webkit-mask: url("img/alternet-logo.svg") no-repeat center / contain;
          mask: url("img/alternet-logo.svg") no-repeat center / contain;
}
.al-footer-col h5 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #fff; letter-spacing: .5px; }
.al-footer-col p { font-size: 14px; line-height: 1.6; }
.al-footer-col ul { list-style: none; padding: 0; margin: 0; }
.al-footer-col li { margin-bottom: 8px; }
.al-footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.al-footer-col a:hover { color: #fff; }
.al-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .al-menu { gap: 18px; }
  .al-menu a { font-size: 13px; }
}

@media (max-width: 991px) {
  .al-burger { display: flex; }
  .al-nav { position: relative; flex-wrap: wrap; }
  .al-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,.1);
  }
  .al-menu.open { display: flex; }
  .al-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .al-menu li:last-child a { border-bottom: none; }
  .al-menu a.active::after { display: none; }

  .al-hero-content { max-width: none; }
  .al-hero-media { margin: 0 auto; max-width: 440px; }
}

@media (max-width: 768px) {
  /*  
  .al-hero-video { display: none; }
*/
  .al-hero { padding: 60px 0 70px; }
  .al-hero-media { max-width: 340px; border-radius: 16px; }
  .al-section { padding: 60px 0; }
  .al-stats { padding: 40px 0; }
  .al-cta-inner { flex-direction: column; text-align: center; }
  .al-utility-inner { flex-direction: column; gap: 8px; text-align: center; }
  .al-notice { flex-direction: column; gap: 12px; }
  .al-about-card { padding: 36px; }
}

@media (max-width: 540px) {
  .al-hero-buttons .al-btn { width: 100%; }
  .al-plan-card { padding: 28px 22px; }
}
