/* =========================================================
   SwarnAndhra Water Plant — stylesheet
   Sections: Reset, Variables, Typography, Layout helpers,
   Header/Nav, Language switch, Hero, Buttons, Sections,
   Cards, Carousel, Contact/Forms, Careers, Footer, Responsive
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Variables ---------- */
:root {
  --color-primary: #114b5f;      /* deep teal */
  --color-primary-dark: #0a2e39;
  --color-primary-light: #1b6b84;
  --color-accent: #c99a3c;       /* warm gold */
  --color-accent-dark: #9c771f;
  --color-bg: #f7fafb;
  --color-bg-alt: #eaf6f8;
  --color-surface: #ffffff;
  --color-text: #1d2d32;
  --color-text-muted: #51676d;
  --color-border: #d9e6e9;
  --shadow-sm: 0 2px 8px rgba(17, 75, 95, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 75, 95, 0.12);
  --radius: 10px;
  --max-width: 1180px;
  --font-base: 'Noto Sans', 'Noto Sans Telugu', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text); }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #eaf6f8;
}
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: #cfe6ea; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.text-center { text-align: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #1d2d32;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 52px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.lang-switch button.active {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary-dark);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { top: -6px; position: absolute; }
.nav-toggle span::after { top: 6px; position: absolute; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #2a2110;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #d8a944; box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(10,46,57,0.92) 0%, rgba(17,75,95,0.86) 55%, rgba(27,107,132,0.78) 100%),
    url('../images/hero-backdrop.jpg') center 30% / cover no-repeat;
  color: #fff;
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero .lead { color: #d9eef2; margin-bottom: 1.6em; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--color-accent);
  font-weight: 800;
}
.hero-stat span {
  font-size: 0.85rem;
  color: #cfe6ea;
}
.hero-art {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px;
}
.hero-art img { border-radius: 6px; }

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 56px 0 64px;
}
.page-header h1 { color: #fff; margin-bottom: 0.3em; }
.page-header p { color: #d9eef2; max-width: 620px; }
.breadcrumb {
  font-size: 0.85rem;
  color: #bcdfe6;
  margin-bottom: 10px;
}
.breadcrumb a { font-weight: 600; color: #fff; }

/* ---------- Service / feature cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.price-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-text);
}
.price-list li span:last-child {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.price-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}
.price-note + .price-note { margin-top: 4px; }

/* ---------- Why-us list ---------- */
.feature-list { display: grid; gap: 18px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-item .tick {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #2a2110;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.feature-item h4 { margin: 0 0 2px; font-size: 1rem; color: var(--color-primary-dark); }
.feature-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Carousel / Gallery ---------- */
.carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #0e4a5c;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.carousel-slide img { width: 100%; height: 360px; object-fit: cover; }
.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,46,57,0.88), transparent);
  color: #fff;
  padding: 36px 28px 18px;
}
.carousel-caption h3 { color: #fff; margin-bottom: 2px; }
.carousel-caption p { color: #dff1f4; margin: 0; font-size: 0.92rem; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  padding: 0;
}
.carousel-dots button.active { background: var(--color-primary); width: 26px; border-radius: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-accent);
  color: #2a2110;
  padding: 48px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #2a2110; margin-bottom: 4px; }
.cta-banner p { color: #4a3a16; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { display: grid; gap: 22px; margin-top: 10px; }
.contact-list .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list .icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.contact-list h4 { margin: 0 0 2px; color: var(--color-primary-dark); }
.contact-list p { margin: 0; color: var(--color-text-muted); }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hours-table td:first-child { color: var(--color-text-muted); padding-right: 24px; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--color-primary-dark); padding-left: 24px; }

/* ---------- Careers page ---------- */
.job-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.job-card h3 { margin: 0; }
.job-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.job-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  white-space: nowrap;
}
.job-tag.accent { background: #fbefd7; color: var(--color-accent-dark); }
.job-section { margin-top: 16px; }
.job-section h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.job-section ul { display: grid; gap: 6px; }
.job-section ul li {
  padding-left: 18px;
  position: relative;
  color: var(--color-text);
}
.job-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.job-apply {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.job-apply p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }

.no-openings {
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfe6ea;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid p { color: #a9c7cd; font-size: 0.92rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #cfe6ea; font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #87a9af;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--color-border); }
  .nav-actions { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .job-card-head { flex-direction: column; }
}
