/*
Theme Name: Madaa
Theme URI: https://madaa-sa.com
Author: Madaa Team
Author URI: https://madaa-sa.com
Description: Modern bilingual theme for Madaa Real Estate Valuation with exceptional SEO and performance
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madaa
Tags: rtl-language-support, translation-ready, custom-colors, featured-images, full-width-template, accessibility-ready
*/

/* ==========================================================================
   CSS Variables (Design Tokens) - will be overridden by Customizer inline styles
   ========================================================================== */
:root {
  /* Base Colors - Premium Corporate Palette */
  --color-brand-dark: #0E1717;
  /* Deep Black/Green */
  --color-brand-gold: #D2C7BB;
  /* Muted Gold/Beige */
  --color-brand-gray: #F5F5F5;
  /* Light Gray Background */
  --color-text-main: #1A1A1A;
  /* Main Text */
  --color-text-light: #666666;
  /* Secondary Text */
  --color-white: #FFFFFF;

  /* Functional Colors */
  --bg-body: #FFFFFF;
  --bg-surface: #F8F9FA;
  --border-color: #E5E7EB;
  --border-focus: #D2C7BB;

  /* Header */
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-border: 1px solid rgba(0, 0, 0, 0.05);
  --header-link: #1A1A1A;
  --header-link-active: #D2C7BB;

  /* Hero */
  --hero-bg: #0E1717;
  --hero-text: #FFFFFF;
  --hero-accent: #D2C7BB;

  /* Buttons (Flat) */
  --btn-primary-bg: #0E1717;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #2A2A2A;

  --btn-secondary-bg: transparent;
  --btn-secondary-border: #0E1717;
  --btn-secondary-text: #0E1717;
  --btn-secondary-hover: #0E1717;
  --btn-secondary-text-hover: #FFFFFF;

  /* Cards (Flat with Borders) */
  --card-bg: #FFFFFF;
  --card-border: 1px solid #E5E7EB;
  --card-hover-border: 1px solid #D2C7BB;

  /* Typography */
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-max: 1440px;
  /* Wider for modern look */
  --section-padding: clamp(5rem, 8vw, 8rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body[dir="ltr"] {
  font-family: var(--font-en);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

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

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-padding);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-brand-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   Components: Buttons (Flat)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  /* Sharp/Small radius */
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
}

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

/* ==========================================================================
   Components: Cards (Flat)
   ========================================================================== */
.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--color-brand-gold);
  transform: translateY(-5px);
}

/* ==========================================================================
   Header (Sticky, Flat)
   ========================================================================== */
/* Header (Transparent to Sticky) */
.site-header {
  position: absolute;
  /* Start absolute (scrolls with page) */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  transition: all 0.3s ease;
}

/* Scrolled State (Sticky) */
.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-block: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 48px;
  width: auto;
  transition: filter 0.3s ease;
}

/* White text/logo when transparent (Pre-scroll) */
.site-header.pre-scroll .logo img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav>ul>li>a {
  font-weight: 500;
  color: var(--header-link);
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.3s ease;
}

/* White links in pre-scroll */
.site-header.pre-scroll .site-nav>ul>li>a {
  color: #FFFFFF;
}

.site-nav>ul>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-gold);
  transition: width 0.3s ease;
}

.site-nav>ul>li>a:hover::after,
.site-nav>ul>li>a[aria-current="page"]::after {
  width: 100%;
}

/* Dropdown arrow color */
.site-nav .menu-item-has-children>a::after {
  content: '▾';
  font-size: 0.6rem;
  margin-inline-start: 0.35rem;
}

/* Language & Menu Toggle Colors */
.lang-toggle,
.menu-toggle {
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.site-header.pre-scroll .lang-toggle,
.site-header.pre-scroll .menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.site-header.pre-scroll .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dropdown menus */
.site-nav .menu-item-has-children>a::after {
  content: '▾';
  font-size: 0.6rem;
  margin-inline-start: 0.35rem;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding-block: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 900;
}

.site-nav li:hover>.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .mega-menu--about .mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 280px;
  gap: 2rem;
  align-items: stretch;
  /* Stretch columns to equal height */
}

