/* ===========================================================
   Creative Solutions Consulting — Global Styles
   =========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f2;
  --color-bg-dark: #141414;
  --color-footer: #dfe4d2;
  --color-text: #1a1a1a;
  --color-text-muted: #5b6157;
  --color-text-inverse: #f4f6f2;
  --color-primary: #141414;
  --color-primary-light: #2e2e2e;
  --color-accent: #336600;
  --color-accent-dark: #264d00;
  --color-border: #e0e3dc;
  --color-success-bg: #eef7ee;
  --color-success-text: #2a6b2f;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(30, 33, 38, 0.08);
  --shadow-md: 0 6px 20px rgba(30, 33, 38, 0.10);
  --shadow-lg: 0 16px 40px rgba(30, 33, 38, 0.16);
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

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

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: var(--color-text-inverse); }
.section-dark p { color: #c9ccd1; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover { box-shadow: var(--shadow-sm); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  line-height: 1.1;
}
.brand-logo {
  height: 52px;
  width: auto;
}
.brand-tag-inline {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: 130px;
}
@media (max-width: 560px) {
  .brand-logo { height: 38px; }
  .brand-tag-inline { display: none; }
}
/* legacy text wordmark — kept for footer + screen readers */
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { border-color: var(--color-accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-phone { display: block; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    padding: 8px 24px 20px;
  }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 15% 20%, rgba(51,102,0,0.10), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(69,78,88,0.07), transparent 40%);
}
.hero-inner { max-width: 720px; }
.hero h1 { margin-bottom: 20px; color: var(--color-primary); }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: heroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-inner > *:nth-child(1) { animation-delay: 0s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.32s; }
.hero p.lead { font-size: 1.15rem; margin-bottom: 32px; }
.hero-tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Path Cards (home segmentation) ---------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.path-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.path-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.path-card h3 { margin-bottom: 8px; }
.path-card p { flex-grow: 1; }
.path-card .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Media placeholder (swap-in-ready) ---------- */
.media-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(135deg, rgba(69,78,88,0.07) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(315deg, rgba(69,78,88,0.07) 25%, transparent 25%) -10px 0/20px 20px,
    var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.card:hover .media-placeholder { transform: scale(1.04); }
.media-placeholder .mp-inner {
  text-align: center;
  padding: 12px;
  color: var(--color-text-muted);
}
.media-placeholder svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: 0.55; }
.media-placeholder .mp-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.media-placeholder.tall { aspect-ratio: 3 / 4; }
.media-placeholder.wide { aspect-ratio: 16 / 9; }

/* ---------- Card grid (properties / listings / projects) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.path-card,
.card,
.service-item,
.testimonial,
.form-card,
.cta-band,
.section-head,
.stats-bar > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}
.path-card.in-view,
.card.in-view,
.service-item.in-view,
.testimonial.in-view,
.form-card.in-view,
.cta-band.in-view,
.section-head.in-view,
.stats-bar > div.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* card hover transform above still needs to win once revealed */
.card.in-view:hover { transform: translateY(-3px); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  margin-bottom: 10px;
  align-self: flex-start;
}
.card-badge.accent { background: rgba(51,102,0,0.12); color: var(--color-accent-dark); }
.card h3 { margin-bottom: 4px; }
.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.card-desc { font-size: 0.92rem; flex-grow: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.card-price { font-weight: 700; color: var(--color-primary); }

/* clickable card as button reset */
.card-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}
.filter-bar select,
.filter-bar input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
.filter-count { font-size: 0.85rem; color: var(--color-text-muted); margin-left: auto; }

/* ---------- Services list ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-item {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
}
.service-item .path-icon { margin-bottom: 14px; }
.service-item ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.service-item ul li { margin-bottom: 6px; }

/* ---------- Case studies ---------- */
.case-study {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.case-study h3 { margin-bottom: 4px; }
.case-study .case-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.case-study .case-row { margin-bottom: 12px; }
.case-study .case-row:last-child { margin-bottom: 0; }
.case-study .case-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 3px;
}
.case-study .case-row p { margin: 0; font-size: 0.94rem; }
.case-outcome-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.case-outcome-stats div { font-size: 0.88rem; }
.case-outcome-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--color-primary);
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote {
  font-size: 1.05rem;
  color: var(--color-text);
  font-style: italic;
}
.testimonial .author { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); }
.testimonial .author-role { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(51,102,0,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 12px; }
.form-success {
  display: none;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-success.visible { display: block; }

/* ---------- Modal (listing detail) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 33, 38, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.18s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.modal-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; }
.modal-gallery .media-placeholder { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 220px; }
.modal-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.modal-body { padding: 28px; }
.modal-body .card-meta { margin-bottom: 16px; }
.modal-amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  font-size: 0.88rem;
}
.modal-amenities li::before { content: "✓ "; color: var(--color-accent); font-weight: 700; }
.modal-divider { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }

@media (max-width: 640px) {
  .modal-gallery { grid-template-columns: 1fr; }
  .modal-gallery-side { grid-template-rows: 1fr 1fr; grid-auto-flow: column; grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 56px 32px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { color: var(--color-text-muted); max-width: 540px; margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .brand-name { color: var(--color-primary); }
.footer-logo { height: 60px; width: auto; margin-bottom: 4px; }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; color: var(--color-text); }
.footer-col h4 {
  color: var(--color-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--color-text);
}
.footer-col a:hover { color: var(--color-accent-dark); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.badge-note {
  display: inline-block;
  background: #eef4e6;
  color: var(--color-accent-dark);
  border: 1px solid #cfe0b8;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 24px;
}

.footer-legal-links a {
  display: inline;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-legal-links a:hover { color: var(--color-accent-dark); text-decoration-color: var(--color-accent-dark); }
.footer-legal-links .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content .updated-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul {
  color: var(--color-text-muted);
  padding-left: 20px;
  margin-bottom: 1em;
}
.legal-content li { margin-bottom: 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card,
  .card,
  .service-item,
  .testimonial,
  .form-card,
  .cta-band,
  .section-head,
  .stats-bar > div,
  .hero-inner > *,
  .nav-toggle span,
  .media-placeholder,
  .modal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
