/* ================================================
   DELIBERATE PM - MAIN STYLESHEET
   Organic, hand-drawn aesthetic with warm, authentic feel
   ================================================ */

/* ------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------ */

:root {
  /* Brand Colors */
  --color-teal-primary: #2B6B6A;
  --color-teal-light: #3D8B89;
  --color-teal-dark: #1F4F4E;
  --color-terracotta: #C7765F;
  --color-terracotta-light: #D99580;
  --color-sage: #8BA888;
  --color-cream: #FAF7F2;
  --color-charcoal: #2C2C2C;
  --color-medium-gray: #6B6B6B;
  --color-light-gray: #E8E6E1;
  --color-white: #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Animation */
  --ease-organic: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;

  /* Border Radius - Organic shapes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(43, 107, 106, 0.08);
  --shadow-md: 0 4px 24px rgba(43, 107, 106, 0.12);
  --shadow-lg: 0 8px 48px rgba(43, 107, 106, 0.16);
  --shadow-glow: 0 0 40px rgba(43, 107, 106, 0.2);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;
}

/* ------------------------------------------------
   CSS RESET & BASE
   ------------------------------------------------ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-teal-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-organic);
}

a:hover {
  color: var(--color-teal-light);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: 600;
}

h3 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 600;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
}

strong {
  color: var(--color-teal-primary);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-large {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.text-small {
  font-size: var(--text-sm);
}

.text-muted {
  color: var(--color-medium-gray);
}

.text-teal {
  color: var(--color-teal-primary);
}

.text-terracotta {
  color: var(--color-terracotta);
}

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

/* ------------------------------------------------
   LAYOUT
   ------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--compact {
  padding: var(--space-16) 0;
}

/* Tighter spacing for about preview */
#about-preview {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.section--hero {
  padding: var(--space-16) 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}


/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ------------------------------------------------
   HEADER & NAVIGATION
   ------------------------------------------------ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow var(--duration-normal) var(--ease-organic);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header__logo {
  height: 100px;
  width: auto;
}

.header__logo img {
  height: 100%;
  width: auto;
}

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

.nav__link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  padding: var(--space-2) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--duration-normal) var(--ease-organic);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-charcoal);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform var(--duration-fast) var(--ease-organic);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-organic);
    box-shadow: var(--shadow-md);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: var(--text-lg);
  }
}

/* Offset for fixed header */
main {
  padding-top: var(--header-height);
}

/* ------------------------------------------------
   BUTTONS
   ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-organic);
  text-decoration: none;
  
}

.btn--primary {
  background: var(--color-teal-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-teal-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-terracotta-light);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-teal-primary);
  border: 2px solid var(--color-teal-primary);
}

.btn--outline:hover {
  background: var(--color-teal-primary);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}

.btn--ghost-teal {
  color: var(--color-teal-primary);
}

.btn--ghost-teal:hover {
  color: var(--color-teal-primary);
  background-color: color-mix(in srgb, var(--color-teal-primary), transparent 90%);
}

.btn--ghost-terracotta {
  color: var(--color-terracotta);
}

.btn--ghost-terracotta:hover {
  color: var(--color-terracotta);
  background-color: color-mix(in srgb, var(--color-terracotta), transparent 90%);
}

.btn--large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* ------------------------------------------------
   BADGES
   ------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-teal-primary);
  box-shadow: var(--shadow-md);
}

.badge--floating {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.badge--terracotta {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.badge--sage {
  background: var(--color-sage);
  color: var(--color-white);
}

.badge--early-bird {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
  color: var(--color-white);
}

/* ------------------------------------------------
   ORGANIC SHAPES & BLOBS
   ------------------------------------------------ */

.blob-frame {
  border-radius: var(--radius-blob);
  animation: blob-morph 8s ease-in-out infinite;
  overflow: hidden;
}

.blob-frame--slow {
  animation-duration: 12s;
}

.blob-frame--fast {
  animation-duration: 4s;
}

