/*
Theme Name: Makena Final Test 2
Theme URI: https://makenabuilt.com
Description: Makena Built v2.5. Definitive fix for hero/page-header grey bands — fixed-height containers replaced with min-height so images grow with content.
Version: 2.5.0
Author: Makena Built
Author URI: https://makenabuilt.com
Requires at least: 5.0
Tested up to: 6.7
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: makena-built
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #5C3A1E;
  --primary-dark: #3D2510;
  --accent: #C8922A;
  --accent-hover: #A87820;
  --accent-light: #E5B84B;
  --dark: #1A1A1A;
  --darker: #111111;
  --light: #F7F4F0;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --gray-light: #E8E4DF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== FOCUS & ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { transition: none; }
}

/* ===== SVG ICON SYSTEM ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }

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

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.04em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: var(--accent-light);
  transition: color 0.2s;
}
.top-bar a:hover { color: var(--white); }
.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}
.top-bar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.top-bar-social {
  color: rgba(255,255,255,0.5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.top-bar-social:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.top-bar-social .icon { width: 15px; height: 15px; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar-logo img {
  height: 60px;
  width: auto;
}
.navbar-slogan {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 8px 16px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta,
.nav-cta::after { display: none; }
a.nav-cta {
  display: inline-flex;
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}
a.nav-cta:hover { background: var(--accent-hover); color: var(--white); }
a.nav-cta::after { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: absolute;
  left: 8px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ===== PAGE HEADER BANNER ===== */
.page-header {
  position: relative;
  height: 40vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-header > img,
.page-header img.page-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
}
.page-header-content {
  position: relative;
  z-index: 3;
  padding: 0 40px;
}
.page-header-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 16px;
}
.page-header-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--primary); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--primary); }
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===== HERO (Homepage) ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 80px;
  width: 100%;
}
.hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  color: var(--white);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-address {
  position: absolute;
  right: 40px;
  bottom: 40px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: right;
  line-height: 1.5;
  z-index: 3;
}
.hero-dots {
  position: absolute;
  right: 40px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-dot:hover { border-color: var(--white); }

/* ===== INTRO (Homepage) ===== */
.intro { padding: 100px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.intro-title {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.1;
}
.intro-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}
.intro-image { position: relative; }
.intro-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.intro-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--accent);
  z-index: -1;
}

/* ===== FOUNDER CARD (Homepage) ===== */
.founder-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}
.founder-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-light);
}
.founder-info h4 {
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.founder-info p {
  font-size: 14px;
  color: var(--gray);
}
.founder-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.founder-socials a {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.founder-socials a:hover {
  color: var(--white);
  background: var(--accent);
}
.founder-socials .icon { width: 16px; height: 16px; }

/* ===== UNDERSTANDING YOUR NEEDS (Homepage) ===== */
.needs {
  background: var(--light);
  padding: 100px 0;
}
.needs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.needs-image { position: relative; overflow: hidden; }
.needs-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.needs-content h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  margin-bottom: 24px;
}
.needs-content h2 span { color: var(--accent); }
.needs-content p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.needs-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.needs-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.needs-highlight-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.needs-highlight h4 {
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.needs-highlight p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ===== LONG-TERM PARTNERS (Homepage) ===== */
.partners {
  padding: 100px 0;
  background: var(--white);
}
.partners-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}
.partners-top h2 { font-size: clamp(36px, 4vw, 52px); }
.partners-top p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
}
.partners-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.partners-gallery-main {
  position: relative;
  overflow: hidden;
}
.partners-gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s;
}
.partners-gallery-main:hover img { transform: scale(1.03); }
.partners-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
}
.partners-gallery-caption h3 { font-size: 22px; margin-bottom: 4px; }
.partners-gallery-caption p { font-size: 14px; color: rgba(255,255,255,0.7); }
.partners-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partners-gallery-side a {
  overflow: hidden;
  display: block;
  flex: 1;
}
.partners-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.partners-gallery-side a:hover img { transform: scale(1.03); }

/* ===== FULL-WIDTH FEATURE ===== */
.feature-image {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.feature-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  align-items: center;
}
.feature-image-content {
  padding: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.feature-image-content h2 {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--white);
  margin-bottom: 20px;
}
.feature-image-content p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ===== AWARDS (Homepage) ===== */
.awards {
  padding: 80px 0;
  background: var(--light);
}
.awards-header {
  text-align: center;
  margin-bottom: 60px;
}
.awards-header h2 { font-size: clamp(32px, 3.5vw, 44px); }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.award-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.award-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.award-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-icon .icon { width: 24px; height: 24px; }
.award-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.award-item p { font-size: 14px; color: var(--gray); }

