/* EqUnity — prototype stylesheet */

:root {
  --color-bg: #faf9f6;
  --color-bg-alt: #eaf0f4;
  --color-surface: #ffffff;
  --color-text: #202428;
  --color-text-soft: #545c62;
  --color-brand: #1f5478;       /* EqUnity blue, extracted from the gear motif */
  --color-brand-dark: #0e3049;  /* darkest shade of the brand blue */
  --color-accent: #2f6690;      /* lighter shade of the brand blue, for buttons/links */
  --color-accent-soft: #dbe7ee; /* lightest tint, for badges/highlights */
  --color-border: #dde5ea;
  --color-placeholder-bg: #fff6e8;
  --color-placeholder-border: #e0b768;
  --color-footer-bg: #0a2436;
  --color-footer-text: #e7edf1;
  --color-footer-heading: #cfe0ea;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(14, 48, 73, 0.1);
  --shadow-lg: 0 8px 30px rgba(14, 48, 73, 0.16);
  --max-width: 1180px;
  font-size: 17px;
}

:root[data-theme="dark"] {
  --color-bg: #14181b;
  --color-bg-alt: #1b2227;
  --color-surface: #1d2429;
  --color-text: #e7edf1;
  --color-text-soft: #a9b6bd;
  --color-brand: #2f6690;
  --color-brand-dark: #8fc1e3;
  --color-accent: #3a7aa8;
  --color-accent-soft: #1f3a4d;
  --color-border: #2c363c;
  --color-placeholder-bg: #33290f;
  --color-placeholder-border: #a9642c;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #14181b;
    --color-bg-alt: #1b2227;
    --color-surface: #1d2429;
    --color-text: #e7edf1;
    --color-text-soft: #a9b6bd;
    --color-brand: #2f6690;
    --color-brand-dark: #8fc1e3;
    --color-accent: #3a7aa8;
    --color-accent-soft: #1f3a4d;
    --color-border: #2c363c;
    --color-placeholder-bg: #33290f;
    --color-placeholder-border: #a9642c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a { color: var(--color-accent); }
a:hover { color: var(--color-brand-dark); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--color-brand-dark);
  margin: 0 0 0.5em;
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--color-brand-dark); }

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-top: 0; }
h3 { font-size: 1.3rem; }

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

.section { padding: 3.5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 2rem 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-brand-dark);
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.3rem;
}
.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-brand-dark);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.97rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-brand-dark);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 28, 18, 0.35) 0%, rgba(30, 28, 18, 0.72) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
}
.hero__content h1,
.hero__content .tagline { color: #fff; }
.hero__content .tagline { font-size: 1.2rem; opacity: 0.95; max-width: 46em; }
.hero--page { padding: 0; }
.hero--page .hero__content { padding: 3rem 1.25rem; }
.hero--page h1 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--color-brand-dark); color: #fff; }
.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.1rem; margin: 0.6rem 0 0; }
.card li { margin-bottom: 0.35rem; }

.card-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface);
}
.card-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-media figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* ---------- Placeholder blocks (testimonials / calendar / legal) ---------- */
.placeholder {
  background: var(--color-placeholder-bg);
  border: 2px dashed var(--color-placeholder-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  color: var(--color-text);
}
.placeholder__tag {
  display: inline-block;
  background: var(--color-placeholder-border);
  color: #241a02;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption { text-align: left; padding: 0.8rem 1rem 0; font-size: 0.9rem; color: var(--color-text-soft); caption-side: bottom; }
.price-table th, .price-table td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--color-border); }
.price-table thead th { background: var(--color-brand); color: #fff; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.amount, .price-table th.amount { text-align: right; white-space: nowrap; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Gallery ---------- */
.gallery-group { margin-bottom: 2.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.7rem;
}
.gallery-grid a { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform 0.25s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 13, 8, 0.92);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--color-footer-heading); }
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.5rem;
}
.footer-grid h4 { color: var(--color-footer-heading); font-family: inherit; font-size: 1rem; margin-bottom: 0.6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #cfc6ae;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between;
}

/* ---------- Misc ---------- */
.badge {
  display: inline-block; background: var(--color-accent-soft); color: var(--color-brand-dark);
  padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin: 0.15rem 0.3rem 0.15rem 0;
}
.lede { font-size: 1.15rem; color: var(--color-text-soft); max-width: 60em; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 0.8rem; font-size: 1.05rem; }
.contact-list .label { display: block; font-size: 0.82rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.04em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff;
  padding: 0.6rem 1rem; z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.breadcrumb-hero-img { width: 100%; height: 260px; object-fit: cover; }
