/*
Theme Name: Madad Ki Toli Foundation
Theme URI: https://beta.webscrowd.in/madad/
Author: Madad Ki Law Foundation
Description: Dynamic WordPress theme matching the Madad Ki Law Foundation reference design. Fully editable via Gutenberg Block Editor, native WordPress patterns, dynamic customizer options, and responsive styling.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: madad-ki-toli
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #087c56;
  --green-dark: #07533e;
  --green-deep: #082f25;
  --mint: #e8f5ed;
  --mint2: #f4f8f4;
  --lime: #c7e9a7;
  --ink: #17372c;
  --muted: #60746b;
  --line: #dfe9e1;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(7, 65, 45, 0.09);
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-heading: 'Manrope', sans-serif;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea, select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #ffffff;
  color: var(--green-dark);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 99999;
}
.skip-link:focus {
  left: 15px;
  top: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.container, .wrap {
  width: min(1160px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */
.site-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf1ed;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1160px, calc(100% - 48px));
  min-height: 88px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
}

.brand img, .custom-logo {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  object-fit: contain;
  flex: 0 0 64px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 3px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #40574d;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav li.current-menu-item > a,
.site-nav li.current-page-ancestor > a,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

.header-cta {
  background: var(--green);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* =========================================================
   COMMON ELEMENTS & TYPOGRAPHY
========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8bc66b;
  flex-shrink: 0;
}

.eyebrow-light {
  color: #c9e9b5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
}

h1 em, h2 em, h3 em,
.hero h1 em, .page-hero h1 em, .section h2 em, .split-copy h2 em, .story-inner h2 em, .mission-panel h2 em, .contact-heading h2 em {
  font-style: normal;
  color: var(--green);
}

.section {
  padding: 85px 0;
}

.section-soft {
  background: var(--mint2);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading.centered-heading {
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.055em;
  margin: 13px 0 0;
}

.section-heading > p {
  max-width: 440px;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.8;
}

.button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.3;
}

.button:hover, .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.button-primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--green);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(8, 124, 86, 0.17);
}

.button-primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--green-dark);
}

.button-light, .wp-block-button.is-style-outline .wp-block-button__link {
  background: #ffffff;
  color: var(--green-dark) !important;
  border: 1px solid #e1eae1;
}

.button-light:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #f7faf7;
}

.button-white {
  background: #ffffff;
  color: var(--green-dark) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.button-white:hover {
  background: #f4fbf5;
}

.button-row, .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* =========================================================
   HOME PAGE SECTIONS
========================================================= */
/* Hero Section */
.hero {
  overflow: hidden;
  background: linear-gradient(110deg, #f4faf5 0%, #f5f8ee 60%, #eaf5e7 100%);
  padding: 76px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.1vw, 4.8rem);
  line-height: 1.07;
  letter-spacing: -0.065em;
  margin: 22px 0 24px;
  font-weight: 800;
}

.hero-lead {
  max-width: 590px;
  color: #596d62;
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.note-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff0dd;
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-note span:last-child {
  display: flex;
  flex-direction: column;
}

.hero-note strong {
  font-size: 0.86rem;
  color: var(--ink);
}

.hero-note small {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  padding: 15px 20px 15px 15px;
}

.hero-image-wrap {
  height: 490px;
  overflow: hidden;
  border-radius: 48% 48% 28px 28px;
  background: #d9e8d8;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

.image-sticker {
  position: absolute;
  left: -15px;
  bottom: 42px;
  background: #ffffff;
  padding: 16px 21px;
  border-radius: 17px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 12px;
  align-items: center;
  z-index: 2;
}

.image-sticker span {
  grid-row: span 2;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f5e7;
  color: var(--green);
  font-size: 1.1rem;
}

.image-sticker strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.image-sticker small {
  font-size: 0.75rem;
  color: var(--muted);
}

.floating-leaf {
  position: absolute;
  color: #9dcf80;
  font-size: 2.6rem;
  line-height: 1;
  user-select: none;
}

.leaf-one {
  top: -8px;
  right: 2px;
}

.leaf-two {
  bottom: 25px;
  right: -8px;
  font-size: 1.7rem;
}

/* Intro Strip */
.intro-strip {
  background: var(--green-dark);
  color: #ffffff;
}

.intro-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.strip-mark {
  font-size: 1.7rem;
  color: var(--lime);
  flex-shrink: 0;
}

.intro-strip p {
  margin: 0;
  flex: 1;
  font-size: 0.94rem;
  color: #d9e9df;
}

.intro-strip p strong {
  color: #ffffff;
}

.intro-strip a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.intro-strip a:hover {
  text-decoration: underline;
}

/* Purpose / Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.work-image {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: var(--mint);
}

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

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

.card-number {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ffffff;
  color: var(--green);
  font-weight: 800;
  font-size: 0.77rem;
  border-radius: 100px;
  padding: 7px 11px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.work-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
}

.work-copy h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 8px 0;
}

.work-copy p {
  color: var(--muted);
  font-size: 0.91rem;
  margin: 0 0 20px;
  line-height: 1.7;
}

.work-copy a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.work-copy a:hover {
  text-decoration: underline;
}

/* Split Layout (Who We Are / About Preview) */
.about-preview {
  background: var(--mint2);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 75px;
}

.split-image {
  height: 490px;
  border-radius: 28px;
  overflow: hidden;
  background: #e3eee3;
  box-shadow: var(--shadow);
}

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

.split-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin: 14px 0 0;
}

.split-copy > p {
  color: var(--muted);
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.8;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d8efdb;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 23px;
  display: flex;
  flex-direction: column;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e3f3e5;
  color: var(--green);
  font-size: 1.35rem;
}

.value-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 18px 0 8px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.91rem;
  margin: 0;
  line-height: 1.7;
}

/* Story / Get Involved Banner */
.story-section {
  background: var(--green-dark);
  color: #ffffff;
  padding: 72px 0;
}

.story-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.story-inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
  line-height: 1.13;
  margin: 13px 0;
  color: #ffffff;
}

