/*
 * DEIVAKARAM Website Stylesheet
 * Brand Colors, Typography, & Animations
 */

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

:root {
  /* Color Palette */
  --primary: #0A4FA8;
  --secondary: #1565C0;
  --accent: #F4C430;      /* Hope Accent */
  --gold: #D9A300;        /* Warm Gold */
  --green: #4E944F;       /* Nature Green */
  --sage: #DDEED7;        /* Light Sage */
  --cream: #FFF8E8;       /* Warm Cream */
  --bg: #FFFDF7;          /* Soft Background */
  --text: #1F2937;        /* Main Text */
  --text-muted: #556270;  /* Muted Text */
  --white: #FFFFFF;
  --dark-blue: #073574;   /* Dark Royal Blue for Footer */

  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-width: 1200px;
  --border-radius: 16px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Common Layout & Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .tagline {
  font-family: var(--font-headings);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-headings);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 163, 0, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 79, 168, 0.15);
}

.btn-white-outline {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  backdrop-filter: blur(5px);
}

.btn-white-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 247, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

/* Native CSS shrinking header timeline configuration */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }
}

@keyframes shrinkHeader {
  to {
    padding: 0.75rem 3rem;
    background: rgba(255, 253, 247, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  }
}

/* Fallback class added via JS */
header.shrunk {
  padding: 0.75rem 3rem;
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

header .brand-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

header nav ul li {
  position: relative;
}

header nav ul li a {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-headings);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

header nav ul li a:hover,
header nav ul li.active a {
  color: var(--primary);
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-smooth);
}

header nav ul li a:hover::after,
header nav ul li.active a::after {
  width: 100%;
}

/* Dropdown Menu for Our Mission */
header nav ul li.has-dropdown {
  position: relative;
}

header nav ul li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

header nav ul li .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

header nav ul li .dropdown a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

header nav ul li .dropdown a::after {
  display: none;
}

header nav ul li .dropdown a:hover {
  background-color: var(--cream);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* Mobile Nav Styles */
@media (max-width: 991px) {
  header {
    padding: 1rem 2rem;
  }
  .hamburger {
    display: flex;
  }
  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    align-items: flex-start;
    gap: 2rem;
  }
  header nav.active {
    right: 0;
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
  }
  header nav ul li {
    width: 100%;
  }
  header nav ul li.has-dropdown .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding-left: 1rem;
    margin-top: 0.5rem;
    background: transparent;
    display: flex;
  }
  header nav .btn-whatsapp {
    width: 100%;
  }
  /* hamburger morph */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-image: linear-gradient(rgba(10, 79, 168, 0.45), rgba(7, 53, 116, 0.7)), url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  padding: 0 2rem;
  margin-bottom: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 850px;
  z-index: 2;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 {
  font-size: 3.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

/* --- About Deivakaram --- */
.about {
  padding: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 79, 168, 0.08);
}

.about-image-wrapper img {
  border-radius: var(--border-radius);
  transition: transform 0.8s ease;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Organic leaf decoration */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--border-radius) - 4px);
  pointer-events: none;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.about-content .intro-text {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Mission Vision Values Tabs */
.tab-headers {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--sage);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.tab-content ul {
  list-style: none;
  margin-top: 1rem;
}

.tab-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.tab-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-wrapper img {
    height: 350px;
  }
}

/* --- Our Mission (Elegant Alternate Blocks) --- */
.mission-section {
  padding: var(--section-padding);
  background-color: var(--cream);
  position: relative;
}

.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
}

.mission-block:last-child {
  margin-bottom: 0;
}

.mission-block.reverse .mission-image-col {
  order: 2;
}
.mission-block.reverse .mission-info-col {
  order: 1;
}

.mission-image-col {
  position: relative;
}

.mission-image-col img {
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Leaf border frame decoration */
.mission-image-col::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--green);
  border-left: 4px solid var(--green);
  border-top-left-radius: var(--border-radius);
  z-index: 1;
  pointer-events: none;
}

.mission-image-col::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  border-bottom: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-bottom-right-radius: var(--border-radius);
  z-index: 1;
  pointer-events: none;
}

.mission-info-col .mission-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(10, 79, 168, 0.05);
}

.mission-info-col h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.mission-info-col p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.learn-more-link {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.learn-more-link:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  gap: 0.75rem;
}

@media (max-width: 991px) {
  .mission-block,
  .mission-block.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .mission-block.reverse .mission-image-col {
    order: 0;
  }
  .mission-block.reverse .mission-info-col {
    order: 0;
  }
  .mission-image-col img {
    height: 300px;
  }
}

/* --- Our Impact (Animated Counters) --- */
.impact {
  padding: var(--section-padding);
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(244, 196, 48, 0.15), transparent 50%);
  pointer-events: none;
}

