:root {
  --color-bg-top: #efe7db;
  --color-bg-bottom: #e6dccf;
  --color-text: #2f3340;
  --color-text-muted: #5f6675;
  --color-white: #ffffff;
  --color-header-dark: rgba(55, 65, 81, 0.8);
  --color-header-light: rgba(255, 255, 255, 0.5);
  --color-menu-bg: #4b5563;
  --color-accent: #ff6a00ff;
  --color-accent-hover: #f97316;
  --color-dark: #111827;
  --color-steel: #363847;
  --color-contact: #9ca3af;
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 0 12px rgba(251, 146, 60, 0.7);
  --shadow-header: 0 4px 16px rgba(0, 0, 0, 0.14);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --content: 64rem;
  --content-wide: 72rem;
  --transition: 300ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 110px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--color-text);
  background: linear-gradient(to bottom, var(--color-bg-top), var(--color-bg-bottom));
}

h1, h2, h3, p, figure { margin: 0; }

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

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

button,
input,
textarea {
  font: inherit;
}

.layout-container {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
}

.layout-container--wide {
  width: min(100% - 3rem, var(--content-wide));
}

.layout-container--narrow {
  width: min(100% - 3rem, 48rem);
}

.section {
  padding: 3rem 0;
}

.section--large {
  padding: 4rem 0;
}

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

.u-spacer-lg {
  height: 7rem;
}

.u-fade-up {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 1000ms ease, transform 1000ms ease;
}

.u-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), opacity 1000ms ease;
}

.button--primary {
  background: var(--color-accent);
  box-shadow: var(--shadow-button);
}

.button--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
}

.section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 600;
}

.section-heading--medium {
  font-size: 1.5rem;
}

.section-heading--left {
  margin-bottom: 1rem;
  text-align: left;
}

.section-heading--shadow {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.section-copy {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
}

.section-copy + .section-copy {
  margin-top: 1rem;
}

.section-copy--left {
  margin: 0;
  text-align: left;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.testimonial-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-card__title,
.process-step__title {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.process-step__title {
  font-size: 1.125rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--color-header-dark);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--color-header-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  transition: padding var(--transition);
}

.site-header__inner.is-compact {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__logo {
  width: auto;
  max-width: 230px;
  max-height: 150px;
  object-fit: contain;
  transition: all 1000ms ease;
}

.site-header__logo.is-compact {
  max-height: 90px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__link {
  color: var(--color-white);
  font-weight: 500;
  transition: color var(--transition);
}

.site-header__link.is-dark {
  color: var(--color-text);
}

.site-header__menu-button {
  display: none;
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.site-header__mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--color-menu-bg);
  color: var(--color-accent);
}

.site-header__mobile-menu.is-open {
  display: flex;
}

.site-header__mobile-menu a {
  padding: 0.5rem 0;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

.hero-section__media,
.hero-section__glow,
.hero-section__noise {
  position: absolute;
  inset: 0;
}

.hero-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: blur(2px);
}

.hero-section__glow {
  background: linear-gradient(to bottom, transparent, rgba(253, 186, 116, 0.3), rgba(0, 0, 0, 0.95));
}

.hero-section__noise {
  opacity: 0.2;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.hero-section__content {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 56rem);
  padding: 0 1.5rem;
}

.hero-section__title {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 1px 10px #494747;
}

.hero-section__title--accent {
  color: var(--color-accent);
}

.hero-section__subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-white);
}

.process-band {
  background: var(--color-steel);
  color: var(--color-white);
}

.process-band__grid {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.portfolio-grid--masonry {
  grid-auto-rows: auto;
  grid-auto-flow: row;
  align-items: center;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  background: var(--color-steel);
  box-shadow: var(--shadow-card);
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
}

.portfolio-card--landscape {
  grid-column: span 1;
  grid-row: span 1;
}

.portfolio-card--portrait {
  grid-column: span 1;
  grid-row: span 1;
}

.portfolio-card--square {
  grid-column: span 1;
  grid-row: span 1;
}

.section--gallery {
  padding-bottom: 1.5rem;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-md);
}

.quote-panel {
  background: var(--color-dark);
  color: var(--color-white);
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: #000;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 2px;
}

.contact-band {
  background: var(--color-contact);
  text-align: center;
}

.contact-band p,
.site-footer p {
  margin-bottom: 0.5rem;
}

.contact-band p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 1.5rem;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

/* Contact Method (pill-style, no radio circles) */
.contact-method {
  margin-top: 15px;
}

.contact-method > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.options label {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
}

/* Hide the actual radio input completely */
.options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Style the visible "button" */
.options span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f8f5f0;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

/* Hover state */
.options label:hover span {
  border-color: var(--color-accent);
}

/* Selected state */
.options input:checked + span {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Optional: subtle press effect */
.options label:active span {
  transform: scale(0.97);
}



/* Portfolio 3-up Vertical Center Fix */

.portfolio-grid--three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: center !important;
}


.portfolio-grid--three-up .portfolio-card,
.portfolio-card.is-landscape,
.portfolio-card.is-portrait,
.portfolio-card.is-square {
  height: fit-content !important;
  width: fit-content !important;
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  margin: 0 auto !important;
}


.portfolio-grid--three-up .portfolio-card img {
  object-fit: contain !important;
  object-position: center center !important;
}


@media (max-width: 767px) {
  .portfolio-grid--three-up {
    grid-template-columns: 1fr !important;
  }
  .portfolio-grid--three-up .portfolio-card {
    min-height: 240px !important;
    max-width: 360px;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 96px;
  }

  .layout-container,
  .layout-container--wide,
  .layout-container--narrow {
    width: min(100% - 1.5rem, var(--content-wide));
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-button {
    display: inline-block;
  }

  .section,
  .section--large {
    padding: 3rem 0;
  }

  .card-grid--three-up,
  .card-grid--four-up,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-section__content {
    padding: 0 0.5rem;
  }

  .portfolio-card {
    min-height: 0;
  }

  /* 3-up Vertical Center Portfolio Fix */
  .portfolio-grid--three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }

  .portfolio-grid--three-up .portfolio-card {
    min-height: 300px !important;
    height: auto !important;
    grid-row: span 1 !important;
  }

  .portfolio-grid--three-up .portfolio-card img {
    object-position: center center !important;
  }

  .portfolio-card.is-landscape,
  .portfolio-card.is-portrait,
  .portfolio-card.is-square {
    min-height: 300px !important;
    height: auto !important;
  }

  @media (max-width: 767px) {
    .portfolio-grid--three-up {
      grid-template-columns: 1fr !important;
    }
    .portfolio-grid--three-up .portfolio-card {
    min-height: 250px !important;
    }
  }

  .mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none !important;
  z-index: 1000;
  }

  .cta-btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
  }

  .cta-btn.call {
    background: #2f3340;
  }

  .cta-btn.text {
    background: var(--color-accent);
  }

  /* Show only on mobile */
  @media (max-width: 768px) {
    .mobile-cta {
      display: flex;
    }

    body {
      padding-bottom: 60px; /* prevents overlap */
    }
  }
}