.story-inner h2 em {
  color: #c8e9ad;
}

.story-inner p {
  color: #d5e6dc;
  max-width: 560px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.8;
}

/* Mission Panel / Start a Conversation */
.mission-panel {
  background: #f2f8f0;
  border-radius: 26px;
  padding: 45px 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 55px;
}

.mission-panel h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  letter-spacing: -0.055em;
  margin: 12px 0 0;
}

.mission-panel p {
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.8;
}

/* Center helper */
.center {
  text-align: center;
}

/* =========================================================
   PAGE HERO & BREADCRUMBS (ABOUT, GALLERY, CONTACT)
========================================================= */
.page-hero {
  background: linear-gradient(115deg, #f2f9f2, #eaf5e8);
  padding: 58px 0 44px;
}

.page-hero-inner {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 16px 0 14px;
}

.page-hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
}

.breadcrumbs {
  margin-top: 24px;
  font-size: 0.84rem;
  color: #708077;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs span {
  color: #a4b3aa;
}

/* =========================================================
   GALLERY PAGE SPECIFIC
========================================================= */
.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 32px;
}

.gallery-intro p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
}

.gallery-count {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mint2);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 15px;
  white-space: nowrap;
}

.gallery-count strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--green);
}

.gallery-count span {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.gallery-grid, .wp-block-gallery:not(.is-style-plain) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 35px !important;
  padding: 0 !important;
}

.gallery-item, .wp-block-gallery .wp-block-image {
  margin: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f2f7f2 !important;
  border: 1px solid var(--line) !important;
  display: flex !important;
  flex-direction: column !important;
}

.gallery-item a, .wp-block-gallery .wp-block-image a {
  display: block;
  overflow: hidden;
}

.gallery-item img, .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
  display: block !important;
}

.gallery-item:hover img, .wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.05) !important;
}

.gallery-item figcaption, .wp-block-gallery .wp-block-image figcaption {
  padding: 12px 15px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  background: #ffffff !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Video Grid */
.video-section {
  background: var(--mint2);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20, 50, 35, 0.05);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #111111;
  object-fit: cover;
}

.video-caption {
  padding: 18px 20px;
}

.video-caption span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 800;
}

.video-caption h3 {
  font-size: 1.15rem;
  margin: 6px 0 0;
}

/* =========================================================
   CONTACT PAGE SPECIFIC
========================================================= */
.contact-heading {
  max-width: 800px;
  margin: 0 0 38px;
}

.contact-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.055em;
  margin: 12px 0 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-info-panel {
  padding: 32px;
  border-radius: 18px;
  background: #eff7f0;
  border: 1px solid #dceade;
}

.contact-info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.contact-info-panel > p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid #dceade;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--green);
  font-size: 1.25rem;
}

.contact-detail h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-detail a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

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

