/* =========================================================
   D Vijay & Associates — Stylesheet
   Palette: emerald/teal greens on white, dark navy footer
   ========================================================= */

:root {
  --green-600: #2cb07e;   /* primary teal-green */
  --green-700: #5dbfd2;
  --green-500: #107eb9;
  --green-400: #1cdf7e;
  --green-50:  #ecfdf5;
  --ink-900: #5f5f81;
  --ink-800: #1f2933;
  --ink-600: #5495ee;
  --ink-500: #578fdd;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --orange-500: #f59e0b;
  --orange-600: #ea580c;
  --white: #ffffff;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(15, 23, 42, 0.10);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 22px rgba(13, 148, 136, 0.35); }

.btn-outline {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-600);
}
.btn-outline:hover { background: var(--green-50); }

.btn-whatsapp {
  background: linear-gradient(135deg, #22b5c5, #16a34a);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}
.btn-whatsapp:hover { box-shadow: 0 10px 22px rgba(34, 197, 94, 0.38); }

.btn-feedback {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28);
}

.btn-block { width: 100%; }

.btn-whatsapp-nav {
  background: var(--green-600);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-whatsapp-nav:hover { background: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 218, 218, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  font-size: 17px;
  color: var(--ink-900);
}
.brand-text strong { font-weight: 800; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--ink-600);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--green-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-50) url('../images/bg.png') center top / cover no-repeat;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink-900);
}
.hero-copy h1 .accent { color: var(--green-600); }

.hero-sub {
  font-size: 17px;
  color: var(--ink-600);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art { position: relative; }

.hero-art-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  transform: rotate(1deg);
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--ink-600);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- Services ---------- */
.services { padding: 96px 0; }

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

.service-card {
  background: var(--blue-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.service-card p {
  color: var(--ink-600);
  font-size: 15px;
  margin: 0;
}

/* ---------- About ---------- */
.about {
  background: var(--green-50);
  padding: 96px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.about-copy h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 20px;
}

.about-lead {
  color: var(--ink-600);
  font-size: 16px;
  margin: 0 0 32px;
}

.about-points { display: flex; flex-direction: column; gap: 24px; }
.about-points li { display: flex; gap: 16px; align-items: flex-start; }

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #36e8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-points h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.about-points p {
  margin: 0;
  color: var(--ink-600);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact { padding: 96px 0; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 8px;
  color: var(--ink-900);
}
.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact-form .btn { margin-top: 28px; }

.form-status {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  margin: 14px 0 0;
}
.form-status.success { color: var(--green-700); }
.form-status.error { color: #f11a1a; }

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
  margin: 28px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gray-200);
}
.divider span { padding: 0 14px; }

/* ---------- Reviews ---------- */
.reviews {
  background: var(--green-50);
  padding: 96px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.review-form-wrap h3,
.recent-reviews-wrap h3 {
  font-size: 20px;
  margin: 0 0 24px;
}

.review-form-wrap form {
  display: flex;
  flex-direction: column;
}
.review-form-wrap label {
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 8px;
}
.review-form-wrap label:first-of-type { margin-top: 0; }

.review-form-wrap input,
.review-form-wrap textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  background: var(--white);
}
.review-form-wrap input:focus,
.review-form-wrap textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.star-rating {
  display: flex;
  gap: 6px;
}
.star {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-200);
  transition: color 0.1s ease, transform 0.1s ease;
  padding: 0;
}
.star:hover { transform: scale(1.1); }
.star.active { color: var(--orange-500); }

.review-form-wrap .btn { margin-top: 28px; }

.recent-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-state {
  color: var(--ink-500);
  font-size: 15px;
  padding: 20px 0;
}

.review-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-item-name { font-weight: 700; font-size: 15px; }
.review-item-stars { color: var(--orange-500); font-size: 15px; letter-spacing: 1px; }
.review-item-text { color: var(--ink-600); font-size: 14px; margin: 0 0 8px; }
.review-item-date { color: var(--ink-500); font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #cdd6e2;
  padding: 64px 0 0;
}

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

.footer-brand .brand-text {
  color: var(--white);
  font-size: 16px;
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: 14px;
  color: #cadaf0;
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin: 0 0 18px;
}

.footer-col a,
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #182b46;
  font-size: 14px;
  margin-bottom: 14px;
  transition: color 0.15s ease;
  width: fit-content;
}
.footer-col a:hover,
.footer-contact-link:hover { color: var(--blue); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: #121417;
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }

.star-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.star-rating-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
}

.field-hint {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}
.field-hint.error { color: #dc2626; }
.field-hint.ok { color: var(--green-700); }

/* extra breathing room so the floating WhatsApp button never overlaps
   the last interactive element on small screens */
.reviews { padding-bottom: 140px; }
@media (max-width: 720px) {
  .reviews { padding-bottom: 160px; }
}
.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.empty-state.error { color: #dc2626; }
.retry-link {
  background: none;
  border: none;
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  margin-left: 4px;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: none;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-whatsapp-nav { display: none; }

  .hero-copy h1 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}
