/* ============================================
   KARIVALIS PAINTING — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-terracotta: #B85C38;
  --color-terracotta-dark: #9A4B2C;
  --color-terracotta-light: #D4845E;
  --color-sand: #F5E6D3;
  --color-sand-light: #FAF3EB;
  --color-sand-dark: #E8D5C0;
  --color-cream: #FDF8F3;
  --color-charcoal: #2C2420;
  --color-warm-gray: #5C4F47;
  --color-medium-gray: #8A7E76;
  --color-light-gray: #C4B8AE;
  --color-white: #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06), 0 1px 2px rgba(44, 36, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08), 0 2px 4px rgba(44, 36, 32, 0.04);
  --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.12), 0 4px 12px rgba(44, 36, 32, 0.06);
  --shadow-xl: 0 24px 60px rgba(44, 36, 32, 0.14);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slower: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
}

.section-header--center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-warm-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8em 1.8em;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(184, 92, 56, 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-terracotta-dark);
  box-shadow: 0 6px 24px rgba(184, 92, 56, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-terracotta);
  border: 1.5px solid var(--color-terracotta);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: var(--color-white);
  color: var(--color-terracotta);
  border-color: var(--color-white);
}

.btn--large {
  padding: 1em 2.2em;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 92, 56, 0.08);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.logo-text {
  transition: color var(--transition-fast);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: 0.5em 1em;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-warm-gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-terracotta);
}

.nav-link--cta {
  background: var(--color-terracotta);
  color: var(--color-white) !important;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin-left: var(--space-xs);
}

.nav-link--cta:hover {
  background: var(--color-terracotta-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--color-cream);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--color-terracotta);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-terracotta);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--color-warm-gray);
  font-weight: 400;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-stat {
  position: absolute;
  bottom: 40px;
  left: -40px;
  background: var(--color-white);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--color-warm-gray);
  line-height: 1.4;
}

/* ---------- Services ---------- */
.services {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-slow);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--color-sand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--color-terracotta);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.service-card-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.88rem;
  color: var(--color-medium-gray);
}

.service-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--color-terracotta);
  border-radius: 50%;
}

/* ---------- About ---------- */
.about {
  padding: var(--space-4xl) 0;
  background: var(--color-cream);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.about-image-accent {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-cream);
}

.about-image-accent img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.about-content .section-title {
  margin-bottom: var(--space-lg);
}

.about-text {
  font-size: 1rem;
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-values {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.value-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.value-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-sand-dark);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.value-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slower);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--large {
  grid-column: 1 / 8;
  grid-row: 1 / 2;
}

.gallery-item--large img {
  height: 420px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
  grid-column: span 6;
  grid-row: 2 / 3;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) img {
  height: 260px;
}

.gallery-item--wide {
  grid-column: 1 / 13;
  grid-row: 3 / 4;
}

.gallery-item--wide img {
  height: 320px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 32, 0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand);
  background: var(--color-terracotta);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: var(--space-xs);
}

.gallery-location {
  font-size: 0.9rem;
  color: var(--color-white);
  font-weight: 400;
}

/* ---------- Process ---------- */
.process {
  padding: var(--space-4xl) 0;
  background: var(--color-sand-light);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--color-sand-dark);
}

.process-step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-sand-dark);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.process-step-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--color-cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  border: 1px solid var(--color-sand);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-sand-dark);
}

.testimonial-quote {
  width: 36px;
  height: 36px;
  color: var(--color-sand-dark);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.testimonial-author-location {
  font-size: 0.8rem;
  color: var(--color-medium-gray);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: var(--space-4xl) 0;
  background: var(--color-charcoal);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 92, 56, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.cta-content {
  flex: 1;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta-light);
  margin-bottom: var(--space-sm);
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1.05rem;
  color: var(--color-light-gray);
  line-height: 1.7;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: var(--space-md);
}

.contact-text {
  font-size: 1rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand-light);
  border-radius: var(--radius-md);
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-medium-gray);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  line-height: 1.6;
}

.contact-detail a {
  color: var(--color-terracotta);
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-sand);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.form-required {
  color: var(--color-terracotta);
}

.form-input {
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1.5px solid var(--color-sand-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:hover {
  border-color: var(--color-terracotta-light);
}

.form-input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.form-input::placeholder {
  color: var(--color-light-gray);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7E76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--color-medium-gray);
  text-align: center;
  margin-top: var(--space-xs);
}

/* Form Success */
.form-success {
  text-align: center;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand);
  border-radius: 50%;
  color: var(--color-terracotta);
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
}

.form-success-title {
  font-size: 1.5rem;
  color: var(--color-charcoal);
}

.form-success-text {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
  max-width: 360px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-charcoal);
  color: var(--color-light-gray);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-mark {
  background: var(--color-terracotta);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand-dark);
  margin-bottom: var(--space-md);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-list a {
  font-size: 0.88rem;
  color: var(--color-medium-gray);
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--color-terracotta-light);
}

.footer-list li:not(a) {
  font-size: 0.88rem;
  color: var(--color-medium-gray);
}

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

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-medium-gray);
}

.footer-address {
  font-size: 0.82rem;
  color: var(--color-medium-gray);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
    align-items: center;
  }

  .hero-stat {
    left: auto;
    right: 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image-col {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-text {
    margin: 0 auto;
  }

  .cta-actions {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-cream);
    padding: 100px var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  .nav-link {
    padding: 0.8em 1em;
    font-size: 1rem;
  }

  .nav-link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: var(--space-sm);
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-2xl);
  }

  .hero-image-wrapper img {
    height: 360px;
  }

  .hero-stat {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: var(--space-md);
    display: inline-block;
  }

  .hero-accent {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large,
  .gallery-item:not(.gallery-item--large):not(.gallery-item--wide),
  .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item--large img,
  .gallery-item--wide img {
    height: 260px;
  }

  .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) img {
    height: 220px;
  }

  .gallery-overlay {
    opacity: 1;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .about-image-accent {
    right: -10px;
    bottom: -20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
