/* =========================================================
   Arulagam Builders & Developers — stylesheet
   ========================================================= */

:root {
  --teal: #087F7B;
  --teal-dark: #075B59;
  --orange: #F47B20;
  --orange-light: #FF9A3D;
  --bg-light: #F7F8F6;
  --text-dark: #1E2A2A;
  --text-muted: #566666;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(7, 42, 41, 0.08);
  --shadow-md: 0 12px 30px rgba(7, 42, 41, 0.14);
  --shadow-lg: 0 22px 50px rgba(7, 30, 29, 0.28);
  --transition: 0.28s ease;
  --container-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 3000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section { padding: 90px 0; }
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section-intro-center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(8,127,123,0.35); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(7,42,41,0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  transition: height var(--transition);
}
.site-header.scrolled .header-inner { height: 68px; }

.logo-img { height: 52px; width: auto; transition: height var(--transition); }
.site-header.scrolled .logo-img { height: 42px; }

.main-nav ul { display: flex; gap: 30px; }
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call { font-size: 0.88rem; padding: 10px 18px; }
.header-call svg { flex-shrink: 0; }

.hamburger {
  display: none;
  position: relative;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 70px 0 100px; background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--teal-dark); }
.hero-lead { font-size: 1.08rem; max-width: 520px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-mini-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-mini-stats li { display: flex; flex-direction: column; }
.hero-mini-stats strong { font-size: 1.5rem; color: var(--teal-dark); }
.hero-mini-stats span { font-size: 0.85rem; color: var(--text-muted); }

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-media img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.about-content h2 { color: var(--teal-dark); }
.about-highlights { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.about-highlights li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-dark); }
.about-highlights svg { color: var(--teal); flex-shrink: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(8,127,123,0.1);
  color: var(--teal);
  margin-bottom: 18px;
}
.service-card h3 { color: var(--teal-dark); font-size: 1.15rem; }
.service-card p { margin: 0; font-size: 0.95rem; }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(7,42,41,0.08);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(244,123,32,0.12);
  color: var(--orange);
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.08rem; color: var(--teal-dark); }
.why-card p { margin: 0; font-size: 0.93rem; }

/* =========================================================
   PROJECTS / GALLERY
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover, .project-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.08); }

.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7,42,41,0) 45%, rgba(7,42,41,0.55) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .gallery-zoom, .project-card:focus-visible .gallery-zoom { opacity: 1; }
.gallery-zoom svg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--teal-dark);
  transform: translateY(10px);
  transition: transform var(--transition);
}
.project-card:hover .gallery-zoom svg { transform: translateY(0); }

/* =========================================================
   PROCESS
   ========================================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
  counter-reset: step;
}
.process-step {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}
.process-step h3 { color: var(--teal-dark); font-size: 1.1rem; }
.process-step p { margin: 0; font-size: 0.93rem; }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-num, .stat-suffix {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
}
.stat-item p { color: rgba(255,255,255,0.85); margin: 6px 0 0; font-weight: 600; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-slider { max-width: 780px; margin: 0 auto; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}
.testimonial-card {
  min-width: 100%;
  margin: 0;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 22px;
}
.testimonial-card footer strong { display: block; color: var(--teal-dark); }
.testimonial-card footer span { font-size: 0.85rem; color: var(--text-muted); }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.testimonial-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(7,42,41,0.15);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.testimonial-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(7,42,41,0.2);
  border: none;
  padding: 0;
}
.testimonial-dot.active { background: var(--orange); width: 24px; border-radius: 6px; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  padding: 70px 0;
}
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: rgba(255,255,255,0.92); max-width: 560px; margin-left: auto; margin-right: auto; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info h2 { color: var(--teal-dark); }
.contact-details { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.contact-details svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group label span { color: var(--orange); margin-left: 3px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(7,42,41,0.14);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group.has-error input, .form-group.has-error textarea { border-color: #d9534f; }
.form-error { display: block; color: #d9534f; font-size: 0.8rem; min-height: 1em; margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.success { color: var(--teal-dark); }
.form-status.error { color: #d9534f; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,0.82); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 16px; }
.footer-logo .logo-img { height: 64px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange-light); }
.footer-contact li { font-size: 0.92rem; color: rgba(255,255,255,0.72); }

.footer-credit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.footer-bottom-text { margin: 0; color: rgba(255,255,255,0.6); }
.footer-credit { margin: 0; color: rgba(255,255,255,0.6); }
.footer-credit a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-admin-link { color: rgba(255,255,255,0.32); font-size: 0.78rem; }
.footer-admin-link:hover { color: rgba(255,255,255,0.6); }

/* =========================================================
   LIGHTBOX MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,30,29,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay[hidden] { display: none; }
.modal-box { max-width: 82vw; max-height: 84vh; }
.modal-img { display: flex; align-items: center; justify-content: center; }
.modal-img img {
  max-width: 82vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: fixed;
  top: 20px; right: 24px;
  z-index: 2001;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-nav:hover { background: rgba(255,255,255,0.25); }
.modal-nav-prev { left: 20px; }
.modal-nav-next { right: 20px; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--teal-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
.back-to-top:hover { background: var(--orange); transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1439px) {
  :root { --container-width: 1060px; }
}

@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-frame { max-width: 520px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 100px 30px 30px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open ul { flex-direction: column; gap: 22px; }
  .header-call span { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .services-grid, .why-grid, .projects-grid, .process-steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .testimonial-card { padding: 32px 26px; }
  .modal-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 1.3rem; }
  .modal-nav { width: 40px; height: 40px; }
  .modal-nav-prev { left: 10px; }
  .modal-nav-next { right: 10px; }
}

@media (max-width: 380px) {
  .services-grid, .why-grid, .projects-grid, .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-mini-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hamburger, .back-to-top, .modal-overlay, .cta-banner, .footer-admin-link { display: none !important; }
}