.blob-decoration {
  position: absolute;
  border-radius: var(--radius-blob);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  animation:
    blob-morph 12s ease-in-out infinite,
    blob-rotate 30s linear infinite;
}

.blob-decoration--teal {
  background: linear-gradient(135deg, var(--color-teal-primary), var(--color-teal-light));
}

.blob-decoration--terracotta {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
}

.blob-decoration--sage {
  background: var(--color-sage);
}

/* Photo placeholder with organic shape */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-teal-primary), var(--color-teal-light));
  border-radius: var(--radius-blob);
  animation: blob-morph 10s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
}

/* ------------------------------------------------
   CARDS
   ------------------------------------------------ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-organic);
}

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

/* Service card with morphing icon */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-organic);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--color-cream);
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  animation: blob-morph 6s ease-in-out infinite;
  transition: background var(--duration-normal) var(--ease-organic);
}

.service-card:hover .service-card__icon {
  background: var(--color-teal-light);
  animation-duration: 3s;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-teal-primary);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--duration-normal);
}

.service-card:hover .service-card__icon svg {
  stroke: var(--color-white);
}

.service-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.service-card__subtitle {
  color: var(--color-terracotta);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.service-card__description {
  color: var(--color-medium-gray);
  margin-bottom: var(--space-6);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-teal-primary);
}

.service-card__link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease-organic);
}

.service-card:hover .service-card__link {
  background-color: color-mix(in srgb, var(--color-teal-primary), transparent 90%);
}

/* Blog card - magazine style with gradient overlay */
.blog-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-organic);
}

.blog-card:hover {
  transform: scale(1.02) translateY(-8px);
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.1);
}

.blog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 107, 106, 0.95) 0%,
    rgba(43, 107, 106, 0.6) 40%,
    transparent 100%
  );
  transition: opacity var(--duration-normal);
}

.blog-card:hover .blog-card__overlay {
  background: linear-gradient(
    to top,
    rgba(43, 107, 106, 1) 0%,
    rgba(43, 107, 106, 0.7) 50%,
    rgba(43, 107, 106, 0.2) 100%
  );
}

.blog-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--color-white);
}

.blog-card__category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-terracotta);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.blog-card__meta {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* Blog placeholder card (no image) */
.blog-card--placeholder {
  background: linear-gradient(135deg, var(--color-teal-primary), var(--color-teal-light));
}

.blog-card--placeholder .blog-card__overlay {
  background: linear-gradient(
    to top,
    rgba(31, 79, 78, 0.9) 0%,
    transparent 100%
  );
}

/* ------------------------------------------------
   PRICING
   ------------------------------------------------ */

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.pricing-card__header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-light-gray);
}

.pricing-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.pricing-card__subtitle {
  color: var(--color-medium-gray);
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-4) 0;
}

.pricing-item__name {
  font-weight: 500;
}

.pricing-item__price {
  text-align: right;
}

.pricing-item__original {
  color: var(--color-medium-gray);
  text-decoration: line-through;
  font-size: var(--text-sm);
  margin-right: var(--space-2);
}

.pricing-item__current {
  font-weight: 700;
  color: var(--color-teal-primary);
  font-size: var(--text-lg);
}

.pricing-item__free {
  font-weight: 700;
  color: var(--color-terracotta);
}

/* Early bird banner */
.early-bird-banner {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  margin-bottom: var(--space-8);
}

/* ------------------------------------------------
   HERO SECTION
   ------------------------------------------------ */

.hero {
  position: relative;
  /* Allow blobs to extend beyond section edges - body handles x-overflow */
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__tagline {
  display: inline-block;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--color-medium-gray);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__visual {
  position: relative;
}

.square-fade {
  border-radius: 35px; /* Adjust for desired corner roundness */
  
  /* Applying 4 linear gradients to cover all edges */
  -webkit-mask-image: 
    linear-gradient(to bottom, transparent, black 10%, black 90%, transparent),
    linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: 
    linear-gradient(to bottom, transparent, black 10%, black 90%, transparent),
    linear-gradient(to right, transparent, black 10%, black 90%, transparent);

  /* This ensures the masks composite together correctly */
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}




.hero__photo-frame {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}

.hero__badges {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

/* Background decorations */
.hero__blob-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
}

.hero__blob-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__photo-frame {
    margin: 0 auto;
    max-width: 300px;
  }

  .hero__badges {
    display: none;
  }
}

