/* =========================================================
   ASP SERVEGLOBE PRIVATE LIMITED
   style.css — mobile-first, single stylesheet, no imports
   ========================================================= */

:root {
  --primary:    #B7410E;  /* terracotta / burnt orange */
  --primary-dk: #90330B;  /* hover darken */
  --accent:     #C89B3C;  /* antique brass */
  --dark:       #2C1810;  /* deep coffee */
  --cream:      #FAF5EF;  /* warm off-white background */
  --text:       #2C1810;
  --text-mute:  #6B5B4F;
  --white:      #FFFFFF;
  --line:       #E6DBCE;  /* hairline borders on cream */

  --container:  1200px;
  --pad-x:      1.5rem;
  --radius:     8px;
  --radius-btn: 6px;
  --shadow:     0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 28px rgba(44, 24, 16, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset-ish base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--dark); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

/* Preserve visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: 4rem; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.15rem; color: var(--text-mute); }

.bg-cream  { background: var(--cream); }
.bg-white  { background: var(--white); }
.bg-dark   { background: var(--dark); color: var(--cream); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--primary-dk); text-decoration: none; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--dark);
}
.btn-outline:hover { background: var(--accent); color: var(--dark); }
.bg-dark .btn-outline { color: var(--cream); border-color: var(--accent); }
.bg-dark .btn-outline:hover { background: var(--accent); color: var(--dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--dark);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { color: var(--primary); }
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block;
  color: var(--dark);
  font-weight: 600;
  padding: 0.6rem 0.2rem;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--primary); text-decoration: none; }
.nav-menu a[aria-current="page"] { border-bottom: 2px solid var(--primary); }

@media (max-width: 767px) {
  .nav-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad-x) 1rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: block; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { padding: 0.85rem 0.2rem; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; gap: 1.5rem; align-items: center; }
  .nav-menu a { padding: 0.4rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(rgba(44,24,16,0.62), rgba(44,24,16,0.72)),
              linear-gradient(135deg, #B7410E 0%, #7a2c0a 45%, #2C1810 100%);
  background-size: cover;
  background-position: center;
}
.hero.has-img { background-blend-mode: normal; }
.hero .container { padding-block: 5.5rem; max-width: 900px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.92); max-width: 640px; }
.hero .btn-row { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Image slot with graceful gradient fallback */
.imgslot {
  background: linear-gradient(135deg, #C89B3C 0%, #B7410E 60%, #7a2c0a 100%);
  position: relative;
  overflow: hidden;
}
.imgslot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .card-img { aspect-ratio: 4 / 3; }
.card .card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-mute); font-size: 0.97rem; }
.card .card-cta { margin-top: auto; padding-top: 0.75rem; font-weight: 600; }

/* Feature (icon) blocks */
.feature { text-align: left; }
.feature .feature-ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(200,155,60,0.16);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

/* Value / bullet list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--text-mute);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--cream);
}
.ticks li strong { color: var(--dark); }
.bg-dark .ticks li { color: rgba(250,245,239,0.85); }
.bg-dark .ticks li strong { color: var(--white); }
.bg-dark .ticks li::before { box-shadow: inset 0 0 0 3px var(--dark); }

/* Split media + text */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split .imgslot { border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }

/* Definition / fact table */
.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.97rem;
}
.facts th, .facts td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 42%; color: var(--dark); font-weight: 700; background: #FBF7F1; }
.facts td { color: var(--text-mute); }

/* Region / cluster chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow);
}

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .imgslot { aspect-ratio: 3 / 2; border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: var(--primary); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 620px; margin-inline: auto; }
.cta-band .btn { background: var(--white); color: var(--primary); margin-top: 1.25rem; }
.cta-band .btn:hover { background: var(--cream); color: var(--primary-dk); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid .col-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 1.1rem; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.field .req { color: var(--primary); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #D8CBBB;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.88rem; color: var(--text-mute); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(250,245,239,0.82); padding-block: 3rem 0; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin: 0 0 0.9rem; letter-spacing: 0.02em; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-grid a { color: rgba(250,245,239,0.82); }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-legal { font-size: 0.9rem; line-height: 1.7; }
.footer-legal .k { color: var(--accent); font-weight: 600; }
.footer-brand p { color: rgba(250,245,239,0.7); font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: rgba(250,245,239,0.6);
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--text-mute); }
.small { font-size: 0.9rem; }
.stack > * + * { margin-top: 1rem; }
