/*
Theme Name: Al Jardin 1354
Theme URI: https://aljardin.com
Author: Aljardín Ingenieros S.L.
Author URI: https://aljardin.com
Description: Conversion WordPress PHP + ACF de Aljardín ajustada para fidelidad visual 1:1 con la referencia original. Build 1354.
Version: 1.3.5.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aljardin
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --green-primary: #2D5A3D;
  --green-dark: #1E3D2A;
  --green-light: #3A7A52;
  --cream: #F8F6F3;
  --cream-dark: #F0EDE8;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --text-light: #888888;
  --white: #ffffff;
  --black: #000000;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Screen reader text - Accesibilidad */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip link - Accesibilidad */
.skip-link {
  background: var(--green-primary);
  color: var(--white);
  padding: 1rem 2rem;
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.font-serif,
h1, h2, h3 {
  font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.site-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-logo-text {
  display: none;
}

@media (min-width: 640px) {
  .site-logo-text {
    display: block;
  }
}

.site-logo-text .name {
  font-weight: 600;
  font-size: 1.125rem;
  display: block;
}

.site-logo-text .tagline {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Navigation */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--green-primary);
}

.site-header.transparent .main-navigation a {
  color: var(--white);
}

.site-header.transparent .main-navigation a:hover,
.site-header.transparent .main-navigation a.current {
  color: var(--white);
  border-bottom: 2px solid var(--white);
  padding-bottom: 0.25rem;
}

/* Header contact */
.header-contact {
  display: none;
}

@media (min-width: 1024px) {
  .header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.header-contact a:hover {
  opacity: 0.8;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 1rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.current {
  background: var(--green-primary);
  color: var(--white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(45, 90, 61, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
  color: var(--white);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:focus {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  border-radius: 9999px;
  border: 2px solid var(--green-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
}

.btn-secondary:focus {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

.btn-secondary-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-white:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 8rem;
  max-width: 48rem;
}

.hero h1 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto;
}

/* ==========================================================================
   Quick Contact Form
   ========================================================================== */
.quick-form-section {
  background: var(--green-primary);
  padding: 1.5rem 0;
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .quick-form {
    flex-direction: row;
    align-items: center;
  }
}

.quick-form input,
.quick-form select {
  flex: 1;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
}

.quick-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.quick-form select {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  appearance: none;
}

.quick-form input:focus,
.quick-form select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.quick-form button {
  width: 100%;
  padding: 0.875rem 2rem;
  background: var(--white);
  color: var(--green-primary);
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
}

@media (min-width: 1024px) {
  .quick-form button {
    width: auto;
  }
}

.quick-form button:hover {
  background: #f5f5f5;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background: var(--cream);
}

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

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.25rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.certifications-section {
  background: var(--white);
  padding: 3rem 0;
}

.certifications-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .certifications-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.certifications-text {
  max-width: 32rem;
}

.certifications-text h3 {
  margin-bottom: 0.75rem;
}

.certifications-text p {
  color: var(--text-gray);
}

.certifications-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.certifications-logos img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.link-arrow:hover {
  color: var(--green-primary);
  gap: 0.75rem;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Works/Projects Section
   ========================================================================== */
.works-section {
  background: var(--cream);
}

.works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

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

@media (min-width: 640px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.work-card {
  display: block;
  position: relative;
}

.work-card-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.work-card-content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.work-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.work-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 8rem 0;
}

.cta-background {
  position: absolute;
  inset: 0;
}

.cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-form-section {
  background: var(--white);
}

.contact-form-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contact-form-wrapper h2 {
  margin-bottom: 1rem;
}

.contact-form-wrapper > p {
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

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

@media (min-width: 768px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.input-light {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: 0.5rem;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
}

.input-light:focus {
  outline: none;
  border-color: var(--green-primary);
}

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

.input-dark {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #2A2A2A;
  border: none;
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
}

.input-dark::placeholder {
  color: #888;
}

.input-dark:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--green-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid #eee;
}

/* Certifications bar */
.footer-certifications {
  background: var(--cream);
  padding: 1.5rem 0;
}

.footer-certifications-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-certifications-inner {
    gap: 3rem;
  }
}

.footer-certifications span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.cert-badge-icon svg {
  width: 14px;
  height: 14px;
}

/* Footer main */
.footer-main {
  padding: 3rem 0 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--green-primary);
  color: var(--white);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green-primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span,
.footer-contact-item a {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.footer-contact-item a:hover {
  color: var(--green-primary);
}

/* Kit Digital Banner */
.kit-digital-banner {
  background: #1a1a2e;
  padding: 2.5rem 0;
}

.kit-digital-banner .container {
  display: flex;
  justify-content: center;
}

.kit-digital-banner img {
  max-width: 2400px;
  width: 100%;
  height: auto;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green-primary);
}

/* ==========================================================================
   Conversion Fidelity Overrides
   ========================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

main,
section,
header,
footer,
div {
  max-width: 100%;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.wp-site-blocks,
.entry-content,
.wp-block-group,
.wp-block-post-content {
  margin: 0;
  padding: 0;
  max-width: none;
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding-inline: 0;
}

.container-narrow {
  width: min(100% - 48px, 840px);
}

.section {
  padding: 88px 0;
}

.section-warm {
  background: var(--cream);
}

.eyebrow,
.hero-eyebrow,
.page-hero-eyebrow {
  margin: 0 0 12px;
  color: rgba(45, 90, 61, 0.95);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-eyebrow,
.page-hero-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.btn-primary,
.btn-secondary,
.btn-secondary-white,
.header-budget-button,
.quick-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.header-budget-button,
.quick-form button {
  background: var(--green-primary);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(30, 61, 42, 0.18);
}

.btn-primary:hover,
.header-budget-button:hover,
.quick-form button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.transparent .header-budget-button {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.transparent .header-budget-button:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-primary);
}

.scrolled .header-budget-button {
  background: var(--green-primary);
  color: var(--white);
  border-color: transparent;
}

.quick-form button {
  background: var(--white);
  color: var(--green-primary);
  border-color: transparent;
  box-shadow: none;
}

.quick-form button:hover {
  background: var(--cream);
  color: var(--green-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid rgba(45, 90, 61, 0.18);
}

.btn-secondary:hover {
  background: rgba(45, 90, 61, 0.06);
  border-color: var(--green-primary);
}

.btn-secondary-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary-white:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-primary);
}

.input-warm,
.input-dark,
.quick-form input,
.quick-form select {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 15px;
  line-height: 1.4;
}

.input-warm {
  background: var(--cream);
  border-color: rgba(45, 90, 61, 0.12);
}

.input-warm:focus,
.input-dark:focus,
.quick-form input:focus,
.quick-form select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.08);
}

.input-dark,
.quick-form input,
.quick-form select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.input-dark::placeholder,
.quick-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.quick-form select option {
  color: var(--text-dark);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  padding: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.site-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-logo-text .name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.site-logo-text .tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.72;
}

.transparent .site-logo,
.transparent .site-logo-text {
  color: var(--white);
}

.scrolled .site-logo,
.scrolled .site-logo-text {
  color: var(--text-dark);
}

.main-navigation {
  display: none;
}

.main-navigation .menu,
.main-navigation {
  align-items: center;
  gap: 4px;
}

.main-navigation .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.transparent .main-navigation a {
  color: rgba(255, 255, 255, 0.82);
}

.transparent .main-navigation .current-menu-item > a,
.transparent .main-navigation a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.scrolled .main-navigation a {
  color: var(--text-gray);
}

.scrolled .main-navigation .current-menu-item > a,
.scrolled .main-navigation a:hover {
  color: var(--green-primary);
  background: rgba(45, 90, 61, 0.08);
}

.header-contact {
  display: none;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.transparent .header-contact {
  color: var(--white);
}

.scrolled .header-contact {
  color: var(--text-dark);
}

.header-budget-button {
  min-height: 40px;
  padding: 10px 20px;
}

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu {
  top: 72px;
}

.mobile-menu .menu {
  list-style: none;
  margin: 0;
  padding: 32px 0 0;
}

.mobile-menu .menu a {
  display: block;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

.mobile-contact {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.mobile-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-budget-link {
  width: 100%;
  margin-top: 18px;
}

.hero,
.page-hero,
.cta-section {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-background,
.page-hero-background,
.cta-background {
  position: absolute;
  inset: 0;
}

.hero-background img,
.page-hero-background img,
.cta-background img,
.split-media img,
.service-card-image img,
.service-detail-image img,
.project-card-image img,
.work-card-image img,
.team-gallery-card img,
.team-collage-main img,
.team-collage-stack img,
.value-card-image img,
.contact-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 24, 18, 0.2) 0%, rgba(11, 24, 18, 0.62) 100%);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-shell,
.page-hero-content,
.cta-content {
  position: relative;
  z-index: 1;
}

.hero-shell {
  padding-top: 112px;
  padding-bottom: 144px;
}

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

.hero-content h1,
.page-hero-content h1,
.cta-content h2 {
  margin: 0;
  color: var(--white);
  line-height: 1.08;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-description,
.page-hero-content p,
.cta-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.hero-description {
  max-width: 700px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.scroll-line {
  width: 1px;
  height: 32px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.3);
}

.quick-form-section {
  background: var(--green-primary);
  padding: 20px 0;
}

.quick-form {
  display: grid;
  gap: 12px;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading-centered,
.section-cta-link,
.works-mobile-link {
  text-align: center;
}

.section-heading h2,
.split-content h2,
.contact-form-section h2,
.certifications-text h3,
.works-header h2,
.generic-page-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.12;
}

.section-heading p,
.split-content p,
.section-intro {
  color: var(--text-gray);
}

.divider-organic {
  border: 0;
  border-top: 1px solid rgba(45, 90, 61, 0.12);
  margin: 0 0 64px;
}

.divider-organic:last-child {
  margin: 64px 0 0;
}

.services-grid,
.works-grid {
  display: grid;
  gap: 24px;
}

.service-card,
.work-card,
.project-card,
.value-card {
  display: block;
}

.service-card-image,
.work-card-image,
.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.service-card-overlay,
.work-card-overlay,
.project-card-overlay,
.team-gallery-overlay,
.split-media-overlay {
  position: absolute;
  inset: 0;
}

.service-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.service-card-title,
.work-card-content,
.project-card-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}

.service-card-title h3,
.work-card-content h3,
.project-card-info h3 {
  margin: 0;
  color: var(--white);
}

.service-card-content {
  padding-top: 20px;
}

.service-card-content p,
.work-card-content p {
  margin: 0;
  color: var(--text-gray);
}

.work-card-overlay,
.project-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
}

.work-card-hover,
.project-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.work-card-hover span,
.project-card-hover span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.work-card:hover .work-card-hover,
.project-card:hover .project-card-hover {
  opacity: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-primary);
  font-size: 15px;
  font-weight: 600;
}

.split-section {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
}

.split-content h2 {
  margin-bottom: 18px;
}

.values-list {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.value-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.value-row-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(45, 90, 61, 0.08);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-row-icon svg {
  width: 28px;
  height: 28px;
}

.value-row h3,
.value-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}

.value-row p,
.value-card p {
  margin: 0;
  color: var(--text-gray);
}

.team-preview-collage {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 16px;
}

.team-collage-main,
.team-collage-stack > div {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.team-collage-main {
  aspect-ratio: 3 / 4;
}

.team-collage-stack {
  display: grid;
  gap: 16px;
}

.team-collage-stack > div {
  aspect-ratio: 1;
}

.team-stats-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 32px;
}

.team-stat-value {
  margin: 0;
  color: var(--green-primary);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
}

.team-stat-label {
  margin: 4px 0 0;
}

.certifications-section {
  padding: 56px 0;
  background: var(--white);
}

.certifications-inner,
.works-header {
  display: grid;
  gap: 32px;
  align-items: end;
}

.certifications-text h3 {
  margin-bottom: 16px;
}

.certifications-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.page-hero {
  position: relative;
  min-height: 400px;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-compact {
  min-height: 320px;
  height: 40vh;
}

.page-hero-content {
  width: min(100% - 48px, 760px);
}

.page-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-style: italic;
  margin-bottom: 16px;
}

.services-detail-grid,
.projects-grid,
.values-grid {
  display: grid;
  gap: 32px;
}

.service-detail-card,
.project-card article,
.value-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.service-detail-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-detail-content,
.value-card-content {
  padding: 28px;
}

.service-tags,
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags {
  margin: 24px 0;
}

.badge,
.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge {
  background: #f6f2ed;
  border: 1px solid rgba(45, 90, 61, 0.12);
  color: var(--text-gray);
}

.project-card-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
}

.project-tag {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

.project-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  margin: 6px 0 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(45, 90, 61, 0.12);
  background: var(--white);
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-tab.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.team-gallery-grid {
  display: grid;
  gap: 24px;
}

.team-gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.team-gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.team-gallery-card p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.stats-bar {
  background: var(--green-primary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .value {
  margin: 0 0 8px;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.stat-item .label {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.value-card-image {
  height: 176px;
  overflow: hidden;
}

.value-card-content {
  text-align: center;
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: -52px auto 16px;
  border-radius: 999px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.cta-section {
  padding: 112px 0;
}

.cta-content {
  text-align: center;
  width: min(100% - 48px, 860px);
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-style: italic;
  margin-bottom: 18px;
}

.cta-content p {
  max-width: 640px;
  margin: 0 auto 28px;
}

.contact-layout {
  display: grid;
  gap: 48px;
}

.contact-form,
.page-contact-form {
  display: grid;
  gap: 20px;
}

.home-contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-start;
}

.home-contact-form .contact-form-actions {
  justify-content: center;
}

.contact-sidebar {
  display: grid;
  gap: 24px;
}

.contact-sidebar-image,
.contact-map {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-sidebar-image {
  aspect-ratio: 16 / 9;
}

.contact-map {
  height: 256px;
}

.contact-info-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--green-primary);
  color: var(--white);
}

.contact-info-card h2 {
  margin: 0 0 24px;
  font-size: 1.25rem;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-info-item + .contact-info-item {
  margin-top: 20px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.contact-info-value a,
.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.92);
}

.contact-info-value a {
  display: block;
}

.contact-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.contact-privacy input {
  margin-top: 4px;
}

.form-message {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.form-message.is-success {
  background: rgba(45, 90, 61, 0.1);
  color: var(--green-primary);
}

.form-message.is-error {
  background: rgba(220, 53, 69, 0.1);
  color: #b91c1c;
}

.contact-certifications {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 0;
}

.generic-page {
  padding-top: 128px;
}

.generic-page-title {
  margin-bottom: 20px;
}

.generic-page-content > *:last-child {
  margin-bottom: 0;
}

.section-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-code {
  margin-bottom: 16px;
  color: var(--green-primary);
  font-size: clamp(4rem, 10vw, 6rem);
}

.error-copy {
  max-width: 32rem;
  margin: 0 auto 32px;
  color: var(--text-gray);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.portfolio-archive .filter-tabs {
  gap: 8px;
  margin-bottom: 48px;
}

.portfolio-archive .filter-tab {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-gray);
  box-shadow: none;
}

.portfolio-archive .filter-tab:hover {
  background: #f8f6f3;
  color: var(--text-dark);
}

.portfolio-archive .filter-tab.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.portfolio-archive .projects-grid {
  gap: 24px;
}

.portfolio-archive .project-card {
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: none;
}

.portfolio-archive .project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.portfolio-archive .project-card article {
  height: 100%;
}

.portfolio-archive .project-card-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.portfolio-archive .project-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12), transparent);
}

.portfolio-archive .project-card-tags {
  gap: 8px;
}

.portfolio-archive .project-tag {
  padding: 6px 10px;
  font-size: 11px;
}

.portfolio-archive .project-card-info {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.portfolio-archive .project-card-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.portfolio-archive .project-card-location {
  margin: 0;
  font-size: 0.875rem;
}

.portfolio-archive .project-card-hover {
  background: rgba(45, 90, 61, 0.16);
}

.project-detail-page .project-hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25), transparent);
}

.project-detail-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.project-detail-content {
  padding: 88px 0;
}

.project-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-detail-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.12;
}

.project-description-copy {
  color: var(--text-gray);
  font-size: 1.125rem;
  line-height: 1.75;
}

.project-description-copy > *:first-child {
  margin-top: 0;
}

.project-description-copy > *:last-child {
  margin-bottom: 0;
}

.project-related-title {
  margin: 0 0 40px;
}

.related-grid {
  gap: 24px;
}

.related-card {
  display: block;
}

.related-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 90, 61, 0);
  transition: background-color 0.25s ease;
}

.related-card:hover .related-card-overlay {
  background: rgba(45, 90, 61, 0.08);
}

.related-card-body h3 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.related-card:hover .related-card-body h3 {
  color: var(--green-primary);
}

.related-card-body p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid,
  .team-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 1024px) {
  .main-navigation,
  .header-contact {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .quick-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
  }

  .split-section,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }

  .split-section-reverse .split-content {
    order: 1;
  }

  .split-section-reverse .team-preview-collage {
    order: 2;
  }

  .works-header,
  .certifications-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .works-desktop-link {
    justify-self: end;
  }

  .works-mobile-link {
    display: none;
  }

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

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

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

@media (max-width: 1023px) {
  .split-media-desktop {
    display: none;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .hero-shell {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .hero-buttons,
  .contact-form-actions {
    justify-content: flex-start;
  }

  .page-contact-form,
  .home-contact-form,
  .quick-form,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-content,
  .value-card-content,
  .contact-info-card {
    padding: 24px;
  }

  .works-desktop-link {
    display: none;
  }
}

/* ==========================================================================
   Page Headers
   ========================================================================== */
.page-header {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-background {
  position: absolute;
  inset: 0;
}

.page-header-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-header-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-style: italic;
}

/* ==========================================================================
   Services Page
   ========================================================================== */
.services-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-detail-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-detail-content {
  padding: 1.5rem 2rem;
}

.service-detail-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-detail-card > p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge-green {
  background: rgba(45, 90, 61, 0.1);
  color: var(--green-primary);
  border-color: rgba(45, 90, 61, 0.2);
}

.service-detail-image {
  height: 14rem;
}

@media (min-width: 768px) {
  .service-detail-image {
    height: 16rem;
  }
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Team Page
   ========================================================================== */
.team-gallery {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .team-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-image:hover img {
  transform: scale(1.05);
}

.team-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.team-image p {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

/* Stats bar */
.stats-bar {
  background: var(--green-primary);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item .value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-item .value {
    font-size: 3rem;
  }
}

.stat-item .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Values */
.values-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s;
}

.value-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(45, 90, 61, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.value-card p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Eyebrow text */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-primary);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section {
  padding-top: 5rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 400px;
  }
}

.contact-info-card {
  background: var(--green-primary);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
}

.contact-info-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-info-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.contact-info-value a {
  display: block;
  transition: text-decoration 0.2s;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-map {
  border-radius: 1rem;
  overflow: hidden;
  height: 16rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Single Project
   ========================================================================== */
.project-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
}

.project-hero-slider {
  position: absolute;
  inset: 0;
}

.project-hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  padding: 8rem 0 2rem;
}

.project-badge {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.project-hero h1 {
  color: var(--white);
  margin-bottom: 0;
}

.project-thumbnails {
  display: none;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .project-thumbnails {
    display: flex;
  }
}

.project-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--green-primary);
}

.breadcrumb .current {
  color: var(--green-primary);
}

/* Project content */
.project-content {
  background: var(--white);
  padding: 3rem 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-meta-item svg {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
}

.project-description {
  max-width: 56rem;
}

.project-description p {
  color: var(--text-gray);
  line-height: 1.7;
}

.project-features {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.project-features h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.features-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-gray);
}

.features-list svg {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
  flex-shrink: 0;
}

.project-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Related projects */
.related-projects {
  background: var(--cream);
}

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

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Projects Archive / Filter
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text-gray);
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  background: #f5f5f5;
}

.filter-tab.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

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

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: block;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.project-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
}

.project-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.project-card-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.project-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
  line-height: 1.15;
}

.project-card-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.project-card-location svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}
