/* Kalifornia Painting — Design system & overrides */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Coolors palette */
  --color-deep-purple: #712F79;
  --color-blue: #48639C;
  --color-indigo: #4C4C9D;
  --color-mauve: #976391;
  --color-coral: #F7996E;
  --color-aqua: #2dd4bf;
  --color-aqua-light: #5eead4;
  /* Semantic mapping */
  --color-primary: #48639C;
  --color-primary-dark: #3d5490;
  --color-accent: #F7996E;
  --color-accent-dark: #e0885a;
  --color-deep: #712F79;
  /* Deep charcoal background system */
  --color-charcoal: #1c1c1e;
  --color-charcoal-alt: #252528;
  --color-charcoal-card: #2d2d31;
  --color-charcoal-elevated: #36363a;
  /* Text on dark */
  --color-neutral-900: #f8fafc;
  --color-neutral-700: #e2e8f0;
  --color-neutral-600: #cbd5e1;
  --color-neutral-500: #94a3b8;
  --color-neutral-300: #64748b;
  --color-neutral-100: #334155;
  --color-bg: #1c1c1e;
  --color-bg-alt: #252528;
  --color-bg-warm: #261f26;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space-section: clamp(4rem, 8vw, 6rem);
  --space-block: clamp(2rem, 4vw, 3rem);
  --container: min(1200px, 92vw);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Paintbrush cursor — data URI so it works everywhere (no path issues) */
:root {
  --cursor-paintbrush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%235eead4' stroke='%232dd4bf' stroke-width='1' d='M6 4l20 6-5 16-7-7-8 8z'/%3E%3C/svg%3E") 4 4, auto;
  --cursor-paintbrush-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%235eead4' stroke='%232dd4bf' stroke-width='1' d='M6 4l20 6-5 16-7-7-8 8z'/%3E%3C/svg%3E") 4 4, pointer;
}

html {
  scroll-behavior: smooth;
  cursor: var(--cursor-paintbrush);
}

*,
*::before,
*::after {
  cursor: inherit;
}

a, button, .btn, [role="button"], input, textarea, select, label[for] {
  cursor: var(--cursor-paintbrush-pointer);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-neutral-700);
  background: var(--color-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-paintbrush);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

a {
  color: var(--color-coral);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(72, 99, 156, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(72, 99, 156, 0.5);
}

.btn-accent {
  background: var(--color-coral);
  color: #1c1c1e;
  box-shadow: 0 4px 14px rgba(247, 153, 110, 0.35);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #1c1c1e;
  box-shadow: 0 6px 20px rgba(247, 153, 110, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-neutral-900);
  border: 2px solid var(--color-neutral-500);
}

.btn-outline:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  width: 170px;
  height: 58px;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 72px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-list a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-neutral-700);
}

.nav-list a:hover {
  color: var(--color-coral);
}

.nav-cta .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-neutral-700);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-grid .order-1 { order: 1; }
.split-grid .order-2 { order: 2; }
@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-grid .order-1,
  .split-grid .order-2 { order: unset; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-charcoal-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-list.is-open { transform: translateX(0); }
}

/* Footer */
.site-footer {
  background: var(--color-charcoal-alt);
  color: var(--color-neutral-500);
  padding-top: var(--space-section);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a {
  color: var(--color-neutral-600);
}

.site-footer a:hover {
  color: var(--color-coral);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-neutral-500);
}

.site-footer h4 { color: var(--color-neutral-700); }

/* Utility */
.text-primary { color: var(--color-blue); }
.text-accent { color: var(--color-coral); }
.bg-primary { background: var(--color-deep-purple); }
.bg-accent { background: var(--color-coral); }
.bg-deep { background: var(--color-deep); }
.bg-alt { background: var(--color-bg-alt); }
.bg-warm { background: var(--color-bg-warm); }
.bg-card { background: var(--color-charcoal-card); }

/* Card hover */
.card-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Focus for accessibility */
:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}
