/* styles.css — Mobile-first, Chocolate Truffle palette, modern typography
   - Author: Croc Infotech (design prototype)
   - Notes: Use semantic elements, smooth micro-interactions, accessibility focus
*/

/* Color system — Pastel theme (mobile-first) */
:root {
  /* Pastel tokens */
  --ct-deep: #2b2b39; /* deep slate for text */
  --ct-rich: #7f7bf0; /* soft indigo accent */
  --ct-mid: #cfc8ff; /* pastel lavender */
  --ct-warm: #ffd7b3; /* soft peach */
  --ct-cream: #fffaf6; /* pale cream */
  --green: #dff7e6; /* pastel mint */

  --bg: var(--ct-cream);
  --surface: #ffffff;
  --muted: #8b88a2;
  --text: #21202a;
  --danger: #b00020;

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 8px 24px rgba(43, 36, 57, 0.06);
  --shadow-md: 0 20px 60px rgba(43, 36, 57, 0.08);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --font-serif: "Playfair Display", Georgia, serif;
  --base-size: 16px;

  --ease-fast: 160ms cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease: 260ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Base / reset */
html {
  font-size: var(--base-size);
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utilities */
.center {
  text-align: center;
}
.row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.muted {
  color: var(--muted);
}
.focus-ring {
  box-shadow: 0 0 0 4px rgba(127, 123, 240, 0.12);
  outline: none;
}

/* Accessibility focus */
:focus {
  outline: 3px solid rgba(127, 123, 240, 0.12);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}
a:hover,
a:focus {
  color: var(--ct-rich);
  transform: translateY(-2px);
}

/* Headings (typographic scale) */
h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.04;
  color: var(--ct-deep);
  margin: 0 0 0.4rem;
}
h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--ct-deep);
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.lead {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: var(--space-md);
}

/* Utility grids */
.grid {
  display: grid;
  gap: var(--space-md);
}
.two-up {
  grid-template-columns: 1fr;
}
.three-up {
  grid-template-columns: 1fr;
}

/* Small utilities */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Navigation improvements: mobile panel, accessible toggle, and desktop inline */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(
    180deg,
    rgba(251, 246, 241, 0.96),
    rgba(251, 246, 241, 0.92)
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(62, 39, 35, 0.06);
}

/* Section background utilities */
.section-peach {
  background: var(--ct-warm);
  color: var(--ct-deep);
}
.section-green {
  background: var(--green);
}

/* small content constrain */
.constrain {
  max-width: 700px;
  margin: 0 auto;
}

/* Tag / pill */
.tag {
  display: inline-block;
  background: var(--ct-mid);
  color: var(--ct-deep);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  margin: 0.25rem;
}