.impact .section-header h2 {
  color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.impact-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.impact-card .icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.impact-card .counter {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-headings);
  margin-bottom: 0.5rem;
  display: block;
}

.impact-card .label {
  font-weight: 600;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Transparency Section --- */
.transparency {
  padding: var(--section-padding);
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.transparency-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.transparency-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-left: 5px solid var(--green);
  transition: var(--transition-smooth);
}

.transparency-item:hover {
  transform: translateX(5px);
  box-shadow: 0 15px 40px rgba(10, 79, 168, 0.05);
}

.transparency-item .check-icon {
  font-size: 1.5rem;
  background-color: var(--sage);
  color: var(--green);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transparency-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.transparency-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Elegant Timeline/Cards */
.transparency-timeline {
  position: relative;
  padding-left: 2rem;
}

.transparency-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  width: 2px;
  height: 100%;
  background: var(--sage);
}

.timeline-card {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(10, 79, 168, 0.05);
  margin-bottom: 2.5rem;
  transition: var(--transition-smooth);
}

.timeline-card:last-child {
  margin-bottom: 0;
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 45px rgba(10, 79, 168, 0.05);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: -2.35rem;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--sage);
}

.timeline-card .date {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .transparency-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --- Become a Volunteer (Banner with Background) --- */
.volunteer-banner {
  position: relative;
  background-image: linear-gradient(rgba(7, 53, 116, 0.8), rgba(78, 148, 79, 0.8)), url('images/volunteer_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 2rem;
  text-align: center;
  color: var(--white);
}

.volunteer-banner .content {
  max-width: 750px;
  margin: 0 auto;
}

.volunteer-banner h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.volunteer-banner p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .volunteer-banner h2 {
    font-size: 2.2rem;
  }
}

/* --- Donate via WhatsApp Section --- */
.whatsapp-donate {
  padding: var(--section-padding);
  background-color: var(--cream);
}

.whatsapp-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 4rem;
  box-shadow: 0 20px 60px rgba(10, 79, 168, 0.06);
  border: 1px solid rgba(78, 148, 79, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #25D366, var(--accent));
}

.whatsapp-card .wa-icon {
  font-size: 3.5rem;
  color: #25D366;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

.whatsapp-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.whatsapp-card p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-card {
    padding: 2.5rem 1.5rem;
  }
  .whatsapp-card h3 {
    font-size: 1.8rem;
  }
}

/* --- Get in Touch Section --- */
.contact {
  padding: var(--section-padding);
}

.contact-grid {
  display: flex;
  justify-content: center;
}

.contact-info {
  text-align: center;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  width: 100%;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-top: 4px solid var(--accent);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 79, 168, 0.05);
  border-top-color: var(--primary);
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background-color: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-item h5 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(10, 79, 168, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--sage);
  background-color: var(--bg);
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(10, 79, 168, 0.05);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

.map-container {
  margin-top: 4rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.03);
  border: 1px solid var(--sage);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form {
    padding: 2rem;
  }
}

/* --- Footer --- */
footer {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 2rem 2rem;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about .logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-about .logo-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.footer-about .brand-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.footer-about p.tagline {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-about p.desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--font-headings);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Modals (Legal & Details) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 53, 116, 0.6);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background-color: var(--bg);
  border-radius: var(--border-radius);
  max-width: 650px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(10, 79, 168, 0.1);
  padding: 3rem;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--sage);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  font-weight: bold;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: var(--accent);
  transform: rotate(90deg);
}

.modal h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-body p {
  margin-bottom: 1rem;
}

/* --- Scroll Animations & Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Our Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-top: 4px solid var(--accent);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 79, 168, 0.05);
  border-top-color: var(--primary);
}

.service-card .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--sage);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-card .btn-wa {
  margin-top: 1.5rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.service-card .btn-wa:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .contact-item {
    width: 100%;
    max-width: 100%;
  }
}

/* Follow Us On Section */
.follow-us-section {
  margin-top: 4rem;
  text-align: center;
  width: 100%;
}

.follow-us-section h4 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.follow-us-section h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.follow-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.follow-social-links .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Facebook Style */
.follow-social-links .facebook {
  background-color: #3b5998;
  color: var(--white);
}
.follow-social-links .facebook:hover {
  background-color: #2d4373;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 89, 152, 0.2);
}

/* X / Twitter Style */
.follow-social-links .twitter {
  background-color: #000000;
  color: var(--white);
}
.follow-social-links .twitter:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Instagram Style */
.follow-social-links .instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
}
.follow-social-links .instagram:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.2);
}

/* WhatsApp Style */
.follow-social-links .whatsapp {
  background-color: #25d366;
  color: var(--white);
}
.follow-social-links .whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