.mega-menu-col {
  padding-inline-end: 1.5rem;
  border-inline-end: 1px solid var(--border-color);
}

.mega-menu-col:nth-child(3) {
  border-inline-end: none;
}

.mega-menu-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-brand-gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: all 0.2s ease;
}

.mega-links a:hover {
  background: #F3F4F6;
  color: var(--color-brand-dark);
  transform: translateX(3px);
}

body[dir="rtl"] .mega-links a:hover {
  transform: translateX(-3px);
}

.mega-links .dashicons {
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.mega-links a:hover .dashicons {
  color: var(--color-brand-gold);
}

/* Featured Side in About Menu */
.mega-menu-featured {
  padding-inline-start: 1rem;
}

.featured-card {
  background: var(--color-brand-dark);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(210, 199, 187, 0.15), transparent 60%);
}

.featured-icon {
  margin-bottom: 1.5rem;
}

.featured-icon .dashicons {
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  color: var(--color-brand-gold);
}

.featured-card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.featured-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.featured-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-gold);
  text-decoration: none;
}

.featured-link:hover {
  color: #FFFFFF;
}

/* Mega style for main groups */
.site-nav .menu-item--about {
  position: static;
}

body[dir="rtl"] .site-nav .sub-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

/* Mega Menu for Media Center */
.site-nav .menu-item--media {
  position: static;
}

/* Standard Sub-Menus (for dynamic WP menus) */
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease-out);
  z-index: 900;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.site-nav li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .sub-menu li {
  display: block;
}

.site-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  white-space: nowrap;
}

.site-nav .sub-menu a:hover {
  background: #F9FAFB;
  color: var(--color-brand-dark);
}

.site-nav .sub-menu a::after {
  display: none;
  /* Remove underline effect for sub-items */
}


.mega-menu .container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.mega-menu--about .mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.mega-menu--media .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.mega-menu-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-inline-end: 1px solid var(--border-color);
  padding-inline-end: 1.5rem;
}

.mega-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-light);
  width: 100%;
  text-align: start;
}

.mega-tab .tab-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mega-tab .dashicons {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-tab:hover {
  background: #F3F4F6;
  color: var(--color-brand-dark);
}

.mega-tab.is-active {
  background: var(--color-brand-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 23, 23, 0.15);
}

.mega-tab.is-active .dashicons {
  color: var(--color-brand-gold);
}

.tab-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

body[dir="rtl"] .tab-arrow {
  transform: translateX(5px);
}

.mega-tab:hover .tab-arrow,
.mega-tab.is-active .tab-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-previews {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  background: #F8F9FA;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-preview {
  display: none;
  width: 100%;
  height: 100%;
}

.mega-preview.is-active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mega-preview-link-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-preview-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #E5E7EB;
  aspect-ratio: 16/10;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  position: relative;
}

.mega-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mega-preview-link-wrapper:hover .mega-preview-thumb img {
  transform: scale(1.06);
}

.mega-preview-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.mega-preview-title {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--color-brand-dark);
  line-height: 1.3;
  font-weight: 700;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-preview-link-wrapper:hover .mega-preview-title {
  color: var(--color-brand-gold);
}

.mega-preview-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.mega-preview-meta .dashicons {
  color: var(--color-brand-gold);
  font-size: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-brand-dark);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.mega-preview-link-wrapper:hover .mega-read-more {
  color: var(--color-brand-gold);
  gap: 0.8rem;
}

.mega-preview-empty {
  text-align: center;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
}

.mega-preview-empty::before {
  content: '\f230';
  /* Dashicons: chart-bar */
  font-family: 'dashicons';
  font-size: 3rem;
  color: #D1D5DB;
}