/* Hero links on mobile (card) */
.hero-copy .btn.link {
  color: var(--ct-rich);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.9rem 0;
}
.brand {
  font-weight: 700;
  color: var(--ct-deep);
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-strong {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ct-rich);
  margin-left: 0.3rem;
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.45rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.nav-toggle:focus {
  box-shadow: 0 0 0 4px rgba(127, 123, 240, 0.14);
  outline: none;
}
.hamburger {
  width: 22px;
  height: 2px;
  background: var(--ct-deep);
  position: relative;
  display: inline-block;
  transition: background var(--ease);
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: inherit;
  transition: transform var(--ease), top var(--ease), opacity var(--ease);
}
.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.primary-nav {
  position: fixed;
  inset: 64px 12px auto 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  width: calc(100% - 24px);
  max-width: 420px;
}
.primary-nav.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.primary-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: var(--ct-deep);
  font-weight: 700;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.primary-nav a:hover,
.primary-nav a:focus {
  background: linear-gradient(
    90deg,
    rgba(207, 200, 255, 0.08),
    rgba(127, 123, 240, 0.02)
  );
  color: var(--ct-rich);
  transform: translateY(-2px);
}
.primary-nav a.active {
  background: linear-gradient(
    90deg,
    rgba(127, 123, 240, 0.08),
    rgba(207, 200, 255, 0.04)
  );
  border-left: 3px solid var(--ct-rich);
  padding-left: 0.7rem;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    width: auto;
    overflow: auto;
  }
  .primary-nav ul {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem; /* breathing room from the edge */
    white-space: nowrap;
  }
  .primary-nav a {
    padding: 0.28rem 0.48rem;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .primary-nav a:hover {
    color: var(--ct-deep);
    background: rgba(207, 200, 255, 0.03);
    transform: translateY(-2px);
  }
  .primary-nav a.active {
    color: var(--ct-deep);
    background: linear-gradient(
      90deg,
      rgba(207, 200, 255, 0.06),
      rgba(127, 123, 240, 0.02)
    );
    padding: 0.28rem 0.48rem;
  }
}

/* Small header spacing on wide screens */
@media (min-width: 1200px) {
  .header-inner {
    padding: 1rem 0;
  }
}

/* Hero — mobile-first pastel landing */
.hero {
  padding: var(--space-xl) 0;
  background: linear-gradient(
    135deg,
    rgba(127, 123, 240, 0.96),
    rgba(255, 215, 179, 0.94)
  );
  color: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

/* Mobile-first hero copy: compact white card for legibility */
.hero-copy {
  background: rgba(255, 255, 255, 0.96);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--ct-deep);
}
.hero-copy a {
  color: var(--ct-rich);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.06;
  margin-bottom: 0.35rem;
  color: inherit; /* inherits from .hero-copy on mobile */
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto var(--space-md);
  font-size: 1rem;
}

/* Desktop: remove card and use dark hero background with white copy */
@media (min-width: 680px) {
  .hero-copy {
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: left;
    color: var(--surface);
  }
  .hero-title {
    color: var(--surface);
  }
  .hero-sub {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 var(--space-md);
  }
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero features (mobile-first stacked pills, desktop inline) */
.hero-features {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  margin: var(--space-md) 0;
  list-style: none;
  padding: 0;
}
.feature {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(127, 123, 240, 0.12),
    rgba(255, 215, 179, 0.06)
  );
  color: var(--ct-rich);
  font-size: 1.1rem;
}
.feature-body strong {
  display: block;
}
.feature-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero visual (right-side mockups) — hidden on mobile */
.hero-visual {
  display: none;
}
.hero-visual .feature-card {
  padding: calc(var(--space-md) - 4px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(127, 123, 240, 0.06);
  box-shadow: 0 8px 28px rgba(43, 36, 57, 0.06);
  margin-bottom: var(--space-md);
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease);
}
.hero-visual .card-visual {
  height: 86px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(127, 123, 240, 0.08),
    rgba(255, 215, 179, 0.06)
  );
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.hero-visual .card-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ensure hero right column doesn't push off-screen on very wide layouts */
.container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: 1260px;
}
.hero-visual .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 680px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 var(--space-md);
  }
  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-md) * 0.6);
    align-items: stretch;
  }
  .hero-inner {
    grid-template-columns: 1fr minmax(280px, 380px);
    align-items: start;
    gap: var(--space-lg);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.btn.primary {
  background: linear-gradient(180deg, var(--ct-rich), var(--ct-mid));
  color: var(--surface);
  box-shadow: 0 12px 36px rgba(43, 36, 57, 0.08);
}
.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(43, 36, 57, 0.12);
}
.btn.link {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-decoration: underline;
}

/* Badges directly under hero CTAs for quick social proof */
.hero-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
}
.hero-badges .badge {
  background: rgba(127, 123, 240, 0.12);
  color: var(--surface);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(43, 36, 57, 0.06);
}

.hero-visual {
  display: none;
  transform: translateY(-4px);
}
.hero-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform-origin: center;
}
.hero-visual:hover .hero-svg {
  transform: translateY(-6px) scale(1.02);
  transition: transform 360ms ease;
}
.scroll-indicator {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--ct-deep); /* visible on mobile white hero card */
  font-size: 1.1rem;
}
@media (min-width: 680px) {
  .scroll-indicator {
    color: rgba(255, 255, 255, 0.92);
  }
  .hero-copy a {
    color: rgba(255, 255, 255, 0.92);
  }
}

/* make hero visual visible on wider screens */
@media (min-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(280px, 380px);
  }
}

/* Sections base */
.section {
  padding: var(--space-xl) 0;
}
.section .container {
  padding: 0;
}
.section h2 {
  font-size: 1.15rem;
  color: var(--ct-deep);
  margin-bottom: 0.6rem;
}
.lead {
  margin-bottom: var(--space-md);
  color: var(--muted);
}
.section.alt {
  background: linear-gradient(
    180deg,
    rgba(251, 246, 241, 1),
    rgba(251, 246, 241, 0.98)
  );
}

/* Card system */
.card {
  background: linear-gradient(180deg, #fff, var(--surface));
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease),
    border-left 220ms ease;
  border-left: 3px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--ct-warm);
}

/* Metrics — bold stat card design */
.metrics-section {
  background: linear-gradient(
    135deg,
    var(--ct-cream) 0%,
    rgba(207, 200, 255, 0.08) 100%
  );
}
.metrics-new {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-lg);
}
.metric-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--ct-rich);
}
.metric-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ct-rich);
  line-height: 1;
}
.metric-label {
  font-weight: 600;
  color: var(--ct-deep);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .metrics-new {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* SaaS & Subscription Systems — accordion feature blocks */
.saas-section {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 179, 0.12) 0%,
    var(--ct-cream) 100%
  );
}
.saas-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}
.saas-feature {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ct-rich);
  transition: transform var(--ease), box-shadow var(--ease),
    background var(--ease);
}
.saas-feature:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  background: rgba(127, 123, 240, 0.02);
}
.saas-icon {
  font-size: 2rem;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saas-content h4 {
  margin: 0 0 0.4rem;
  color: var(--ct-deep);
}
.saas-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .saas-features {
    grid-template-columns: repeat(3, 1fr);
  }
  .saas-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--ct-rich);
  }
  .saas-feature:hover {
    transform: translateY(-6px);
  }
}