/* ===== PORTFOLIO GRID ===== */
.portfolio { padding: 100px 0; }
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.portfolio-header h2 { font-size: clamp(32px, 3.5vw, 44px); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item:focus-visible .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay h3 {
  color: var(--white);
  font-size: 18px;
}
.portfolio-item.hidden {
  display: none;
}

/* ===== FILTER TABS (Portfolio page) ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.filter-tab:hover { color: var(--dark); }
.filter-tab.active {
  color: var(--dark);
}
.filter-tab.active::after {
  transform: scaleX(1);
}

/* ===== MISSION / OUR STORY (About page) ===== */
.mission { padding: 100px 0; }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.mission-title {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.1;
}
.mission-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}
.mission-image { position: relative; }
.mission-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.mission-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--accent);
  z-index: -1;
}

/* ===== FOUNDER SECTION (About page) ===== */
.founder-section {
  background: var(--light);
  padding: 100px 0;
}
.founder-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}
.founder-title {
  font-size: clamp(32px, 3.5vw, 46px);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.1;
}
.founder-bio {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}
.founder-portrait {
  position: relative;
}
.founder-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== VALUES (About page) ===== */
.values { padding: 100px 0; }
.values-header {
  text-align: center;
  margin-bottom: 60px;
}
.values-header h2 { font-size: clamp(32px, 3.5vw, 44px); }
.values-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon .icon { width: 24px; height: 24px; }
.value-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.value-item p { font-size: 14px; color: var(--gray); }

/* ===== TESTIMONIAL FEATURE (About page) ===== */
.testimonial-quote {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 60px;
  font-style: normal;
  color: var(--accent-light);
  display: block;
  line-height: 0.5;
  margin-bottom: 16px;
}
.testimonial-author {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 100px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: start;
}
.form-message {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 24px;
}
.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-light);
  padding: 14px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-light);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .btn {
  width: 100%;
  text-align: center;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--light);
  padding: 40px;
}
.contact-info-card h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--dark);
}
.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--dark);
  margin-bottom: 14px;
  font-size: 15px;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon .icon { width: 16px; height: 16px; }
.contact-info-card .contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}
.contact-socials a {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}
.contact-socials a:hover {
  background: var(--accent-hover);
  color: var(--white);
}
.contact-socials .icon { width: 18px; height: 18px; }
.contact-hours {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}
.contact-hours h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-hours p {
  font-size: 15px;
  color: var(--gray);
}

/* ===== TESTIMONIALS (Contact page) ===== */
.testimonials {
  padding: 80px 0;
  background: var(--light);
}
.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}
.testimonials-header h2 {
  font-size: clamp(32px, 3.5vw, 44px);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-left: 3px solid var(--accent);
}
.testimonial-card p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-card .testimonial-author {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  font-style: normal;
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--darker);
  padding: 80px 0 0;
  text-align: center;
}
.map-section h2 {
  font-size: clamp(32px, 3.5vw, 44px);
  color: var(--white);
  margin-bottom: 12px;
}
.map-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  filter: grayscale(40%) contrast(1.1);
}

/* ===== LOGIN SECTION ===== */
.login-section {
  padding: 100px 0;
  background: var(--white);
}
.login-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--light);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.login-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--dark);
}
.login-card .login-subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--gray-light);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}
.form-group input::placeholder {
  color: #B0ADA8;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-checkbox label {
  font-size: 15px;
  color: var(--gray);
  cursor: pointer;
  margin-bottom: 0;
  font-family: 'Source Sans 3', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.btn-login {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-login:hover { background: var(--primary); }
.btn-login:active { transform: scale(0.97); }
.forgot-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--accent);
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--primary); }

