/* Base Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #0a0a0a;
  background: #ffffff;
  line-height: 1.6;
}

:root {
  --container: 1120px;
  --black: #0a0a0a;
  --white: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --overlay: rgba(0,0,0,.55);
  --button-bg-color: #0a0a0a;
  --button-text-color: #ffffff;
  --button-border-color: #0a0a0a;
}

/* Hint to UAs/extensions that both schemes are supported */
html { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  :root {
    --button-bg-color: #ffffff;
    --button-text-color: #0a0a0a;
    --button-border-color: #ffffff;
  }
}

/* Compatibility with popular dark-mode extensions that toggle classes/attributes */
html.dark, html.dark-mode, body.dark-mode, html[data-theme="dark"], body[data-theme="dark"] {
  --button-bg-color: #ffffff;
  --button-text-color: #0a0a0a;
  --button-border-color: #ffffff;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: #fafafa; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.8); backdrop-filter: saturate(120%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); font-weight: 700; letter-spacing: 0.3px; }
.brand-text { font-size: 16px; }
.logo-mark { width: 28px; height: 28px; position: relative; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; inset: 0; border-radius: 6px; border: 2px solid var(--black); }
.logo-mark::after { transform: rotate(45deg); }

.site-nav .nav-list { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--black); font-weight: 500; }
.site-nav a:hover { opacity: 0.7; }
.nav-toggle { display: none; }
.site-nav .active { position: relative; }
.site-nav .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--black); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--black); text-decoration: none; color: var(--black); font-weight: 600; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--button-bg-color); color: var(--button-text-color); border-color: var(--button-border-color); }
.btn.btn-primary { background: var(--button-bg-color); color: var(--button-text-color); }
.btn-ghost { background: transparent; border-color: #cfcfcf; }
.btn-block { width: 100%; }

/* Ensure header button contrast overrides nav link color */
.site-nav .btn-primary { color: var(--button-text-color); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; align-items: stretch; }
.hero-media { position: absolute; inset: 0; }
.slideshow { position: absolute; inset: 0; overflow: hidden; }
.media-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 40%, rgba(255,255,255,0) 65%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 64px; color: white; }
.hero h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.5px; margin: 0 0 12px; color: #fff; }
.subtitle { color: #f0f0f0; max-width: 720px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 8px; }
.trust-bullets { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; padding: 0; list-style: none; color: #e8e8e8; opacity: 0.95; }

/* Slides */
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); animation: fadeZoom 24s linear infinite; }
.slide.is-active { opacity: 1; }
@keyframes fadeZoom {
  0%   { opacity: 0; transform: scale(1.04); }
  6%   { opacity: 1; }
  28%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.0); }
}

/* About */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.fact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 16px; list-style: none; margin: 24px 0 0; padding: 0; }
.service-grid li { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: #fff; }
.service-grid h3 { margin: 0 0 6px; font-size: 16px; }
.service-grid p { margin: 0; color: var(--muted); font-size: 14px; }
/* removed inline services top-right image styles */

/* Services header image */
.services-header { margin-top: 12px; margin-bottom: 16px; }
.services-image { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Services feature card under list */
.services-feature-card { margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; max-width: 640px; }
.services-feature-image { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Projects */
.section-intro { color: var(--muted); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.gallery .tile { position: relative; aspect-ratio: 4/3; background: #eee; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery .tile:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.is-open { display: flex; }
.lightbox-inner { position: relative; max-width: min(92vw, 1200px); max-height: 86vh; width: 100%; opacity: 0; transform: scale(0.97); transition: opacity .25s ease, transform .25s ease; }
.lightbox.is-open .lightbox-inner { opacity: 1; transform: scale(1); }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 8px; background: #000; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; height: 44px; width: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.lightbox .prev { left: -56px; }
.lightbox .next { right: -56px; }
.lightbox .close { top: -56px; right: 0; transform: none; height: 40px; width: 40px; }
.lightbox .counter { position: absolute; top: -52px; left: 0; color: #fff; font-size: 14px; opacity: 0.85; }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.areas-grid li { border: 1px dashed #ddd; padding: 10px 12px; border-radius: 10px; text-align: center; background: #fff; }

/* Area chips */
.areas-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.areas-chips .chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; color: var(--black); height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .1s ease; }
.areas-chips .chip:hover { background: #f5f5f5; transform: translateY(-1px); }
.areas-chips .chip:active { transform: translateY(0); }

/* Media helpers */
.media-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.media-card img { display: block; width: 100%; height: auto; }
.media-caption { padding: 10px 12px; color: var(--muted); font-size: 14px; }

/* Mobile Call Bar */
.call-bar { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); display: none; gap: 10px; background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 999px; padding: 8px; box-shadow: 0 8px 28px rgba(0,0,0,0.12); z-index: 40; }
.call-bar a { font-size: 14px; height: 36px; padding: 0 12px; }
@media (max-width: 680px) { .call-bar { display: flex; } }

/* Book */
.book-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: #fff; }
.book-copy p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.contact-list li { margin: 6px 0; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-form label { font-weight: 600; font-size: 13px; }
.book-form input { height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.book-form input:focus { outline: none; border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.book-form button { grid-column: 1 / -1; margin-top: 4px; }
.form-message { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a0a0a; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.footer-brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; }
.footer-inner a { color: #fff; text-decoration: none; }
.dot { opacity: 0.5; margin: 0 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr; }
  .fact-cards { grid-template-columns: repeat(3, 1fr); }
  .book-card { grid-template-columns: 1fr; }
  /* no-op for removed image */
}

@media (max-width: 680px) {
  .site-nav .nav-list { display: none; }
  .site-nav .nav-list li { margin: 0; }
  .site-nav .nav-list a { display: block; width: 100%; text-align: center; }
  .nav-toggle { display: inline-flex; height: 40px; align-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; }
  .hero-content { padding-top: 100px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .book-form { grid-template-columns: 1fr; }
  .lightbox .prev { left: 8px; }
  .lightbox .next { right: 8px; }
  .lightbox .close { top: 8px; right: 8px; }
  .lightbox .counter { top: auto; bottom: -28px; }
  body { transform: scale(0.75); transform-origin: top left; width: 133.333%; overflow-x: hidden; }
  .split { grid-template-columns: 1fr; }
  
  /* Center About section text on home page only */
  #about { text-align: center; }
  #about h2, #about p { text-align: center; }
}