/* Tech Stack — card-based with icons */
.tech-stack-section {
  background: linear-gradient(
    135deg,
    rgba(207, 200, 255, 0.1) 0%,
    var(--ct-cream) 100%
  );
}
.tech-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-lg);
}
.tech-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease), background var(--ease);
}
.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--ct-rich);
  background: linear-gradient(
    180deg,
    rgba(127, 123, 240, 0.03),
    rgba(255, 215, 179, 0.02)
  );
}
.tech-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.tech-name {
  font-weight: 700;
  color: var(--ct-deep);
  font-size: 1.05rem;
  margin: 0.4rem 0;
}
.tech-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Case Studies — enhanced with metrics */
.cases-section {
  background: linear-gradient(
    135deg,
    var(--ct-cream) 0%,
    rgba(255, 215, 179, 0.08) 100%
  );
}
.cases-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}
.case-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--ct-rich);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.case-badge {
  display: inline-block;
  background: linear-gradient(180deg, var(--ct-mid), var(--ct-rich));
  color: var(--surface);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.case-header h4 {
  margin: 0 0 0.6rem;
  color: var(--ct-deep);
  font-size: 1.2rem;
}
.case-desc {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.case-metrics {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(127, 123, 240, 0.08);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.metric-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ct-rich);
  line-height: 1;
}
.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.case-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .case-card {
    padding: 1.8rem;
  }
}

/* Product Engineering Model */
.pem-section {
  background: linear-gradient(
    135deg,
    rgba(207, 200, 255, 0.08) 0%,
    var(--ct-cream) 100%
  );
}
.pem-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}
.pem-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(127, 123, 240, 0.08);
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease), background var(--ease);
}
.pem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--ct-rich);
  background: linear-gradient(
    180deg,
    rgba(127, 123, 240, 0.02),
    rgba(255, 215, 179, 0.01)
  );
}
.pem-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
}
.pem-card h4 {
  margin: 0.6rem 0 0.4rem;
  color: var(--ct-deep);
  font-size: 1.1rem;
  font-weight: 700;
}
.pem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .pem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pricing */
.pricing-section {
  background: linear-gradient(
    135deg,
    var(--ct-warm) 0%,
    rgba(255, 215, 179, 0.1) 100%
  );
}
.pricing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}
.pricing-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(207, 200, 255, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--ct-rich);
}
.pricing-featured {
  background: linear-gradient(
    180deg,
    var(--ct-mid) 0%,
    rgba(207, 200, 255, 0.15) 100%
  );
  border-color: var(--ct-rich);
  position: relative;
  transform: scale(1.05);
}
.pricing-featured:hover {
  border-color: var(--ct-rich);
}
.pricing-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--ct-rich), var(--ct-warm));
  color: var(--surface);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  width: fit-content;
}
.pricing-header {
  margin-bottom: 1.4rem;
}
.pricing-header h4 {
  margin: 0 0 0.4rem;
  color: var(--ct-deep);
  font-size: 1.3rem;
  font-weight: 700;
}
.pricing-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.pricing-price {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(127, 123, 240, 0.05),
    rgba(255, 215, 179, 0.02)
  );
  border-radius: 12px;
  border-left: 4px solid var(--ct-rich);
  text-align: center;
}
.price-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ct-rich);
  line-height: 1;
}
.price-term {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 600;
}
.pricing-features {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  flex-grow: 1;
}
.pricing-features li {
  padding: 0.6rem 0;
  color: var(--ct-deep);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(127, 123, 240, 0.06);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li:contains("✓") {
  color: var(--ct-rich);
  font-weight: 600;
}
.btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease),
    background var(--ease);
  align-self: flex-start;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: var(--ct-rich);
  color: var(--surface);
}
.btn-primary:hover {
  background: #6f6bdc;
}
.btn-secondary {
  background: var(--ct-mid);
  color: var(--ct-deep);
}
.btn-secondary:hover {
  background: #bdb4e8;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-featured {
    transform: scale(1);
  }
}
.price-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.price {
  background: linear-gradient(180deg, #fff, var(--surface));
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.price h4 {
  margin-bottom: 0.2rem;
  color: var(--ct-deep);
}
.price strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ct-deep);
  margin: 0.4rem 0;
}
@media (min-width: 680px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About */
.about .two-up {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.about h3 {
  font-family: var(--font-serif);
  color: var(--ct-rich);
  margin-bottom: 0.4rem;
}

/* Services — card layout */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.service-card {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card .icon {
  font-size: 1.6rem;
  background: linear-gradient(
    135deg,
    rgba(207, 200, 255, 0.08),
    rgba(255, 215, 179, 0.05)
  );
  padding: 0.6rem;
  border-radius: 10px;
  color: var(--ct-rich);
  box-shadow: 0 6px 20px rgba(43, 36, 57, 0.03);
}
.service-card h4 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ct-deep);
}
.service-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.service-card:hover {
  transform: translateY(-6px) rotate(-0.2deg);
  box-shadow: 0 22px 48px rgba(62, 39, 35, 0.08);
}

/* Portfolio — framed visuals */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.project-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    var(--surface)
  );
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-visual {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
  background: rgba(43, 36, 57, 0.04);
  height: 120px;
}
.project-card h4 {
  margin: 0.5rem 0 0.3rem;
  color: var(--ct-deep);
}
.project-card p {
  color: var(--muted);
  margin: 0;
}
.project-card .metrics {
  margin-top: 0.6rem;
  color: var(--ct-mid);
  font-weight: 700;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 64px rgba(62, 39, 35, 0.12);
}