/* ------------------------------------------------
   ABOUT SECTION (Sticky Sidebar)
   ------------------------------------------------ */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
}

.about-preview__sidebar {
  position: relative;
  height: fit-content;
  align-self: start;
}

.about-preview__photo {
  width: 100%;
  max-width: 350px;
  padding: var(--space-8) 0;
}

.about-preview__content {
  padding: var(--space-8) 0;
}

.about-preview__title {
  margin-bottom: var(--space-6);
}

.about-preview__text {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about-preview__companies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .about-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-preview__sidebar {
    position: relative;
    top: 0;
  }

  .about-preview__photo {
    margin: 0 auto;
  }
}

/* ------------------------------------------------
   SERVICES SECTION (Asymmetric Layout)
   ------------------------------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-8);
  position: relative;
}

.services-grid .service-card:nth-child(1) {
  grid-column: 1 / 7;
}

.services-grid .service-card:nth-child(2) {
  grid-column: 7 / 13;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ------------------------------------------------
   BLOG PREVIEW SECTION (Asymmetric Layout)
   ------------------------------------------------ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) 0;
}

.blog-grid .blog-card:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}

.blog-grid .blog-card:nth-child(2) {
  grid-column: 6 / 10;
  margin-top: var(--space-12);
}

.blog-grid .blog-card:nth-child(3) {
  grid-column: 9 / 13;
  margin-top: calc(var(--space-8) * -1);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid .blog-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
  }
}

/* ------------------------------------------------
   EMAIL SIGNUP SECTION
   ------------------------------------------------ */

.signup-section {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.signup-section__title {
  margin-bottom: var(--space-4);
}

.signup-section__description {
  color: var(--color-medium-gray);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

/* MailerLite form styling */
.ml-embedded {
  max-width: 500px;
  margin: 0 auto;
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */

.footer {
  background: var(--color-teal-dark);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-4);  
  filter: brightness(0) invert(1);
}

.footer__description {
  opacity: 0.8;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: var(--color-terracotta-light);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  color: var(--color-white);
  opacity: 0.8;
  font-size: var(--text-sm);
  transition: opacity var(--duration-fast);
}

.footer__link:hover {
  opacity: 1;
  color: var(--color-white);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__logo {
    margin: 0 auto var(--space-4);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ------------------------------------------------
   FAQ ACCORDION
   ------------------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-item__question:hover {
  color: var(--color-teal-primary);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  transition: transform var(--duration-normal) var(--ease-organic);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-organic);
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding-bottom: var(--space-6);
  color: var(--color-medium-gray);
}

/* ------------------------------------------------
   UTILITIES
   ------------------------------------------------ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* Margin utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* ------------------------------------------------
   PAGE-SPECIFIC STYLES
   ------------------------------------------------ */

/* Services page hero */
.page-hero {
  padding: var(--space-20) 0 var(--space-6);
  text-align: center;
  position: relative;
  /* Allow blobs to extend beyond section edges - body handles x-overflow */
}

.page-hero__title {
  margin-bottom: var(--space-4);
}

.page-hero__description {
  font-size: var(--text-lg);
  color: var(--color-medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* About page specific */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-hero__photo {
  width: 100%;
  max-width: 500px;
}

.career-timeline {
  position: relative;
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-teal-light);
}

.career-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.career-item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-8) * -1 - 6px);
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--color-teal-primary);
  border-radius: 50%;
  border: 3px solid var(--color-cream);
}

.career-item__company {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-teal-primary);
  margin-bottom: var(--space-1);
}

.career-item__role {
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.career-item__description {
  color: var(--color-medium-gray);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero__photo {
    margin: 0 auto;
    max-width: 350px;
  }
}
