/* ===== Reset & base ===== */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --font-heading: "Bitter", serif;
  --font-body: "Raleway", sans-serif;
  --color-text: #101518;
  --color-text-muted: #5a6268;
  --color-accent: #b56c00;
  --color-accent-hover: #1e89dd;
  --color-bg: #e9f5fe;
  --color-bg-nav: #e9f5fe;
  --color-btn: #125386;
  --color-white: #fff;
  --max-width: 1280px;
  --section-padding: clamp(2.5rem, 5vw, 4.5rem);
  --container-padding: clamp(1rem, 4vw, 5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem) var(--container-padding);
  background-color: var(--color-bg-nav);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.logo {
  display: block;
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navLinks {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.navLinks a {
  text-decoration: none;
  padding: 0.5rem clamp(0.5rem, 1.5vw, 1rem);
  font-size: clamp(0.9rem, 1.2vw, 1.125rem);
  font-weight: 400;
  color: var(--color-text);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.navLinks a:hover {
  color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.navLinks .activeLink {
  color: var(--color-accent) !important;
  font-weight: 700 !important;
}

/* Hamburger (hidden on desktop) */
.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.navToggle:hover {
  transform: scale(1.05);
}

.navToggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.header.navOpen .navToggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.navOpen .navToggle span:nth-child(2) {
  opacity: 0;
}

.header.navOpen .navToggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero / Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  min-height: 240px;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 8s ease-out;
}

.carousel:hover .slide img {
  transform: scale(1.03);
}

.prev,
.next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  z-index: 2;
}
.prev:hover,
.next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}
.prev {
  left: var(--container-padding);
}
.next {
  right: var(--container-padding);
}
.prev::after,
.next::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  top: 50%;
  left: 50%;
}
.prev::after {
  margin: -6px 0 0 -4px;
  transform: rotate(45deg);
}
.next::after {
  margin: -6px 0 0 -8px;
  transform: rotate(-135deg);
}
@media (max-width: 768px) {
  .prev,
  .next {
    width: 40px;
    height: 40px;
    left: 12px;
    right: 12px;
  }
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 var(--container-padding);
  max-width: min(90%, 900px);
  color: var(--color-white);
  pointer-events: none;
}

.hero-content * {
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: heroTitleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
  animation: heroTextIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.btn {
  display: inline-block;
  padding: clamp(0.5rem, 1vw, 0.65rem) clamp(1.5rem, 3vw, 2.5rem);
  background-color: var(--color-btn);
  border-radius: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  animation: heroBtnIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 83, 134, 0.4);
  background: #0d4269;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

@keyframes heroBtnIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Sections common ===== */
.section {
  /* padding: 90px; */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.05rem;
}

.line {
  width: clamp(80px, 12vw, 159px);
  height: 4px;
  background: var(--color-accent);
  border-radius: 4px;
  margin: 0 auto;
}

/* ===== Our Services ===== */
.our-services {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 40px 32px;
  /* background: var(--color-white); */
  border-radius: 12px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
  border: 1px solid transparent;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(181, 108, 0, 0.2);
}

.service-icon {
  width: clamp(48px, 10vw, 64px);
  height: clamp(48px, 10vw, 64px);
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-text-muted);
  padding: 10px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.material-icons {
  color: #f0b84d;
  font-size: 32px !important;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-text h3 {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.service-card-text p {
  font-size: clamp(0.8rem, 1vw, 0.9375rem);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== Our Approach ===== */
.our-approach {
  background: var(--color-btn);
  color: var(--color-bg);
  padding: var(--section-padding) var(--container-padding);
}

.approach-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.approach-text {
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  text-align: center;
}

/* ===== Media Center (News slides) ===== */

.media-center {
  background-color: #e9ebeb;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.news-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.news-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 0.5rem;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ===== Article Card Style ===== */

.article-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: clamp(1.25rem, 1.5vw, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-card p {
  font-size: clamp(0.85rem, 1vw, 0.9375rem);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.article-card .btn {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== Slider Buttons ===== */

.news-prev,
.news-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
}

.news-prev:hover,
.news-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.news-prev {
  left: -12px;
}

.news-next {
  right: -12px;
}

.news-prev::after,
.news-next::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  top: 50%;
  left: 50%;
}

.news-prev::after {
  margin: -5px 0 0 -3px;
  transform: rotate(45deg);
}

.news-next::after {
  margin: -5px 0 0 -7px;
  transform: rotate(-135deg);
}

/* ===== Dots ===== */

.news-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.news-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.news-dots button.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .news-prev {
    left: 8px;
  }

  .news-next {
    right: 8px;
  }

  .news-prev,
  .news-next {
    width: 38px;
    height: 38px;
  }
}
/* ===== Footer ===== */
.footer {
  background: var(--color-btn);
  color: var(--color-white);
  padding: clamp(2rem, 4vw, 3rem) var(--container-padding)
    clamp(1.5rem, 3vw, 2rem);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: clamp(0.85rem, 1vw, 0.9375rem);
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

.footer-contact {
  font-weight: 600;
  margin-top: 0.5rem !important;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: clamp(0.875rem, 1vw, 1rem);
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: #f0b84d;
}

.footer-bottom {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.footer-credit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
.blink {
  color: var(--color-white);
  text-decoration: none;
}

/* ===== Scroll-in animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-animate.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate[data-delay="0"].scroll-visible {
  transition-delay: 0ms;
}
.scroll-animate[data-delay="1"].scroll-visible {
  transition-delay: 70ms;
}
.scroll-animate[data-delay="2"].scroll-visible {
  transition-delay: 140ms;
}
.scroll-animate[data-delay="3"].scroll-visible {
  transition-delay: 210ms;
}
.scroll-animate[data-delay="4"].scroll-visible {
  transition-delay: 280ms;
}
.scroll-animate[data-delay="5"].scroll-visible {
  transition-delay: 350ms;
}

/* ===== Responsive: tablet and mobile ===== */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }

  .navToggle {
    display: flex;
  }

  .navLinks {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.25rem;
    order: 3;
  }

  .header.navOpen .navLinks {
    display: flex;
  }

  .navLinks a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .approach-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    max-width: 100%;
  }

  .footer-nav {
    flex-direction: column;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide img {
    transition: none;
  }

  .service-card:hover,
  .news-card:hover,
  .btn:hover {
    transform: none;
  }

  .hero-title,
  .hero-tagline,
  .btn {
    animation: none;
  }
}