/* Testimonials — balanced cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.testimonial {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}
.testimonial cite {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 700;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: 12px;
  font-size: 48px;
  color: rgba(127, 123, 240, 0.08);
  font-family: var(--font-serif);
}

/* Contact — redesigned with cards and form */
.contact-section {
  background: linear-gradient(
    135deg,
    var(--ct-cream) 0%,
    rgba(207, 200, 255, 0.06) 100%
  );
}
.contact-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.contact-header h2 {
  font-size: 2.2rem;
}
.contact-subheading {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.contact-form-wrap {
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(127, 123, 240, 0.05);
}
.contact-form-wrap h3 {
  margin-top: 0;
  color: var(--ct-deep);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ct-deep);
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(127, 123, 240, 0.12);
  background: rgba(255, 255, 255, 0.98);
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  transition: box-shadow var(--ease), border-color var(--ease),
    transform var(--ease);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ct-rich);
  box-shadow: 0 8px 28px rgba(127, 123, 240, 0.12);
  transform: translateY(-2px);
}
textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}
.form-status {
  color: var(--ct-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-info-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.info-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(127, 123, 240, 0.05);
  transition: transform var(--ease), box-shadow var(--ease);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-icon {
  font-size: 2.2rem;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-body h4 {
  margin: 0 0 0.6rem;
  color: var(--ct-deep);
}
.info-body p {
  margin: 0.4rem 0;
  color: var(--muted);
  line-height: 1.6;
}
.info-body a {
  color: var(--ct-rich);
  font-weight: 600;
  transition: color var(--ease);
}
.info-body a:hover {
  color: var(--ct-deep);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
  .contact-info-cards {
    grid-template-columns: 1fr;
  }
  .contact-form-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
  }
}

/* Footer — attractive multi-column layout */
.site-footer {
  background: linear-gradient(180deg, var(--ct-mid), var(--ct-rich));
  color: var(--surface);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-xl);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--surface);
  margin: 0;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 48ch;
  margin: 0;
  line-height: 1.5;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 700;
  transition: background var(--ease), transform var(--ease);
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.4rem 0 0;
  color: var(--surface);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  transition: color var(--ease);
}
.footer-links a:hover {
  color: var(--ct-warm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.footer-links-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links-legal a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color var(--ease);
}
.footer-links-legal a:hover {
  color: var(--ct-warm);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.site-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

/* Responsive: tablet and desktop */
@media (min-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(280px, 380px);
    align-items: center;
    gap: var(--space-lg);
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-sub {
    font-size: 1.06rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .two-up {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .contact-grid {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
  .hero-visual {
    display: block;
  }

  /* Featured pricing */
  .price.featured {
    background: linear-gradient(
      180deg,
      var(--ct-warm),
      rgba(255, 215, 179, 0.92)
    );
    color: var(--ct-deep);
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(127, 123, 240, 0.08);
  }
  .price-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: var(--ct-deep);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-xl) 0;
  }
  .hero-title {
    font-size: 3.1rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .container {
    max-width: 1260px;
  }
}

/* End of file */
/* reveal animation (JS toggles .visible) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Accessibility helpers */
a {
  color: inherit;
}
:focus {
  outline-offset: 3px;
}

/* Larger screens */
@media (min-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(280px, 380px);
  }
  .hero-visual {
    display: block;
  }
  .three-up {
    grid-template-columns: repeat(3, 1fr);
  }
  .two-up {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 380px;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* small micro-interactions */
.btn:active {
  transform: translateY(0);
}
.scroll-indicator .arrow {
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* End of styles */
