/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- Color system (LIGHT = current) ---------- */
:root {
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --bg-soft: #e5e7eb;

  --text-main: #111827;
  --text-muted: #6b7280;

  --accent: #2563eb;       /* blue-600 */
  --accent-soft: #dbeafe;  /* blue-100 */
  --accent-alt: #f97316;   /* orange-500 */

  --border-subtle: #e5e7eb;
  --danger: #ef4444;

  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.15);
  --max-width: 1040px;

  --nav-height: 70px;
}

/* ---------- Dark Theme (legacy colors) ---------- */
:root.dark {
  --bg-page: #020b1a;
  --bg-card: #091829;
  --bg-soft: #0e223a;

  --text-main: #f5f7fb;
  --text-muted: #a9b3c8;

  --accent: #ffb347;
  --accent-soft: #ffde9e;
  --accent-alt: #ffb347;

  --border-subtle: #1c3554;
  --danger: #ff6b6b;

  --shadow-soft: 0 20px 35px rgba(0, 0, 0, 0.45);
}

/* ---------- Utility containers ---------- */

main {
  max-width: var(--max-width);
  margin: 80px auto 40px;
  padding: 0 16px;
}

.section {
  margin: 32px 0;
}

.section-alt {
  background: var(--bg-soft);
  padding: 32px 16px;
  margin: 32px -16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Theme toggle button ---------- */

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: var(--bg-soft);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

p {
  margin: 0 0 0.75rem;
  color: var(--text-main);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Top Banner ---------- */

.top-banner {
  background: var(--text-main);
  color: var(--bg-page);
  text-align: center;
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 1100; /* stays above the blurred backdrop */
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-title-main {
  font-weight: 750;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.nav-title-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Desktop nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* Call CTA */

.nav-call {
  margin-left: 8px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-call span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-call strong {
  font-size: 0.95rem;
}

.nav-call:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Hamburger button (mobile) */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
  border-radius: 10px;
  line-height: 0;
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Mobile menu backdrop (blur behind menu only) ---------- */

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 26, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000; /* below header/menu */
}

.nav-backdrop.open {
  display: block;
}

:root.dark .nav-backdrop {
  background: rgba(2, 11, 26, 0.55);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
  margin-top: 32px;
}

.hero-inner {
  margin-top: 24px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge-pill,
.badge-location {
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--accent-soft);
  white-space: nowrap;
}

/* Better badge text color per theme */
.badge-pill { color: #1d4ed8; }
:root.dark .badge-pill { color: #0b1a2e; }

.badge-location {
  background: var(--bg-soft);
  color: #374151;
}
:root.dark .badge-location { color: var(--text-main); }

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-note span {
  font-weight: 600;
}

/* Hero right card */

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-subtle);
}

.hero-card h3 {
  margin-bottom: 6px;
}

.hero-card ul {
  padding-left: 18px;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border-color: var(--accent-soft);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

/* ---------- Cards & Grids ---------- */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  margin: 16px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

/* Checklists & lists */

.checklist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--accent);
}

/* ---------- Pricing Table ---------- */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.pricing-table th {
  text-align: left;
  font-weight: 650;
  background: var(--bg-soft);
}

.pricing-table tr:nth-child(even) td {
  background: var(--bg-soft);
}

/* ---------- Contact Layout ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  margin: 8px 0;
  font-size: 0.95rem;
}

.contact-item a {
  font-weight: 600;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-main);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Timeline & History ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-left: 2px solid var(--border-subtle);
}

.timeline li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 16px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline-year {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.timeline-body h3 {
  margin: 2px 0 4px;
}

.timeline-body p {
  margin: 0;
}

/* History / about 2-column */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 20px;
}

/* Photo gallery */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 4px;
}

.photo-grid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.photo-grid figcaption {
  font-size: 0.8rem;
  margin-top: 4px;
  color: var(--text-muted);
}

.gallery-heading {
  margin-top: 18px;
}

/* ---------- Misc ---------- */

.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-photo img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-photo figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.seo-links {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer,
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* ---------- Mobile & Responsive ---------- */

@media (max-width: 900px) {
  main { margin-top: 72px; }

  .nav-inner { gap: 8px; }

  .nav-call { display: none; }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 1102; /* above backdrop/menu */
  }

  /* Keep theme button above blur */
  .theme-toggle {
    position: relative;
    z-index: 1102;
  }

  /* FLOATING mobile menu (not full width, scrollable) */
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));

    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;

    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);

    z-index: 1101; /* above backdrop */

    max-height: 60vh;
    overflow-y: auto;

    /* prevent blur on menu */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--text-main);
    font-size: 18px;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links a.active { color: var(--accent); }

  .hero { grid-template-columns: 1fr; }

  .contact-grid,
  .grid-2,
  .two-column { grid-template-columns: 1fr; }

  .hero-card { order: -1; }

  .section-alt { margin: 24px -16px; }
}

@media (max-width: 600px) {
  .badge-row { gap: 4px; }
  .nav-title-main { font-size: 0.95rem; }
  .nav-title-sub { display: none; }
}
