:root {
  --color-bg: #f7f3ee;
  --color-text: #252525;
  --color-accent: #ad8e6a;
  --color-accent-light: #d4b99b;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-elegant: 0 20px 40px -10px rgba(0, 0, 0, 0.14);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.custom-cursor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 28px 0;
}

.navbar.scrolled {
  padding: 12px 0;
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 238, 0.92);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-toggle,
.menu-toggle {
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-smooth);
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: var(--transition-smooth);
}

.mobile-overlay.active {
  transform: translateY(0);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 34px;
}

.mobile-social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.mobile-social a {
  color: var(--color-text);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/images/projects/luddenham/e.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(50deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15));
}

.hero-content {
  z-index: 2;
  color: var(--color-white);
  max-width: 920px;
  padding: 0 20px;
}

.hero-title {
  margin-bottom: 14px;
}

.hero-subtitle {
  margin-bottom: 36px;
  letter-spacing: 1.4px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  padding: 15px 28px;
  transition: var(--transition-smooth);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--color-white);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }
}

.hotspot {
  position: absolute;
  z-index: 3;
  cursor: pointer;
}

.hotspot-a {
  top: 16%;
  left: 38%;
}

.hotspot-b {
  top: 82%;
  left: 50%;
}

.hotspot-c {
  top: 40%;
  left: 12%;
}

.hotspot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
  animation: pulse 2s ease-in-out infinite;
}

.hotspot-tooltip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  opacity: 0;
  pointer-events: none;
  padding: 14px;
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  bottom: 40px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.philosophy,
.process,
.contact {
  padding: 120px 0;
  background: var(--color-bg);
}

.projects {
  padding: 70px 0 120px;
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  color: #666;
}

.philosophy-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.philosophy-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-accent);
  margin-top: 12px;
  letter-spacing: 1px;
}

.philosophy-text p {
  margin-bottom: 14px;
  font-size: 18px;
}

.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 16px 0;
}

.project-track {
  display: flex;
  gap: 26px;
  padding: 0 40px;
}

.project-card {
  flex: 0 0 500px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
}

.project-image {
  height: 390px;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2));
  color: var(--color-white);
  padding: 34px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover {
  box-shadow: 0 24px 48px -12px rgba(173, 142, 106, 0.3);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-view {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Process Timeline ──────────────────────────────── */

.process-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent), var(--color-accent-light));
  opacity: 0.3;
}

.process-step {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-marker {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.process-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(173, 142, 106, 0.3);
  transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(173, 142, 106, 0.45);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-accent);
  opacity: 0.6;
  letter-spacing: 1px;
}

.process-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: var(--shadow-elegant);
  flex: 1;
  transition: var(--transition-smooth);
  border: 1px solid rgba(173, 142, 106, 0.08);
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.16);
}

.process-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.process-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.process-details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-details li {
  font-size: 13.5px;
  color: #777;
  padding-left: 18px;
  position: relative;
}

.process-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-light);
}

/* ── Testimonials ──────────────────────────────────── */

.testimonials {
  padding: 100px 0;
  background: var(--color-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(173, 142, 106, 0.1);
  transition: var(--transition-smooth);
}

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

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: 14px;
}

.testimonial-card blockquote {
  margin: 0;
  position: relative;
  padding-top: 8px;
}

.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: -4px;
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1;
  color: var(--color-accent-light);
  opacity: 0.4;
  pointer-events: none;
}

.testimonial-card blockquote p {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  font-style: italic;
}

.testimonial-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(173, 142, 106, 0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.testimonial-project {
  font-size: 13px;
  color: var(--color-accent);
}

/* ── Stats Bar ────────────────────────────────────── */

.stats-bar {
  padding: 56px 0;
  background: var(--color-text);
  color: var(--color-white);
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent-light);
}

.stat-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Section Dividers ─────────────────────────────── */

.philosophy::after,
.projects::after,
.testimonials::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent-light), transparent);
  margin: 0 auto;
  margin-top: 80px;
}

/* ── Contact ──────────────────────────────────────── */

.contact-info h2 {
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  padding: 18px 22px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(173, 142, 106, 0.1);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 4px 16px rgba(173, 142, 106, 0.1);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-elegant);
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  padding: 14px 0;
  font-size: 16px;
  font-family: var(--font-body);
}

.form-group label {
  position: absolute;
  top: 14px;
  left: 0;
  color: #999;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-group :is(input, select, textarea):focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.form-group :is(input, select, textarea):focus ~ label,
.form-group :is(input, select, textarea):valid ~ label {
  top: -12px;
  font-size: 12px;
  color: var(--color-accent);
}

.btn-submit {
  width: 100%;
  background: var(--color-text);
  color: var(--color-white);
}

.btn-submit:hover {
  background: var(--color-accent);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  position: relative;
  background: var(--color-text);
  color: var(--color-white);
  padding: 56px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-white);
  font-size: 13px;
}

.back-to-top {
  position: absolute;
  right: 40px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: var(--color-white);
  background: var(--color-accent);
}

@media (max-width: 992px) {
  .process-step {
    gap: 20px;
  }

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

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

  .stats-grid {
    flex-direction: column;
    gap: 28px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .stat-number {
    font-size: 40px;
  }
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  overflow-y: auto;
}

.gallery-modal.active {
  display: block;
}

.gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 24px;
}

.gallery-close {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

.gallery-title {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
}

.gallery-lb-prev,
.gallery-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 56px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.gallery-lb-prev {
  left: 16px;
}
.gallery-lb-next {
  right: 16px;
}

@media (max-width: 768px) {
  .container,
  .nav-container,
  .project-track {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .philosophy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-line {
    left: 20px;
  }

  .process-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .process-step {
    gap: 16px;
  }

  .process-card {
    padding: 22px 20px;
  }

  .project-card {
    flex: 0 0 320px;
  }

  .project-image {
    height: 300px;
  }

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

/* ── Accessibility: honor reduced-motion (OS setting and the JS-set body class) ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.hotspot-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}