/* Header buttons (language & hamburger) */
.lang-toggle span {
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-brand-dark);
  color: var(--color-white);
  padding-block: 6rem 2rem;
}

.site-footer a {
  color: #AAAAAA;
}

.site-footer a:hover {
  color: var(--color-white);
}

/* Footer layout refinements */
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.footer-text {
  max-width: 600px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  font-size: 0.85rem;
  color: #9CA3AF;
}

/* Utility for GSAP */
.reveal-text {
  overflow: hidden;
  padding-bottom: 0.2em;
  /* Prevent clipping of Arabic descenders */
}

.gsap-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Negative margin to go under header */
  padding-top: 180px;
  /* Padding to clear header */
  padding-bottom: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 23, 23, 0.65);
  /* Slightly lighter overlay to see video better */
  z-index: 1;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  /* Increased opacity for visibility */
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  /* Increased width to allow text to fit on 2 lines */
  margin-inline-end: auto;
  /* Pushes content to the Start (Right in RTL) */
  margin-inline-start: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.3;
  /* Increased for Arabic descenders */
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.gsap-hero-text {
  display: block;
}

.text-gold {
  color: var(--color-brand-gold);
}

.hero-desc {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  color: #E5E5E5;
  line-height: 1.6;
}

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

.btn-light {
  background: #FFFFFF;
  color: var(--color-brand-dark);
  border: 1px solid #FFFFFF;
}

.btn-light:hover {
  background: #F0F0F0;
  color: var(--color-brand-dark);
  border-color: #F0F0F0;
}

.btn-outline-light {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--color-brand-gold);
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--color-brand-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Why Madaa */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* Clients / Partners */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.client-logo {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.client-logo:hover {
  border-color: var(--color-brand-gold);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    margin-top: 0;
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .hero-content {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .site-footer {
    border-radius: 40px 40px 0 0;
    padding-block: 3rem;
  }

  .site-footer .container {
    align-items: flex-start;
  }

  .footer-links {
    gap: 1rem;
  }
}

/* Header responsive behavior */
@media (max-width: 992px) {
  .site-header {
    padding-block: 0.85rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border-bottom: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .site-nav.open {
    max-height: 85vh;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .site-nav .sub-menu {
    position: static;
    border: none;
    padding: 0.25rem 0 0.5rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu-item--media .mega-menu {
    display: none;
  }

  .menu-item--about .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    padding-block: 0.75rem;
    display: block;
  }

  /* Mobile Menu Customization: About Section */
  .mega-menu-col-about-madaa,
  .mobile-hide-org,
  .mobile-hide-featured {
    display: none !important;
  }

  .site-nav .mega-menu--about .mega-menu-columns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-template-columns: 1fr; /* Override grid */
  }

  .mega-menu--about .mega-menu-col {
    padding: 0;
    border: none;
  }

  .mega-menu--about .mega-menu-col h4 {
    display: none;
  }

  .mega-menu--about .mega-links {
    gap: 0.5rem;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .mega-preview-link-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mega-preview-thumb {
    aspect-ratio: 16/9;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-flex {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.about-image-split {
  position: relative;
  width: min(480px, 42vw);
  aspect-ratio: 4/5;
}

.about-image-split::before,
.about-image-split::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% - 10px);
  background-image: var(--about-image);
  background-size: 200% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(14, 23, 23, 0.15);
}

.about-image-split::before {
  left: 0;
  background-position: left center;
  border-radius: 16px 0 0 16px;
}

.about-image-split::after {
  right: 0;
  background-position: right center;
  border-radius: 0 16px 16px 0;
}

.about-content {
  flex: 1 1 0;
}

.about-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-brand-dark);
}

.about-sep {
  border: none;
  border-top: 1px solid rgba(14, 23, 23, 0.15);
  margin: 1rem 0 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-cta {
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image-split {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
}