/*
Theme Name: DRP Custom Theme
Theme URI: https://example.com/
Author: DRP Migration Pack
Author URI: https://example.com/
Description: Custom DRP WordPress theme without Elementor. Includes header, footer, and home page layout with animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drp-custom
*/

:root {
  --background: #0f0f0f;
  --foreground: #ece7df;
  --card: #171717;
  --stone: #c3b8ab;
  --graphite: #474747;
  --muted: #7f7a73;
  --border: #2e2e2e;
  --accent: #8a7150;
  --max-content: 1320px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --img-hero-main: url("assets/hero-home.jpg");
  --img-hero-overlay: url("assets/aerial-estate.jpg");
  --img-about-main: url("assets/about-bg.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2.5rem, var(--max-content));
  margin: 0 auto;
}

.section-spacing {
  padding-top: 6rem;
}

.text-label {
  display: inline-block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--stone);
}

.line-accent {
  width: 3rem;
  height: 1px;
  background: var(--stone);
}

.heading-display,
.heading-section,
.heading-sub {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.heading-display {
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 1.1;
}

.heading-section {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
}

.heading-sub {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.text-body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #b2ada6;
}

.text-body-sm {
  font-size: 0.95rem;
  color: #a59f97;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-primary {
  background: #dbd3c8;
  color: #0f0f0f;
  border: 1px solid #dbd3c8;
}

.btn-primary:hover {
  background: #f2ede5;
  border-color: #f2ede5;
}

.btn-outline {
  background: transparent;
  color: var(--stone);
  border: 1px solid var(--graphite);
}

.btn-outline:hover {
  border-color: var(--stone);
  color: var(--foreground);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 15, 15, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand-logo img {
  width: auto;
  height: clamp(42px, 7vw, 60px);
  filter: invert(1) brightness(1.2);
}

.brand-logo .custom-logo-link {
  display: inline-flex;
}

.brand-logo .custom-logo {
  width: auto;
  height: clamp(42px, 7vw, 60px);
  filter: invert(1) brightness(1.2);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.desktop-menu a {
  color: var(--stone);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.desktop-menu a:hover,
.desktop-menu .current-menu-item > a {
  color: var(--foreground);
}

/* Header CTA button tone (match provided reference) */
.site-header .btn-primary,
.mobile-menu .btn-primary {
  background: linear-gradient(90deg, #9f9d96 0%, #7f7d77 100%);
  border-color: #8f8d86;
  color: #161616;
}

.site-header .btn-primary:hover,
.mobile-menu .btn-primary:hover {
  background: linear-gradient(90deg, #b2b0aa 0%, #92908a 100%);
  border-color: #a4a29b;
  color: #121212;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--foreground);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-content: center;
  gap: 1.5rem;
  background: rgba(9, 9, 9, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 300;
  text-align: center;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 7rem;
  overflow: hidden;
}

.hero-media,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: var(--img-hero-main);
  background-size: cover;
  background-position: center;
}

.hero-layer {
  background-image: var(--img-hero-overlay);
  background-size: cover;
  background-position: center;
}

.hero-media img,
.hero-layer img {
  width: 100%;
  height: 118%;
  object-fit: cover;
}

.hero-layer {
  mix-blend-mode: overlay;
  opacity: 0.3;
}

.hero-kenburns {
  position: absolute;
  inset: 0;
  animation: drp-kenburns 8s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85));
}

.hero-fade-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 13rem;
  background: linear-gradient(to top, var(--background), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content .line-accent {
  margin: 1.5rem 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.2rem, 7vw, 6rem);
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-cue span {
  writing-mode: vertical-lr;
  font-size: 0.55rem;
}

.scroll-cue i {
  width: 1px;
  height: 3rem;
  background: var(--stone);
  transform-origin: top;
  animation: drp-scroll-line 2s ease-in-out infinite;
}

/* Content blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.split-media {
  min-height: 460px;
  overflow: hidden;
  background-image: var(--img-about-main);
  background-size: cover;
  background-position: center;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.process-step,
.why-item {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #171717, #121212);
  padding: 1.5rem;
}

.service-card h3,
.process-step h3,
.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.65rem;
  font-weight: 300;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.2);
  transition: background 0.35s ease;
}

.portfolio-item .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.portfolio-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
}

.portfolio-item small {
  display: block;
  margin-bottom: 0.3rem;
  color: #d2cabd;
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .overlay {
  background: rgba(16, 16, 16, 0.58);
}

.portfolio-item:hover .meta {
  transform: translateY(0);
}

.portfolio-item:hover small {
  opacity: 1;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.4rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0.9rem 0 0;
  color: #b0aaa1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.contact-form .field {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.75rem 0.1rem;
  font-family: var(--font-body);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form select option {
  color: #000;
  background: #fff;
}

.drp-alert {
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.drp-alert-success {
  color: #dff3df;
  background: rgba(40, 110, 40, 0.28);
  border-color: rgba(120, 190, 120, 0.5);
}

.drp-alert-danger {
  color: #ffdede;
  background: rgba(150, 30, 30, 0.25);
  border-color: rgba(220, 120, 120, 0.5);
}

.drp-form-response {
  margin-top: 1rem;
}

/* About page */
.drp-page-banner {
  position: relative;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.drp-page-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drp-page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.72);
}

.drp-page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about-stack {
  position: relative;
}

.about-main-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-float-one {
  position: absolute;
  right: 1.5rem;
  bottom: -2rem;
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1 / 1;
  border: 4px solid var(--background);
  overflow: hidden;
}

.about-float-two {
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: clamp(90px, 16vw, 170px);
  aspect-ratio: 3 / 4;
  border: 4px solid var(--background);
  overflow: hidden;
}

.about-float-one img,
.about-float-two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.about-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
}

.about-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a79f94;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mission-card {
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.mission-card:hover {
  border-color: rgba(195, 184, 171, 0.4);
}

.mission-card h3 {
  margin: 0.85rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
}

.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.services-list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 2.4fr 4fr;
  gap: 1rem;
  align-items: center;
  padding: 1.9rem 0;
  border-top: 1px solid var(--border);
}

.service-row-number {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-row-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.service-row:hover .service-row-image img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.service-row-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 300;
}

.service-row-text {
  margin: 0;
  color: #b0aaa1;
  font-size: 0.96rem;
  line-height: 1.7;
}

.services-image-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.services-image-gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.services-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 1.7rem;
  transition: border-color 0.3s ease;
}

.process-card:hover {
  border-color: rgba(195, 184, 171, 0.4);
}

.process-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.process-card-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  opacity: 0.8;
}

.process-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--graphite);
}

