/* ================================
   GILYAR - Main Website Style
   خدمات فنی گیل‌یار
================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #f4f8fc;
  color: #172235;
  line-height: 1.9;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}


/* ================================
   HEADER
================================ */

.top {
  background: rgba(5, 15, 28, 0.97);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #263a54;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

.brand span {
  color: #27b5ff;
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #dce8f5;
}

.links a {
  padding: 9px 13px;
  border-radius: 10px;
  transition: 0.25s ease;
}

.links a:hover {
  background: #123250;
  color: #4cc4ff;
}


/* ================================
   HERO
================================ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 155, 230, 0.35),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 210, 170, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #07111f 0%,
      #0b2037 50%,
      #07101d 100%
    );

  color: #fff;
  padding: 90px 0 85px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(80, 200, 255, 0.15);
  right: -100px;
  top: 30px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 55px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(75, 195, 255, 0.45);
  background: rgba(20, 115, 165, 0.22);
  color: #70d2ff;
  border-radius: 50px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.35;
  margin: 20px 0 18px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: #c7d8e9;
  max-width: 700px;
  margin: 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 21px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #21b5ff, #008fe0);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 150, 230, 0.25);
}

.primary:hover {
  box-shadow: 0 14px 30px rgba(0, 150, 230, 0.35);
}

.outline {
  border-color: #536b85;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.outline:hover {
  border-color: #45bfff;
  background: rgba(40, 170, 230, 0.12);
}


/* ================================
   HERO CARD
================================ */

.card {
  background: #fff;
  border: 1px solid #e0e8f1;
  border-radius: 22px;
  padding: 25px;
  box-shadow: 0 12px 35px rgba(21, 34, 56, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #142c47,
      #0c1b2d
    );
  border: 1px solid #2b4865;
  color: #fff;
  padding: 35px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(35, 175, 255, 0.08);
  left: -50px;
  bottom: -70px;
}

.hero-card .big {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 18px;
}

.hero-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.hero-card p {
  font-size: 14px;
  margin: 0;
  color: #c0d1e2;
}


/* ================================
   SECTIONS
================================ */

section {
  padding: 75px 0;
}

.title {
  text-align: center;
  margin-bottom: 38px;
}

.title h2 {
  font-size: 31px;
  margin: 0 0 9px;
  color: #142238;
}

.title p {
  margin: 0 auto;
  color: #68778a;
  max-width: 720px;
}


/* ================================
   SERVICES
================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  overflow: hidden;
  transition: 0.28s ease;
}

.service::before {
  content: "";
  position: absolute;
  height: 4px;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
    90deg,
    #16a9ed,
    #00b99b
  );
  opacity: 0;
  transition: 0.25s ease;
}

.service:hover {
  transform: translateY(-7px);
  border-color: #b9dff2;
  box-shadow: 0 18px 40px rgba(18, 84, 120, 0.12);
}

.service:hover::before {
  opacity: 1;
}

.service h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.service p {
  color: #637187;
  font-size: 14px;
  margin: 0 0 15px;
}

.ico {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(
    135deg,
    #e5f7ff,
    #f0fbff
  );
  border: 1px solid #ccebf8;
}

.more {
  color: #0786c7;
  font-weight: 800;
  font-size: 13px;
}


/* ================================
   BLUE BAND / STATS
================================ */

.band {
  background:
    linear-gradient(
      135deg,
      #eaf8ff,
      #f5fbff
    );
  border-top: 1px solid #d4edf9;
  border-bottom: 1px solid #d4edf9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat {
  padding: 20px;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #cde6f3;
}

.stat b {
  display: block;
  color: #0786c7;
  font-size: 22px;
  margin-bottom: 3px;
}

.stat span {
  color: #59677b;
  font-size: 13px;
}


/* ================================
   ARTICLES
================================ */

.articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.article {
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 19px;
  padding: 22px;
  transition: 0.28s ease;
}

.article:hover {
  transform: translateY(-6px);
  border-color: #b8dff1;
  box-shadow: 0 18px 38px rgba(21, 34, 56, 0.1);
}

.article h3 {
  margin: 13px 0 9px;
  font-size: 18px;
  line-height: 1.65;
}

.article p {
  color: #637187;
  font-size: 13px;
}

.tag {
  display: inline-block;
  background: #eaf8ff;
  color: #0786c7;
  border: 1px solid #ccebf8;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}


/* ================================
   PORTFOLIO
================================ */

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.28s ease;
}

.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(21, 34, 56, 0.11);
}

