/* Shreevaari Technologies, site styles */
:root {
  --orange: #d95502;        /* from the business card */
  --orange-dark: #b44502;
  --orange-soft: #fff3eb;
  --grey: #8c8c8c;
  --ink: #23201d;
  --muted: #5f5953;
  --line: #ece6e1;
  --bg: #ffffff;
  --bg-alt: #faf7f4;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 32, 29, .08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-call { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(217, 85, 2, .3); }
.btn-call:hover { background: var(--orange-dark); }
.btn-whatsapp { background: #fff; color: #128c4a; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #effcf4; }
.btn-light { background: #fff; color: var(--orange-dark); }
.btn-light:hover { background: var(--orange-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--orange); margin-right: auto; }
.brand img { width: 72px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.35rem; letter-spacing: .1px; line-height: 1.1; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--orange); background: var(--orange-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.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); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--orange-soft), #fff 85%); padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.hero .accent { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 500; }
.hero-points li::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 6px; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f3c9ad; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 30px; height: 30px; }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin-bottom: .25em; }
.cta-band p { margin: 0; opacity: .92; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { text-align: center; padding: 8px 6px; }
.why-item svg { width: 44px; height: 44px; color: var(--orange); margin-bottom: 12px; }
.why-item p { color: var(--muted); margin: 0; }

/* Work gallery */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: #eee; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.work-count {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.work-count:empty { display: none; }
.work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); pointer-events: none;
}

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.about-copy .btn { margin-top: 8px; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); font-weight: 500;
  transition: border-color .2s, box-shadow .2s; overflow-wrap: anywhere;
}
a.contact-card:hover, .contact-card.has-copy:hover { border-color: #f3c9ad; box-shadow: var(--shadow); }
.contact-card.has-copy { align-items: center; gap: 10px; padding: 0; }
.contact-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px 8px 18px 20px; color: inherit; text-decoration: none; }
.copy-btn {
  flex: none; margin-right: 14px; padding: 8px 14px; border: 1.5px solid #f3c9ad; border-radius: 999px; background: var(--orange-soft);
  color: var(--orange-dark); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background-color .2s;
}
.copy-btn:hover { background: #ffe3d0; }
.copy-btn.done { background: var(--orange); border-color: var(--orange); color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 120; max-width: min(92vw, 420px);
  background: #23201d; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .95rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.toast[hidden] { display: none; }
.contact-card svg { width: 26px; height: 26px; color: var(--orange); flex: none; margin-top: 2px; }
.contact-card small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--orange-soft); }
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); padding: 24px 24px 80px; }
.map-fallback svg { width: 48px; height: 48px; color: var(--orange); }
.map-btn { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); }
.map-btn:hover { transform: translateX(-50%) translateY(-1px); }

/* Footer */
.site-footer { background: #1f1c19; color: #cfc8c1; padding: 56px 0 96px; } /* bottom room so the WhatsApp button never covers footer links */
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 36px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { background: #fff; border-radius: 10px; padding: 4px; width: 56px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 4px 0 0; font-size: .95rem; }
.footer-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .95rem; }
.footer-services li::before { content: "•"; color: var(--orange); margin-right: 8px; }
.footer-contact { display: grid; gap: 6px; align-content: start; font-size: .95rem; overflow-wrap: anywhere; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: #ffb889; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #36312c; margin-top: 36px; padding-top: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-credits { display: grid; gap: 4px; }
.footer-bottom .credit-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .credit-link:hover { color: #ffb889; }
.footer-bottom a { color: #cfc8c1; text-decoration: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 15, .92);
  display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lb-figure figcaption { color: #eee; margin-top: 14px; font-size: .98rem; }
.lb-title { color: #fff; }
.lb-counter { color: #bbb; margin-left: 8px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
body.lb-open { overflow: hidden; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px;
  background: var(--whatsapp); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float-label { max-width: 120px; overflow: hidden; white-space: nowrap; transition: max-width .3s, opacity .3s; }
.wa-float.compact .wa-float-label { max-width: 0; opacity: 0; }
.wa-float.compact { padding: 0 14px; gap: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; order: 3; }
  .header-call { order: 2; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 12px; }
  .hero { padding: 36px 0 56px; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 520px; }
  .section { padding: 60px 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .work-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .work-grid .work-item:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .brand img { width: 54px; }
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 14px; transform: none !important; }
  .brand-name { font-size: 1.05rem; }
  .brand-name span { display: block; }
  .header-call { padding: .6em; }
  .header-call .call-label { display: none; }
  .header-inner { gap: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px; }
  .service-icon { grid-row: span 2; margin: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-grid figcaption { font-size: .85rem; padding: 20px 10px 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .wa-float { right: 14px; bottom: 14px; padding: 0 14px; gap: 0; }
  .wa-float .wa-float-label { max-width: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