.process-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
}

.process-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--stone);
  transition: width 0.5s ease;
}

.process-card:hover::after {
  width: 100%;
}

/* Home parity sections (React-aligned) */
.home-portfolio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
}

.home-portfolio-head .text-body-sm {
  max-width: 320px;
}

.home-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 0.85rem;
}

.home-portfolio-grid .portfolio-item {
  aspect-ratio: auto;
}

.home-portfolio-grid .portfolio-item.is-large {
  grid-row: span 2;
}

.home-cinematic-strip {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.home-cinematic-strip .strip-item {
  flex: 0 0 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-cinematic-strip .strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.45s ease;
}

.home-cinematic-strip .strip-item img:hover {
  filter: grayscale(0);
}

.home-process-section {
  position: relative;
  overflow: hidden;
}

.home-process-timeline {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
}

.home-process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.home-process-step {
  position: relative;
  width: 50%;
  padding: 0 2rem 2.2rem;
}

.home-process-step.left {
  margin-right: auto;
  text-align: right;
}

.home-process-step.right {
  margin-left: auto;
}

.home-process-dot {
  position: absolute;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--stone);
  background: var(--background);
  border-radius: 50%;
}

.home-process-step.left .home-process-dot {
  right: -6px;
}

.home-process-step.right .home-process-dot {
  left: -6px;
}

.home-process-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--graphite);
  line-height: 1;
}

.home-process-content h3 {
  margin: 0.55rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
}

.home-why-section {
  position: relative;
}

.home-why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-home.jpg") center / cover no-repeat;
  opacity: 0.08;
}

.home-why-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.82);
}

.home-why-section .container {
  position: relative;
  z-index: 1;
}

.home-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.2rem;
}

.home-why-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(1);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.home-why-item:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}

.home-why-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
}

.home-faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.home-faq-item {
  border-top: 1px solid var(--border);
}

.home-faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
}

.home-faq-trigger span:first-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
}

.home-faq-chevron {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.home-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.home-faq-panel p {
  margin: 0 0 1.2rem;
  color: #b0aaa1;
}

.home-faq-item.is-open .home-faq-chevron {
  transform: rotate(-135deg);
}

.home-faq-item.is-open .home-faq-panel {
  max-height: 240px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 4.5rem 0 3rem;
}

.footer-logo img {
  width: auto;
  height: clamp(48px, 8vw, 64px);
  filter: invert(1) brightness(1.2);
}

.footer-links a {
  display: block;
  color: #a8a299;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #918a81;
  font-size: 0.78rem;
}

/* Animation helpers
   Keep content visible by default. Only hide for animation when JS is active. */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drp-kenburns {
  from {
    transform: scale(1.13);
  }
  to {
    transform: scale(1);
  }
}

@keyframes drp-scroll-line {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.45);
    opacity: 0.7;
  }
}

@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .cards-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-grid,
  .footer-top,
  .faq-two-col {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr 1fr;
  }

  .services-image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row-title,
  .service-row-text {
    grid-column: 1 / -1;
  }

  .home-portfolio-head,
  .home-faq-two-col {
    grid-template-columns: 1fr;
    display: grid;
  }

  .home-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-process-timeline::before {
    left: 14px;
  }

  .home-process-step {
    width: 100%;
    padding: 0 0 1.7rem 2.8rem;
    text-align: left;
  }

  .home-process-step.left,
  .home-process-step.right {
    margin: 0;
    text-align: left;
  }

  .home-process-step.left .home-process-dot,
  .home-process-step.right .home-process-dot {
    left: 9px;
    right: auto;
  }

  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-media {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.4rem, var(--max-content));
  }

  .hero {
    padding-bottom: 5.7rem;
  }

  .cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-portfolio-grid,
  .home-why-grid {
    grid-template-columns: 1fr;
  }

  .services-image-gallery {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Hard fallback: never let section content disappear */
[data-reveal],
.js-enabled [data-reveal],
[data-reveal].is-visible,
.js-enabled [data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
}