.ph {
  height: 205px;
  background:
    radial-gradient(
      circle at 25% 25%,
      #ffffff,
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #d9f2ff,
      #eefaff 50%,
      #dff8f1
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  color: #0786c7;
}

.work div:last-child {
  padding: 19px;
}

.work h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.work p {
  margin: 0;
  color: #69768a;
  font-size: 13px;
}


/* ================================
   ABOUT
================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about .card {
  padding: 32px;
}

.about h2 {
  margin-top: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0;
}

.check b {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #e5f8f1;
  color: #079568;
}


/* ================================
   MAP
================================ */

.map {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    radial-gradient(
      circle at center,
      #ffffff,
      #edf9ff
    );

  border: 1px solid #cce8f5;
  border-radius: 22px;
}

.pin {
  font-size: 52px;
  margin-bottom: 5px;
}

.map h3 {
  margin: 5px 0;
}


/* ================================
   CTA
================================ */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(20, 180, 235, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #07111f,
      #102a45
    );

  color: #fff;
  border-radius: 26px;
  padding: 42px;
  box-shadow: 0 20px 50px rgba(7, 17, 31, 0.2);
}

.cta h2 {
  margin-top: 0;
  font-size: 28px;
}

.cta p {
  color: #bacbdb;
}

.cta .primary {
  background: #fff;
  color: #07111f;
}

.cta .primary:hover {
  background: #eaf8ff;
}


/* ================================
   FOOTER
================================ */

footer {
  background: #050b14;
  color: #a9b5c6;
  padding: 28px 0;
  font-size: 13px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social {
  color: #55c2ff;
  font-weight: 700;
}


/* ================================
   ARTICLE PAGES
================================ */

.article-page {
  max-width: 850px;
}

.article-page h1 {
  color: #152238;
  font-size: clamp(30px, 5vw, 48px);
}

.article-page .lead {
  font-size: 18px;
  color: #536176;
}

.article-page h2 {
  margin-top: 35px;
}

.notice {
  background: #fff6df;
  border: 1px solid #efd48d;
  border-radius: 14px;
  padding: 16px;
  margin: 25px 0;
}

.crumb {
  color: #087fc2;
  font-size: 13px;
  margin-bottom: 20px;
}

.list li {
  margin: 8px 0;
}

.back {
  display: inline-block;
  margin-top: 20px;
  color: #087fc2;
  font-weight: 800;
}


/* ================================
   MOBILE STICKY BUTTON
================================ */

.sticky {
  display: none;
}


/* ================================
   TABLET
================================ */

@media (max-width: 950px) {

  .links {
    gap: 2px;
  }

  .links a {
    padding: 8px 9px;
  }

  .grid2 {
    gap: 30px;
  }

  .articles {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 800px) {

  .nav {
    min-height: 64px;
  }

  .links {
    display: none;
  }

  .grid2,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-card {
    display: none;
  }

  .cards,
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat {
    padding: 14px;
  }

  .stat:not(:last-child)::after {
    display: none;
  }

  section {
    padding: 55px 0;
  }

}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 560px) {

  .wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 23px;
  }

  h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .title h2 {
    font-size: 26px;
  }

  .cards,
  .articles,
  .portfolio {
    grid-template-columns: 1fr;
  }

  .about .card {
    padding: 24px;
  }

  .cta {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .cta h2 {
    font-size: 23px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .sticky {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 200;

    background: linear-gradient(
      135deg,
      #0a9a65,
      #087d56
    );

    color: #fff;
    justify-content: center;
    align-items: center;

    padding: 13px;
    border-radius: 15px;

    font-weight: 900;

    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.25);
  }

}


/* ================================
   EXTRA SMALL
================================ */

@media (max-width: 380px) {

  h1 {
    font-size: 32px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .btn {
    font-size: 13px;
  }

}
