/* ===========================
   VS SRI & ASSOCIATES — style.css
   Colour palette from logo:
   Navy:    #1c1c5e
   Blue:    #2d5fa6
   Cyan:    #4bbcd4
   Light:   #e8f4f8
   =========================== */

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

:root {
  --navy:   #1c1c5e;
  --blue:   #2d5fa6;
  --cyan:   #4bbcd4;
  --cyan-light: #87d9ec;
  --light-bg: #f0f6fa;
  --white:  #ffffff;
  --text:   #2b2b2b;
  --text-light: #555;
  --border: #d4e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.7;
}

/* ── CONTAINER ── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
}

.top-flex {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  align-items: center;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-item .label {
  color: var(--cyan-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}

.top-item i {
  color: var(--cyan);
  font-size: 13px;
}

.top-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.top-item a:hover {
  color: var(--cyan-light);
}

/* ── HEADER ── */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(28, 28, 94, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 72px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--cyan);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, rgba(28,28,94,0.90) 0%, rgba(45,95,166,0.82) 60%, rgba(75,188,212,0.65) 100%),
              url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  max-width: 700px;
  padding: 60px 0;
}

.hero-tag {
  display: inline-block;
  background: rgba(75,188,212,0.25);
  border: 1px solid var(--cyan);
  color: var(--cyan-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 17px;
  opacity: 0.88;
  margin-bottom: 32px;
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(75,188,212,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(75,188,212,0.5);
}

/* ── SECTIONS ── */
.section-padding {
  padding: 90px 0;
}

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

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 560px;
  margin: auto;
}

.section-title .underline {
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--cyan), var(--blue));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 12px 40px rgba(28,28,94,0.12);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 15px;
}

.about-text p:first-child {
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
}

.about-text .cta-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.about-text .cta-link:hover {
  color: var(--blue);
}

/* ── SERVICES ── */
.services {
  background: var(--light-bg);
}

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

.service-box {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28,28,94,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(28,28,94,0.13);
  border-top-color: var(--cyan);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon i {
  color: var(--white);
  font-size: 22px;
}

.service-box-inner {
  padding: 28px;
}

.service-box h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-box p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ── INDUSTRIES ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 22px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(28,28,94,0.05);
}

.industry-box:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 24px rgba(75,188,212,0.18);
  transform: translateY(-4px);
}

.industry-icon {
  width: 52px;
  height: 52px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.industry-icon i {
  color: var(--blue);
  font-size: 20px;
}

.industry-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.industry-box p {
  color: var(--text-light);
  font-size: 13px;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--light-bg);
}

/* Carousel outer: arrows sit outside the viewport */
.carousel-outer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 18px;
}

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

/* Each slide takes exactly 100% of the viewport */
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.carousel-slide--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}

/* Cards — equal height via stretch */
.tcard {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(28,28,94,0.07);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.tcard-stars {
  color: #fbbc04;
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.tcard-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 22px;
  font-style: italic;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
}

.tcard-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.tcard-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.tcard-author span {
  font-size: 11px;
  color: var(--text-light);
}

/* Carousel nav buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28,28,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

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

.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.cdot.active {
  width: 26px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--cyan), var(--blue));
}

@media (max-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1fr;
  }
  .carousel-outer {
    gap: 8px;
  }
}

/* ── CONTACT ── */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: rgba(75,188,212,0.08);
  border-radius: 50%;
}

.contact-header {
  text-align: center;
  margin-bottom: 52px;
}

.contact-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 10px;
}

.contact-header .tagline {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.contact-header .sub-tagline {
  font-size: 14px;
  opacity: 0.65;
}

.contact-header .underline {
  width: 50px;
  height: 3px;
  background: var(--cyan);
  margin: 16px auto 0;
  border-radius: 2px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info-box h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--cyan-light);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(75,188,212,0.15);
  border: 1px solid rgba(75,188,212,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item i {
  color: var(--cyan);
  font-size: 16px;
}

.contact-info-item .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.6;
  display: block;
  margin-bottom: 2px;
}

.contact-info-item a,
.contact-info-item span {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.contact-info-item a:hover {
  color: var(--cyan-light);
}

/* FORM */
.contact-form-box {
  background: var(--white);
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.contact-form-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e7ef;
  border-radius: 8px;
  background: #f8fbfc;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(75,188,212,0.12);
  background: var(--white);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 65px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 8px;
}

.footer h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-light);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  opacity: 0.45;
}

/* ── WHATSAPP ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 9999;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

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

  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 34px;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .top-flex {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}