/* ============================================================
   AgriRadar / Western Heritage – Global Styles
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --blue-dark:   #1a3a5c;
  --blue-mid:    #2563a8;
  --blue-light:  #4a90c4;
  --blue-pale:   #d6e8f5;
  --green-ag:    #4caf50;
  --white:       #ffffff;
  --off-white:   #f5f8fc;
  --gray-light:  #e8edf2;
  --gray-mid:    #8a9ab0;
  --gray-dark:   #3a4a5c;
  --text-main:   #1e2d3d;
  --text-sub:    #5a6a7a;

  --nav-height: 64px;
  --max-width:  1100px;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(26,58,92,.10);
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  line-height: 1.2;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text-sub); }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 50px 0; }
.section--gray { background: var(--blue-pale); }
.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--primary { background: var(--blue-mid); color: var(--white); }
.btn--outline  { background: transparent; border: 2px solid var(--blue-mid); color: var(--blue-mid); }
.learn-more { color: var(--blue-mid); font-weight: 600; font-size: .9rem; }
.learn-more-card {color: var(--white); font-weight: 600; font-size: .9rem;}
.learn-more:hover { text-decoration: underline; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-dark);
  line-height: 1.1;
}
.nav-logo-text span { display: block; font-size: .75rem; font-weight: 400; color: var(--gray-mid); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gray-dark);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-mid); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue-mid);
  border-radius: 2px;
}

/* ============================================================
   HERO / PAGE BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #2563a8 60%, #4a90c4 100%);
}
.hero-img-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  color: var(--white);
}
.hero-content h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-content p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-top: 8px; }

/* ============================================================
   HOME PAGE – SECTIONS
   ============================================================ */

/* About intro */
.about-intro { padding: 64px 0 56px; }
.about-intro .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text p  { margin-bottom: 12px; }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: .85rem;
  overflow: hidden;
}
.about-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;

}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(37, 99, 168,.90); }
.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: .8rem;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body {
  padding: 20px; 
  background-color: rgba(37, 99, 168,.80);
  flex-grow: 1;
  display: flex;
  flex-direction: column;}
.service-card-body h3 { margin-bottom: 10px; color: var(--off-white); }
.service-card-body p  { font-size: .9rem; margin-bottom: 12px;color: var(--off-white); }

/* ============================================================
   SERVICES PAGE – SECTIONS
   ============================================================ */
.services-page-title { margin-bottom: 16px; }
.services-page-subtitle { font-size: 1.1rem; margin-bottom: 0; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--off-white);
}
.service-row:last-child { border-bottom: none; }
.service-row--reverse .service-row-img { order: 2; }
.service-row--reverse .service-row-text { order: 1; }
.service-row-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: .85rem;
}
.service-row-img img { width: 100%; height: 100%; object-fit: cover;}
.service-row-text h2 { margin-bottom: 16px; }
.service-row-text p { max-width: 520px; }
/* ============================================================
   Technology
   ============================================================ */
.carousel {
  position: relative;
  
  
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-wrapper{
  overflow: hidden;
  position: relative;
}
/* Each slide takes full width */
.carousel-slide {
  min-width: 100%;
  
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue-mid);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-mid);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--blue-mid);
}
/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 64px 0;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-text{
  color: var(--blue-dark);
}
.contact-grid {
  display:grid;
  grid-template-columns:2fr 2fr;
  gap:10px;
  align-items:flex-start;
}
.textbox {
  width: 100%;
  height: 10%;
  border-radius: var(--radius);
  border: 1px solid var(--blue-dark);
  padding: 20px 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p { font-size: .88rem; margin-bottom: 6px; color: rgba(255,255,255,.7); }
.footer-contact span { color: var(--white); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-intro .container { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row--reverse .service-row-img,
  .service-row--reverse .service-row-text { order: unset; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
