
/* Sky Star - Main Styles */
:root {
  --primary: #0A2E58;
  --accent: #0E7C86;
  --bg-light: #F5F7FA;
  --bg-dark: #1a1a1a;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --brown: #97744A;
  --green: #C8E1CC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', sans-serif;
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--primary);
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo { color: white; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a { color: white; text-decoration: none; font-size: 16px; transition: color 0.3s; }

.nav-links a:hover { color: var(--accent); }

.btn {
  background: linear-gradient(135deg, #fed200 0%, #f5c000 100%);
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -15px rgba(254, 210, 0, 0.9);
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

.btn:hover {
  background: linear-gradient(135deg, #ffe27a 0%, #fed200 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -12px rgba(254, 210, 0, 0.95);
}

.btn:active { transform: translateY(-1px); }

/* Hero */
.hero {
  background: var(--bg-dark);
  color: white;
  padding: 180px 0 120px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero_bg.webp') center center/cover no-repeat;
  opacity: 0.32;
  z-index: 0;
  filter: saturate(1.05);
}

.hero > * { position: relative; z-index: 1; }

.hero h1.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 100%;
  text-align: center;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p { font-size: 22px; margin-bottom: 40px; opacity: 0.95; font-weight: 300; }

.hero-btns { display: flex; gap: 20px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }

.hero-btns .btn {
  background: linear-gradient(135deg, #fed200 0%, #f5c000 100%);
  color: #fff;
  font-weight: 700;
}

.hero-btns .btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  color: white;
}
.hero-btns .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.hero-modern { min-height: calc(100svh - 80px); padding: 160px 0 100px; }
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  z-index: 0;
}
.hero-glow-1 { top: -160px; right: -120px; background: radial-gradient(circle, rgba(254,210,0,0.9), transparent); }
.hero-glow-2 { bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(30,144,255,0.4), transparent); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,13,18,0) 55%, rgba(11,13,18,0.9) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-modern-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; position: relative; z-index: 1; }
.hero-logo-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle, #fff, #f8f9fa);
  padding: 14px;
  box-shadow: 0 30px 70px -40px rgba(254,210,0,0.9), 0 0 0 8px rgba(254,210,0,0.12);
  margin-bottom: 10px;
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(254,210,0,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin: 0;
}
.hero-modern-title {
  font-size: clamp(26px, 5vw, 51px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 20px 60px rgba(0,0,0,0.45);
  line-height: 1.9;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  position: relative;
  min-height: 3.8em;
  padding: 0 12px;
  word-break: keep-all;
}
.hero-modern-desc {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 2;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}
.hero-modern-btns { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-modern-btns .btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: none;
  text-shadow: none;
}
.hero-modern-btns .btn:hover {
  background: #0b656d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 124, 134, 0.25);
}
.hero-modern-btns .btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
  border-radius: 6px;
}
.hero-modern-btns .btn-outline:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: #fff;
}

/* Sections */
.section { padding: 80px 0; }

.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; color: var(--primary); font-weight: 700; position: relative; }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.services-grid .service-card:nth-child(5):last-child {
  grid-column: 1 / -1;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--accent);
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.service-card.service-target { animation: service-highlight 2s ease-out; }
@keyframes service-highlight { 0% { box-shadow: 0 0 0 4px var(--accent); } 50% { box-shadow: 0 0 0 8px rgba(14,124,134,0.3); } 100% { box-shadow: 0 5px 20px rgba(0,0,0,0.08); } }

.service-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid rgba(10, 46, 88, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon img {
  width: 42px;
  height: 42px;
  display: block;
}

.service-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--primary); }

