/* ==========================================================
   Sakthi e-Sevai — Custom Theme
   Deep Indigo + Verified Teal + Marigold, "Official Seal" motif
   ========================================================== */

:root{
  --navy: #16233F;
  --navy-deep: #0E1830;
  --navy-soft: #2C3D63;
  --teal: #0F6B5C;
  --teal-deep: #0A4C42;
  --saffron: #E8A33D;
  --saffron-deep: #C97F1E;
  --paper: #FBFAF6;
  --paper-alt: #F1F3F7;
  --ink: #20242F;
  --ink-soft: #5A6070;
  --line: #E2E5EA;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 14px 34px -14px rgba(14, 24, 48, 0.28);
  --shadow-card: 0 4px 18px rgba(14, 24, 48, 0.08);
  --font-display: 'Fraunces', 'Noto Sans Tamil', serif;
  --font-body: 'Inter', 'Noto Sans Tamil', sans-serif;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, .sitename{
  font-family: var(--font-display) !important;
  letter-spacing: -0.01em;
}

a{ transition: color .2s ease, background-color .2s ease, transform .2s ease; }
:focus-visible{ outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------- Header / Nav ---------- */
.header{
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line);
}
.header .logo img{ max-height: 46px; }

.navmenu ul li a{
  color: var(--navy) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  position: relative;
}
.navmenu ul li a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--saffron);
  transition: width .25s ease;
}
.navmenu ul li a:hover::after,
.navmenu ul li a.active::after{ width: 100%; }
.navmenu ul li a.active{ color: var(--teal-deep) !important; }

.btn-getstarted{
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 26px !important;
  font-weight: 600 !important;
  border: 1px solid var(--navy) !important;
}
.btn-getstarted:hover{
  background: var(--saffron) !important;
  border-color: var(--saffron) !important;
  color: var(--navy-deep) !important;
  transform: translateY(-1px);
}

/* ---------- Eyebrow / Section title ---------- */
.section-title p span:first-child{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(15,107,92,0.08);
  border: 1px solid rgba(15,107,92,0.18);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 8px;
}
.section-title h2{
  color: var(--navy-deep);
  font-size: 2.1rem;
  font-weight: 600;
}
.section-title .description-title{ color: var(--ink-soft); font-weight: 400; }

/* ---------- Hero ---------- */
.hero.section{
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero h1{
  color: var(--navy-deep);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 600;
}
.hero p{
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: 10px;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.hero-cta .btn-primary-seva,
.hero-cta .btn-secondary-seva{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-cta .btn-primary-seva{
  background: var(--saffron);
  color: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}
.hero-cta .btn-primary-seva:hover{
  background: var(--saffron-deep);
  color: #fff;
  transform: translateY(-2px);
}
.hero-cta .btn-secondary-seva{
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.hero-cta .btn-secondary-seva:hover{
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.hero-img{ position: relative; }
.hero-img img{
  border-radius: var(--radius-lg);
}

/* Seal / stamp signature motif */
.seva-seal{
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 8px 18px rgba(14,24,48,0.25));
  animation: seal-in .7s ease both;
}
.seva-seal--sm{ width: 76px; height: 76px; position: static; filter: none; }
@keyframes seal-in{
  from{ opacity: 0; transform: scale(.8) rotate(-8deg); }
  to{ opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* ---------- About ---------- */
.about .content ul li{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.about .content ul li i{
  color: var(--teal);
  font-size: 1.2rem;
  margin-top: 2px;
}
.about .content ul li span{
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
}
.about img.img-fluid{ border-radius: var(--radius-lg); }

/* ---------- Why us ---------- */
.why-us.section.light-background{
  background: var(--navy-deep) !important;
}
.why-box{
  background: transparent;
}
.why-box h3{ color: #fff; font-size: 1.6rem; }
.why-box p{ color: rgba(255,255,255,0.75); line-height: 1.75; }
.why-box .more-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--saffron);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--saffron);
  padding-bottom: 2px;
}
.why-box .more-btn:hover{ color: #fff; border-color: #fff; }

.icon-box{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  height: 100%;
  transition: transform .25s ease, background .25s ease;
}
.icon-box:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
}
.icon-box i{
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--navy-deep);
  font-size: 1.5rem !important;
  margin-bottom: 14px !important;
}
.icon-box h4{ color: #fff; font-size: 1.05rem; }
.icon-box p{ color: rgba(255,255,255,0.68); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery .swiper-slide img{
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---------- Contact ---------- */
.contact iframe{ border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.info-item{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.info-item .icon{
  color: var(--teal);
  font-size: 1.6rem;
  margin-right: 14px;
}
.info-item h3{ font-size: 1.05rem; color: var(--navy-deep); margin-bottom: 4px; }
.info-item p{ color: var(--ink-soft); margin: 0; }
.info-item a{ color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.info-item a:hover{ color: var(--saffron-deep); }

.php-email-form .form-control{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.php-email-form .form-control:focus{
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,107,92,.12);
}
.php-email-form button[type="submit"]{
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 34px;
  font-weight: 600;
  letter-spacing: .02em;
}
.php-email-form button[type="submit"]:hover{ background: var(--saffron-deep); }

/* ---------- Footer ---------- */
.footer.dark-background{ background: var(--navy-deep) !important; }
.footer h4{ color: #fff; font-size: 1rem; }
.footer p, .footer a{ color: rgba(255,255,255,0.72); }
.footer a:hover{ color: var(--saffron); }
.footer .icon{ color: var(--saffron); }
.footer .social-links a{
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-right: 8px;
}
.footer .social-links a:hover{ background: var(--saffron); color: var(--navy-deep); }
.footer .copyright{ border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; }

/* ---------- Generic "seva" surface helpers (used on datasheet.php) ---------- */
.seva-page-header{
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.seva-page-header h1{ color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.seva-page-header p{ color: rgba(255,255,255,0.82); max-width: 60ch; }

.seva-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.seva-member-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 22px;
  background: #fff;
  position: relative;
}
.seva-member-card.is-main{ border-left: 5px solid var(--teal); }
.seva-member-card .member-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(15,107,92,0.08);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.seva-member-card.is-member .member-badge{
  color: var(--saffron-deep);
  background: rgba(232,163,61,0.12);
}
.seva-form-label{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}
.seva-form-control{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.seva-form-control:focus{
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,107,92,.12);
}
.seva-remove-btn{
  position: absolute;
  top: 18px; right: 18px;
  border: 1px solid #e39a9a;
  color: #b3372f;
  background: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
}
.seva-remove-btn:hover{ background: #b3372f; color: #fff; }

.seva-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.seva-btn-add{ background: var(--paper-alt); color: var(--navy); border: 1.5px solid var(--navy); }
.seva-btn-add:hover{ background: var(--navy); color: #fff; }
.seva-btn-submit{ background: var(--teal); color: #fff; }
.seva-btn-submit:hover{ background: var(--teal-deep); transform: translateY(-2px); }
.seva-btn-clear{ background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.seva-btn-clear:hover{ border-color: var(--ink-soft); color: var(--ink); }

.seva-success-banner{
  background: rgba(15,107,92,0.08);
  border: 1px solid rgba(15,107,92,0.25);
  color: var(--teal-deep);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seva-error-banner{
  background: #fdecec;
  border: 1px solid #f3b8b4;
  color: #a4302a;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 26px;
}

@media (max-width: 767px){
  .seva-seal{ width: 84px; height: 84px; left: -10px; bottom: -12px; }
  .seva-remove-btn{ position: static; margin-top: 12px; display: inline-block; }
}