/* ===== FEATURES SECTION (Client Login page) ===== */
.features-section {
  padding: 80px 0;
  background: var(--light);
}
.features-header {
  text-align: center;
  margin-bottom: 48px;
}
.features-header h2 {
  font-size: clamp(32px, 3.5vw, 44px);
  color: var(--dark);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.feature-item {
  text-align: center;
  padding: 32px 20px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.feature-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== CTA SECTION (Client Login page) ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--darker);
  overflow: hidden;
  text-align: center;
}
.cta-section-content {
  position: relative;
  z-index: 2;
}
.cta-section-content h2 {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-section-content p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PROJECT DETAIL (Portfolio Detail pages) ===== */
.page-header-bg {
  position: absolute;
  inset: 0;
}
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header.project-header {
  height: 50vh;
  min-height: 350px;
  align-items: flex-end;
  text-align: left;
  justify-content: flex-start;
}
.page-header.project-header .page-header-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}
.page-header.project-header .page-header-content {
  padding-bottom: 48px;
  width: 100%;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  transition: color 0.2s;
}
.breadcrumb:hover { color: var(--white); }
.breadcrumb svg { width: 14px; height: 14px; fill: currentColor; }

.project-content {
  padding: 80px 0;
  background: var(--white);
}
.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.project-text h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.1;
}
.project-text p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.project-info {
  background: var(--light);
  padding: 32px;
}
.project-info h3 {
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.project-info-item {
  margin-bottom: 20px;
}
.project-info-item:last-child { margin-bottom: 0; }
.project-info-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.project-info-value {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
}

/* Project Gallery */
.project-gallery {
  padding: 0 0 80px;
}
.project-gallery h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 32px;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.project-gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.project-gallery-item:hover img {
  transform: scale(1.05);
}

/* Project Nav */
.project-nav {
  border-top: 1px solid var(--gray-light);
  padding-top: 40px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  transition: color 0.2s;
}
.project-nav-link:hover { color: var(--accent); }
.project-nav-link svg { width: 20px; height: 20px; fill: currentColor; }
.project-nav-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  display: block;
  margin-bottom: 2px;
}

