/* ============================================================
   shared.css — Common styles used across all pages
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --bg:         #FFFFFF;
  --bg-subtle:  #F4F5F7;
  --bg-card:    #FFFFFF;
  --border:     #E2E4E8;
  --text:       #081221;
  --text-2:     #414F58;
  --text-3:     #8A9199;
  --accent:     #22B2D0;
  --accent-bg:  rgba(34, 178, 208, 0.08);
  --amber:      #ECAD53;
  --amber-bg:   rgba(236, 173, 83, 0.08);
  --rose:       #CF4B5D;
  --rose-bg:    rgba(207, 75, 93, 0.08);
  --logo-filter: none;
}

.dark {
  --bg:         #081221;
  --bg-subtle:  #0C1929;
  --bg-card:    #0F1E30;
  --border:     #1B2F46;
  --text:       #EEF0F3;
  --text-2:     #A8B2BC;
  --text-3:     #4E6070;
  --accent:     #22B2D0;
  --accent-bg:  rgba(34, 178, 208, 0.10);
  --amber:      #ECAD53;
  --amber-bg:   rgba(236, 173, 83, 0.08);
  --rose:       #CF4B5D;
  --rose-bg:    rgba(207, 75, 93, 0.07);
  --logo-filter: brightness(0) invert(1);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.2s;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ── HEADER ── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.hdr-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hdr-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.hdr-logo:hover { color: var(--accent); }

.hdr-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.hdr-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.hdr-nav a:hover,
.hdr-nav a.active {
  color: var(--text);
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── AVAILABILITY BADGE ── */
.avail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ── THEME TOGGLE ── */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-btn:hover { border-color: var(--accent); }

.theme-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── HERO (shared across home, services, contact) ── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.hero-h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.hero-sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

/* ── SECTION LABEL ── */
.sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.sec-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}

/* ── DIVIDER ── */
.hr-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hr-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.375rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #1a9fbc;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1.375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

/* ── CTA BAND (home + services) ── */
.cta-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.cta-h {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  max-width: 22ch;
}

.cta-body {
  max-width: 40ch;
}

.cta-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}

.ft {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ft-name {
  font-family: 'Crimson Pro', serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-2);
}

.ft-links {
  display: flex;
  gap: 1.5rem;
}

.ft-links a {
  font-size: 0.84rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cta-band { flex-direction: column; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .ft { flex-direction: column; align-items: flex-start; }
  .hdr-nav { display: none; }
  .avail span:not(.avail-dot) { display: none; }
}