.service-card p { color: #555; line-height: 1.8; }

/* Why Us */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.why-us-item {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.why-us-item:hover { transform: translateY(-5px); }

.why-us-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
}

.why-us-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-item h3 { font-size: 22px; margin-bottom: 15px; color: var(--primary); }

.why-us-item p { color: #555; line-height: 1.8; }

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 20px; }

.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info {
  background: var(--primary);
  color: white;
  padding: 40px;
  border-radius: 15px;
  height: 100%;
}

.contact-info h3 { font-size: 22px; margin-bottom: 20px; }

.contact-info p { line-height: 1.8; opacity: 0.9; margin-bottom: 15px; }

.contact-info img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

/* Footer */
.footer { background: var(--primary); color: white; padding: 60px 0 30px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer h3 { font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer ul a { color: #ccc; text-decoration: none; transition: color 0.3s; }

.footer ul a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 14px; color: #ccc; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }

.stat-card { text-align: center; padding: 40px 20px; background: rgba(255,255,255,0.05); border-radius: 15px; transition: transform 0.3s; }

.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #fed200 0%, #f5c000 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  box-shadow: 0 10px 30px -15px rgba(254, 210, 0, 0.9);
}

.btn:hover { background: linear-gradient(135deg, #ffe27a 0%, #fed200 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 36px -12px rgba(254, 210, 0, 0.95); }

.btn-outline { background: transparent; border: 2px solid white; color: white; }

.btn-outline:hover { background: white; color: var(--primary); }

/* Container */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }

/* Mobile menu */
.menu-toggle { display: none; font-size: 28px; background: none; border: none; color: white; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .logo img { height: 34px; }
  .hero { padding: 130px 0 80px; }
  .hero h1.hero-title { font-size: 30px; }
  .hero p { font-size: 18px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-modern { padding: 130px 0 80px; }
  .hero-logo-circle { width: 110px; height: 110px; padding: 12px; }
  .hero-modern-desc { font-size: 17px; }
  .hero-modern-btns { flex-direction: column; align-items: center; }
  .contact-container { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== New sections (stakeholder-defined) ===== */

/* About */
.about-text { max-width: 850px; margin: 0 auto 40px; text-align: center; color: #555; line-height: 1.9; font-size: 17px; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.about-gallery figure { margin: 0; }
.about-gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.about-gallery figcaption { text-align: center; margin-top: 12px; font-weight: 600; color: var(--primary); }
.delivery-times { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.time-chip { background: var(--bg-light); border-right: 4px solid var(--accent); padding: 15px 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.06); color: var(--text-dark); }
.time-chip b { color: var(--accent); }

/* Payment */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.pay-card { background: var(--bg-light); border-radius: 15px; padding: 35px 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; border-top: 4px solid var(--primary); transition: transform 0.3s, box-shadow 0.3s; }
.pay-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.13); }
.pay-card h3 { color: var(--primary); font-size: 22px; margin-bottom: 12px; }
.pay-card p { color: #555; line-height: 1.8; }
.pay-note { background: var(--bg-light); border-radius: 15px; padding: 30px 35px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); max-width: 900px; margin: 0 auto; }
.pay-note h4 { color: var(--primary); margin-bottom: 12px; font-size: 18px; }
.pay-note p { color: #555; line-height: 1.9; }

/* Insurance & packaging */
.insurance-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.insurance-text p { color: #555; line-height: 1.9; margin-bottom: 20px; font-size: 17px; }
.pack-title { color: var(--primary); margin-bottom: 15px; font-size: 18px; }
.pack-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.pack-list li { background: white; border: 1px solid #e3e8ef; border-radius: 30px; padding: 8px 22px; font-weight: 600; color: var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,0.04); }
.insurance-grid > img { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }

/* Contact (no form) */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 30px; }
.contact-card { background: var(--bg-light); border-radius: 15px; padding: 30px 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; border-top: 4px solid var(--accent); transition: transform 0.3s; }
.contact-card:hover { transform: translateY(-5px); }
.contact-card h3 { color: var(--primary); font-size: 18px; margin-bottom: 10px; }
.contact-card p { color: #555; line-height: 1.9; }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 700; }
.ship-note { background: var(--primary); color: white; border-radius: 15px; padding: 25px 30px; text-align: center; line-height: 2; font-size: 17px; }
.ship-note a { color: #FFC94D; font-weight: 800; text-decoration: none; margin-right: 8px; font-size: 20px; }
.contact-photo { text-align: center; margin-top: 30px; }
.contact-photo img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Footer credit */
.footer-bottom a:hover { text-decoration: underline; }

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    flex-direction: column;
    background: rgba(10, 46, 88, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    gap: 0;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    z-index: 999;
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }
  .nav-links.active {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px 0;
  }
  .about-gallery, .pay-grid, .insurance-grid { grid-template-columns: 1fr; }
  .delivery-times { flex-direction: column; align-items: stretch; }
  .ship-note a { display: block; margin: 10px 0 0; }
}

@media (max-width: 480px) {
  .hero h1.hero-title { font-size: 25px; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { padding: 30px 20px; }
}

/* Anchor targets must clear the fixed header */
section[id] { scroll-margin-top: 95px; }

/* Contextual internal links: preserve the approved visual design */
.seo-context-link { color: inherit; text-decoration: none; }
.seo-context-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.about-gallery picture, .contact-photo picture { display: block; }

/* Logo placeholder sizing */
.logo img { height: 44px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; }

/* Compact header CTA (was 148x54 - too heavy for the bar) */
.nav > .btn {
  padding: 8px 22px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  text-shadow: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav > .btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 46, 88, 0.25);
}

/* Intermediate widths (769-1000px): keep one-row header */
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .logo img { height: 36px; }
  .nav > .btn { padding: 8px 14px; white-space: nowrap; }
}

/* Mobile logo (must come after the desktop .logo img rule to win the cascade) */
@media (max-width: 768px) {
  .logo img { height: 32px; }
}

/* Services responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:nth-child(5):last-child {
    grid-column: auto;
    max-width: 100%;
    justify-self: stretch;
  }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(5):last-child {
    grid-column: auto;
    max-width: 100%;
    justify-self: stretch;
  }
}

.insurance-grid img { width: 100%; height: auto; border-radius: 12px; }


@media (max-width: 768px) {
  .contact-photo img {
    height: 200px;
  }
}


/* Larger logo */
.logo img {
  height: 56px !important;
}
@media (max-width: 768px) {
  .logo img {
    height: 48px !important;
  }
}

/* Intro highlight */
.intro-highlight {
  background: linear-gradient(135deg, rgba(10, 123, 192, 0.08) 0%, rgba(10, 123, 192, 0.02) 100%);
  border-top: 1px solid rgba(10, 123, 192, 0.15);
  border-bottom: 1px solid rgba(10, 123, 192, 0.15);
  padding: 28px 0;
  margin: 10px 0 0;
}
.intro-highlight-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #0a7bc0 0%, #1e9be0 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(10, 123, 192, 0.25);
}
.intro-highlight-inner p {
  font-size: 17px;
  line-height: 2;
  color: #1f2937;
  margin: 0;
  font-weight: 500;
}
@media (max-width: 768px) {
  .intro-highlight { padding: 22px 0; }
  .intro-highlight-inner p { font-size: 15px; line-height: 1.9; }
  .intro-badge { font-size: 12px; }
}