.contact-form-panel {
  padding: 34px;
  border: 1px solid #e2eae3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(20, 50, 35, 0.05);
}

.contact-form-panel h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.contact-form-panel > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.form-field label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7e1d9;
  border-radius: 9px;
  background: #fbfdfb;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 124, 86, 0.12);
  background: #ffffff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  border: none;
  border-radius: 9px;
  background: var(--green);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #64756b;
  font-size: 0.82rem;
  line-height: 1.6;
}

.form-notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-notice.success {
  background: #e6f6ec;
  color: #0b6940;
  border: 1px solid #c7ebd1;
}

.form-notice.error {
  background: #fdf2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mkt-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--green-deep);
  color: #e5f0e8;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 65px;
  padding-bottom: 45px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: #ffffff;
}

.footer-brand small {
  color: #b3cbbd;
  font-size: 0.75rem;
  margin-top: 2px;
}

.footer-about p,
.footer-grid > div:last-child p {
  color: #b8cec0;
  font-size: 0.92rem;
  max-width: 340px;
  line-height: 1.8;
  margin: 0;
}

.footer-grid h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.05rem;
  margin: 4px 0 18px;
  letter-spacing: -0.02em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  display: inline-block;
  color: #c8dacf;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #c9e9ad;
}

.footer-grid .footer-link {
  color: #c9e9ad !important;
  font-weight: 700;
  margin-top: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  color: #a9c1b3;
  font-size: 0.84rem;
}

/* =========================================================
   GUTENBERG BLOCK EDITOR STYLES & ALIGNMENTS
========================================================= */
.entry-content {
  width: 100%;
}

.entry-content > .alignwide {
  width: min(1160px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignfull {
  width: 100%;
  max-width: 100%;
}

.wp-block-columns {
  display: flex;
  margin-bottom: 1.75em;
  box-sizing: border-box;
}

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

/* Laptop / Desktop max 1100px */
@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }
  .site-nav ul {
    gap: 16px;
  }
  .header-cta {
    padding: 11px 16px;
    font-size: 0.86rem;
  }
  .split-layout {
    gap: 40px;
  }
  .footer-grid {
    gap: 35px;
  }
}

/* Tablet max 900px */
@media (max-width: 900px) {
  .header-inner {
    min-height: 78px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .header-inner .brand img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  .site-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    order: 5;
    margin: 0;
    padding: 10px 0 16px;
    align-items: stretch;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav a {
    display: block;
    padding: 12px 6px;
    border-top: 1px solid #edf2ed;
    white-space: normal;
  }
  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    gap: 35px;
  }
  .hero-visual {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
  .hero-image-wrap {
    height: 420px;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid, .wp-block-gallery:not(.is-style-plain) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* Mobile max 640px */
@media (max-width: 640px) {
  .container, .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 50px 0 55px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
    letter-spacing: -0.05em;
  }
  .hero-image-wrap {
    height: 350px;
  }
  .image-sticker {
    left: 0;
    bottom: 25px;
    padding: 12px 16px;
  }
  .intro-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section {
    padding: 60px 0;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .split-image {
    height: 340px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .story-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mission-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }
  .page-hero {
    padding: 42px 0 35px;
  }
  .page-hero-inner {
    width: calc(100% - 32px);
  }
  .page-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  .gallery-grid, .wp-block-gallery:not(.is-style-plain) {
    grid-template-columns: 1fr !important;
  }
  .gallery-item img, .wp-block-gallery .wp-block-image img {
    aspect-ratio: 4 / 3 !important;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-panel,
  .contact-form-panel {
    padding: 24px 20px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .button-row .button,
  .button-row .wp-block-button__link {
    width: 100%;
  }
}

/* Small mobile max 375px */
@media (max-width: 375px) {
  .container, .wrap {
    width: calc(100% - 24px);
  }
  .header-inner {
    width: calc(100% - 24px);
  }
  .brand-text strong {
    font-size: 0.95rem;
  }
  .brand img, .custom-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .hero-image-wrap {
    height: 290px;
  }
}


/* =========================================================
   LIGHTBOX MODAL & SPLIT LAYOUT INVERT
========================================================= */
.split-layout-invert {
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 901px) {
  .split-layout-invert .split-image {
    order: 2;
  }
  .split-layout-invert .split-copy {
    order: 1;
  }
}

.madad-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.madad-lightbox.is-active {
  display: flex;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 47, 37, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(920px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  color: #ffffff;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}