/* ===== CTA (Shared) ===== */
.cta {
  position: relative;
  padding: 120px 0;
  background: var(--darker);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-left h2 {
  font-size: clamp(48px, 5vw, 72px);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.0;
}
.cta-left p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.cta-right {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 48px;
}
.cta-right h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}
.cta-right > p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 24px;
  text-transform: none;
}
.cta-right h4 {
  color: var(--accent-light);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.cta .contact-info-item {
  color: rgba(255,255,255,0.8);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--white);
}
.footer-socials .icon { width: 18px; height: 18px; }
.footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-address {
  display: block;
  font-size: 14px;
  padding: 6px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-children.visible > * {
  opacity: 0;
  animation: revealChild 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-children.visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-children.visible > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-children.visible > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-children.visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-children.visible > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-children.visible > *:nth-child(6) { animation-delay: 0.40s; }
.reveal-children.visible > *:nth-child(7) { animation-delay: 0.47s; }
.reveal-children.visible > *:nth-child(8) { animation-delay: 0.54s; }
@keyframes revealChild {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
  padding: 80px 0 100px;
}
.thank-you-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
}
.thank-you-icon {
  margin-bottom: 24px;
}
.thank-you-card h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 20px;
}
.thank-you-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 12px;
}
.thank-you-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.thank-you-phone a {
  color: var(--accent);
  transition: color 0.2s;
}
.thank-you-phone a:hover {
  color: var(--accent-hover);
}
.thank-you-hours {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
}
.thank-you-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ELEMENTOR OVERRIDES ===== */
.elementor-page .makena-header,
.elementor-page .makena-footer { display: block; }
body.elementor-default .site-content,
body.elementor-template-canvas .site-content { padding: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .navbar-slogan { display: none; }
  .intro-grid, .mission-grid, .founder-grid, .needs-grid, .cta-content { grid-template-columns: 1fr; gap: 48px; }
  .partners-top { grid-template-columns: 1fr; gap: 16px; }
  .partners-gallery { grid-template-columns: 1fr 1fr; }
  .partners-gallery-main img { height: 400px; }
  .partners-gallery-side { flex-direction: row; }
  .partners-gallery-side a { flex: 1; height: 192px; }
  .partners-gallery-side img { height: 100%; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .intro-image::after, .mission-image::after { display: none; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .hero { height: 70vh; min-height: 480px; }
  .hero-address { display: none; }
  .hero-content { padding: 0 24px 60px; }
  .hero-dots { right: 24px; bottom: 24px; }
  .page-header { height: 35vh; min-height: 260px; }
  .page-header.project-header { height: 40vh; min-height: 280px; }
  .page-header-content h1 { font-size: 36px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a::after { display: none; }
  a.nav-cta { margin-top: 12px; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .partners-gallery { grid-template-columns: 1fr; }
  .partners-gallery-main img { height: 300px; }
  .partners-gallery-side { flex-direction: column; }
  .partners-gallery-side a { height: 200px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .awards-grid, .values-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 4px; }
  .filter-tab { padding: 10px 16px; font-size: 13px; }
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-nav { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-right { padding: 32px; }
  .cta-content { gap: 48px; }
  .feature-image { height: 400px; }
  .feature-image-content { padding: 0 24px; }
  .testimonial-quote { font-size: 17px; }
  .founder-card { flex-direction: column; align-items: flex-start; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .login-card { padding: 32px 24px; }
  .map-section iframe { height: 300px; }
}

@media (max-width: 480px) {
  .hero { min-height: 420px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .page-header { min-height: 220px; }
  .page-header-content h1 { font-size: 30px; }
  .page-header-content p { font-size: 15px; }
  .btn { padding: 12px 28px; font-size: 13px; }
  .intro, .needs, .partners, .portfolio, .mission, .founder-section, .values { padding: 64px 0; }
  .cta { padding: 80px 0; }
  .feature-image { height: 350px; }
  .testimonial-quote { font-size: 15px; line-height: 1.7; }
  .contact-section { padding: 64px 0; }
  .testimonials { padding: 64px 0; }
  .contact-info-card { padding: 28px; }
  .testimonial-card { padding: 28px; }
  .login-section { padding: 64px 0; }
  .features-section { padding: 64px 0; }
  .cta-section { padding: 64px 0; }
  .project-content { padding: 48px 0; }
  .project-gallery { padding: 0 0 48px; }
}

/* ============================================================
 * v2.3.0 IMAGE GAP FIX
 * ------------------------------------------------------------
 * Eliminates grey gaps below images in two-column grid layouts
 * where the image's fixed pixel height was shorter than its
 * grid cell (the cell stretched to match the sibling text column).
 *
 * Affected: .intro-image, .needs-image, .mission-image,
 *           .partners-gallery-main
 *
 * Technique: container becomes a positioning context that fills
 * the grid cell; image is absolutely positioned to fill the
 * container, using object-fit: cover to preserve the composition.
 * ============================================================ */
.intro-image,
.needs-image,
.mission-image,
.partners-gallery-main {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 500px;
}
.needs-image { min-height: 450px; }

.intro-image img,
.needs-image img,
.mission-image img,
.partners-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

@media (max-width: 1024px) {
  .intro-image,
  .needs-image,
  .mission-image,
  .partners-gallery-main { min-height: 450px; }
}
@media (max-width: 768px) {
  .intro-image,
  .needs-image,
  .mission-image,
  .partners-gallery-main { min-height: 380px; }
}
@media (max-width: 480px) {
  .intro-image,
  .needs-image,
  .mission-image,
  .partners-gallery-main { min-height: 280px; }
}

/* ========================================================================
 * v2.4.0 DEFINITIVE GAP FIX
 * ------------------------------------------------------------------------
 * Resolves three distinct issues:
 *
 *   1. BLANK AREA BENEATH IMAGES in two-column grids (intro, needs,
 *      mission, founder): image columns sat at ~500px while the sibling
 *      text column grew to ~900px. Root cause: the grid's `align-items:
 *      center` prevented the image column from stretching. Fix: grid
 *      now uses `align-items: stretch` (overridden with !important to
 *      beat any downstream cascade), container fills the cell height
 *      (height: 100%), image absolutely fills the container.
 *
 *   2. DECORATIVE L-SHAPE ::after FLOATING in empty space. When the
 *      image container stayed at 500px inside a 900px cell, the
 *      ::after pseudo-element (positioned `bottom: -20px` relative to
 *      the container) ended up in the middle of the cell. Fix is
 *      automatic once the container stretches — the ::after is now
 *      anchored to the bottom-right of the stretched container, which
 *      is flush with the image's bottom-right corner.
 *
 *   3. GREY BANDS around full-width Makena widgets (hero, page-header,
 *      feature-image, big CTA, map, partners). Elementor's boxed
 *      section container limits these to ~1200px/1920px. Fix: force
 *      these widgets to break out using viewport-width calculation.
 * ======================================================================== */

/* 1a. Grids stretch image columns to match sibling text column */
.intro-grid,
.needs-grid,
.mission-grid,
.founder-grid {
  align-items: stretch !important;
}

/* 1b. Image containers fill the full grid cell */
.intro-image,
.needs-image,
.mission-image,
.partners-gallery-main {
  position: relative;
  overflow: hidden;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 500px;
}
.needs-image { min-height: 450px; }

/* 1c. Image fills its stretched container */
.intro-image > img,
.needs-image > img,
.mission-image > img,
.partners-gallery-main > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s ease !important;
}

/* 2. Decorative frame anchors to the bottom-right of the stretched image */
.intro-image::after,
.mission-image::after {
  bottom: -20px !important;
  right: -20px !important;
  z-index: -1;
}

/* 3a. Full-width Makena widgets break out of Elementor's boxed container */
.elementor-widget-makena-hero,
.elementor-widget-makena-page-header,
.elementor-widget-makena-feature-image,
.elementor-widget-makena-cta,
.elementor-widget-makena-map-section {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* 3b. Remove widget-level padding for all Makena widgets so their own
 *     section backgrounds extend edge-to-edge with no gaps. */
.elementor-widget[class*="elementor-widget-makena-"] > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}

/* 3c. When an Elementor section wraps only a full-width Makena widget,
 *     strip the section's default padding so nothing shows above/below. */
.elementor-section:has(.elementor-widget-makena-hero),
.elementor-section:has(.elementor-widget-makena-page-header),
.elementor-section:has(.elementor-widget-makena-feature-image),
.elementor-section:has(.elementor-widget-makena-cta),
.elementor-section:has(.elementor-widget-makena-map-section) {
  padding: 0 !important;
}

/* Responsive min-height for image containers in single-column (mobile) layout */
@media (max-width: 1024px) {
  .intro-image, .needs-image, .mission-image, .partners-gallery-main { min-height: 450px; }
}
@media (max-width: 768px) {
  .intro-image, .needs-image, .mission-image, .partners-gallery-main { min-height: 380px; }
}
@media (max-width: 480px) {
  .intro-image, .needs-image, .mission-image, .partners-gallery-main { min-height: 280px; }
}

/* ========================================================================
 * v2.5.0 ROOT-CAUSE HERO/PAGE-HEADER FIX
 * ------------------------------------------------------------------------
 * The hero and page-header sections used `height: X vh` (a fixed ceiling).
 * When the text+buttons inside were taller than that ceiling (common on
 * mobile with wrapped subtitles and stacked buttons, and inside Elementor
 * which wraps widgets in their own column containers), the content could
 * not fit and pushed the visual layout out of shape — image stayed at vh
 * height while content overflowed below it, creating the grey band.
 *
 * Fix: replace fixed height with min-height. Container grows with content.
 * The absolutely-positioned images (inset:0) grow in lockstep. No gap.
 * ======================================================================== */

.hero {
  height: auto !important;
  min-height: 85vh !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: flex-end !important;
  width: 100% !important;
}

.hero-slides,
.hero-slide {
  position: absolute !important;
  inset: 0 !important;
}
.hero-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}
.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
}
.hero-content {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  padding-top: 80px !important;
}

@media (max-width: 768px) {
  .hero { min-height: 70vh !important; }
  .hero-content { padding-top: 60px !important; }
}

/* Same fix on .page-header (smaller scale) */
.page-header {
  height: auto !important;
  min-height: 40vh !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 60px 24px !important;
}
.page-header > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  z-index: 1 !important;
}
.page-header-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
}
.page-header-content {
  position: relative !important;
  z-index: 3 !important;
}

@media (max-width: 768px) {
  .page-header { min-height: 35vh !important; padding: 40px 20px !important; }
}

/* .feature-image uses same pattern (fixed 500px height) — apply same fix */
.feature-image {
  height: auto !important;
  min-height: 500px !important;
  position: relative !important;
  overflow: hidden !important;
}
.feature-image > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.feature-image-overlay {
  position: relative !important;
  z-index: 2 !important;
  min-height: inherit !important;
}
@media (max-width: 768px) {
  .feature-image { min-height: 400px !important; }
}
@media (max-width: 480px) {
  .feature-image { min-height: 320px !important; }
}
