/* CasAmica — main site (light, blue/orange) */

:root {
  --disclaimer-h: 30px;
  --cm-bg: #f4f7fb;
  --cm-surface: #ffffff;
  --cm-border: #d8e2ef;
  --cm-text: #1a2b3c;
  --cm-muted: #4a5f73;
  --cm-blue: #1a5da8;
  --cm-blue-dark: #134880;
  --cm-orange: #e8751a;
  --cm-green: #2d8f4e;
  --cm-max: 1080px;
}

.cm-site {
  min-height: calc(100vh - var(--disclaimer-h));
  background: var(--cm-bg);
  color: var(--cm-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.cm-topbar {
  background: var(--cm-surface);
  border-bottom: 1px solid var(--cm-border);
  padding: 1rem 1.25rem 0.75rem;
}

.cm-topbar-inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cm-logo {
  display: block;
  line-height: 0;
}

.cm-logo img {
  height: 56px;
  width: auto;
  max-width: min(260px, 70vw);
}

.cm-tagline {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cm-blue);
  letter-spacing: 0.02em;
}

.cm-nav {
  position: sticky;
  top: var(--disclaimer-h);
  z-index: 50;
  background: var(--cm-blue);
  box-shadow: 0 2px 8px rgba(26, 93, 168, 0.25);
}

.cm-nav-inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.cm-nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-nav-list a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.cm-nav-list a:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.08);
}

.cm-nav-list a.is-active {
  color: #ffffff;
  border-bottom-color: var(--cm-orange);
  background: rgba(0, 0, 0, 0.06);
}

.cm-nav-list a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

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

.cm-banner {
  margin: 0 -1.25rem 2rem;
  background: var(--cm-green);
  color: #ffffff;
  text-align: center;
  padding: 1.1rem 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cm-hero-img {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cm-border);
  box-shadow: 0 8px 24px rgba(26, 93, 168, 0.1);
}

.cm-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.cm-hero {
  margin-bottom: 2.5rem;
}

.cm-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--cm-blue-dark);
  font-weight: 800;
}

.cm-hero-lead {
  color: var(--cm-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 68ch;
}

.cm-section {
  margin-bottom: 2.75rem;
}

.cm-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--cm-blue-dark);
  margin: 0 0 1rem;
  font-weight: 700;
}

.cm-section h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--cm-text);
}

.cm-section p {
  color: var(--cm-muted);
  margin: 0 0 1rem;
  max-width: 72ch;
}

.cm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.cm-card {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 4px 16px rgba(26, 93, 168, 0.06);
}

.cm-card-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cm-orange);
  margin-bottom: 0.6rem;
}

.cm-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--cm-blue);
}

.cm-card p {
  margin: 0;
  font-size: 0.95rem;
}

.cm-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  padding: 1.5rem;
  align-items: start;
}

.cm-quote img {
  border-radius: 10px;
  width: 140px;
  height: auto;
}

.cm-quote blockquote {
  margin: 0;
  font-style: italic;
  color: var(--cm-muted);
  border-left: 4px solid var(--cm-orange);
  padding-left: 1rem;
}

.cm-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--cm-text);
  font-size: 0.95rem;
}

.cm-quote cite span {
  display: block;
  font-weight: 500;
  color: var(--cm-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.cm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.cm-stat {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.cm-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--cm-blue);
  line-height: 1.2;
}

.cm-stat span {
  font-size: 0.82rem;
  color: var(--cm-muted);
  font-weight: 600;
}

.cm-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cm-price-card {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}

.cm-price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cm-blue);
  line-height: 1;
  margin: 0.5rem 0;
}

.cm-price-card .label {
  font-size: 0.9rem;
  color: var(--cm-muted);
  margin: 0;
}

.cm-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--cm-blue);
  font-weight: 700;
  text-decoration: none;
}

.cm-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cm-link:focus-visible {
  outline: 2px solid var(--cm-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.cm-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cm-contact-item {
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
}

.cm-contact-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cm-blue);
  margin: 0 0 0.35rem;
}

.cm-contact-item dd {
  margin: 0;
  color: var(--cm-text);
}

.cm-contact-item a {
  color: var(--cm-blue-dark);
}

.cm-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--cm-muted);
  max-width: 72ch;
}

.cm-list li {
  margin-bottom: 0.5rem;
}

.cm-footer {
  background: var(--cm-blue-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.cm-footer-inner {
  max-width: var(--cm-max);
  margin: 0 auto;
  text-align: center;
}

.cm-footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.cm-footer-contact {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.cm-footer-contact a {
  color: #ffffff;
}

.cm-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .cm-grid-3,
  .cm-prices,
  .cm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cm-grid-2,
  .cm-grid-3,
  .cm-prices,
  .cm-stats,
  .cm-contact-grid {
    grid-template-columns: 1fr;
  }

  .cm-quote {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cm-quote img {
    margin: 0 auto;
  }

  .cm-quote blockquote {
    border-left: none;
    border-top: 4px solid var(--cm-orange);
    padding-left: 0;
    padding-top: 1rem;
  }

  .cm-tagline {
    width: 100%;
  }
}
