/* 
  Centre for Arid Zone and Wetlands Ecology (CAWE)
  Global Stylesheet & Design System
*/

/* --- 1. Fonts & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-teal: hsl(184, 80%, 15%);
  --primary-teal-light: hsl(184, 80%, 25%);
  --secondary-sand: hsl(38, 75%, 55%);
  --secondary-sand-light: hsl(38, 85%, 65%);
  --secondary-sand-dark: hsl(38, 85%, 35%);
  --accent-turquoise: hsl(174, 90%, 41%);
  --accent-orange: hsl(24, 90%, 55%);
  
  /* Backgrounds */
  --bg-light: hsl(40, 30%, 97%);
  --bg-white: hsl(0, 0%, 100%);
  --bg-dark-teal: hsl(180, 50%, 6%);
  --bg-glass-light: rgba(255, 255, 255, 0.85);
  --bg-glass-dark: rgba(10, 22, 24, 0.75);
  
  /* Text Colors */
  --text-dark: hsl(180, 24%, 12%);
  --text-muted: hsl(180, 10%, 45%);
  --text-light: hsl(40, 20%, 95%);
  --text-light-muted: hsl(40, 10%, 75%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(69, 214, 216, 0.3);

  /* Borders & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --border-color: rgba(184, 80%, 15%, 0.1);
  --border-glass: rgba(255, 255, 255, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header Height */
  --header-height: 90px;
}

/* --- 2. Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-teal);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-teal);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-turquoise);
}

/* --- 3. Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-turquoise);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
}

.btn-secondary:hover {
  background-color: var(--primary-teal);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-sand {
  background-color: var(--secondary-sand);
  color: var(--bg-white);
}

.btn-sand:hover {
  background-color: var(--secondary-sand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.4);
}

/* Badge */
.badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  background-color: rgba(184, 80, 15, 0.08);
  color: var(--primary-teal);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(184, 80, 15, 0.15);
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* --- 4. Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-glass-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 65px; /* Enlarged logo */
  width: auto;
  transition: var(--transition-normal);
}

.site-header.scrolled .logo-img {
  height: 55px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: capitalize;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-teal);
  padding: 0.5rem 0.8rem;
  position: relative;
  border-radius: var(--radius-sm);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 3px;
  background-color: var(--secondary-sand);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--secondary-sand-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link.active {
  color: var(--secondary-sand-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-teal);
  margin-bottom: 5px;
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Open Mobile Menu State */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* --- 5. Hero Sections --- */
/* Dunes Hero (Home & Contact Page) */
.dunes-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  color: var(--text-dark);
  padding: 3rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
  color: var(--primary-teal);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--secondary-sand-dark);
  display: block;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-content p:last-of-type {
  margin-bottom: 2.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

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

/* Generic Slim Page Hero */
.slim-hero {
  height: 350px;
  position: relative;
  background-color: var(--primary-teal);
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--header-height);
}

.slim-hero.wetland-bg {
  background: url('../images/wetland.png') no-repeat center center/cover;
}

.slim-hero.wetland-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 24, 0.95) 0%, rgba(10, 22, 24, 0.6) 100%);
}

.slim-hero.teal-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
}

.slim-hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slim-hero-content h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.slim-hero-content p {
  color: var(--secondary-sand);
  font-weight: 500;
  font-size: 1.1rem;
}

/* --- 6. About Page Layout --- */
.quote-section {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 5rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}

.quote-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.quote-content blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-teal);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
}

.quote-content blockquote::before {
  content: '“';
  font-size: 6rem;
  position: absolute;
  top: -3.5rem;
  left: -2rem;
  color: var(--secondary-sand);
  opacity: 0.25;
  font-family: serif;
}

.quote-author {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.quote-author span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.quote-image-wrapper {
  position: relative;
}

.quote-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

/* Key Pillars */
.pillars-heading {
  margin-bottom: 3.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent-turquoise);
  transition: var(--transition-normal);
}

.pillar-card:nth-child(even)::before {
  background-color: var(--secondary-sand);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(69, 214, 216, 0.4);
}

.pillar-icon {
  margin-bottom: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(184, 80, 15, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  transition: var(--transition-normal);
}

.pillar-card:nth-child(even) .pillar-icon {
  background-color: rgba(229, 169, 60, 0.1);
  color: var(--secondary-sand-dark);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
  background-color: var(--primary-teal);
  color: var(--bg-white);
}

.pillar-card:nth-child(even):hover .pillar-icon {
  background-color: var(--secondary-sand);
  color: var(--bg-white);
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- 7. Team Page Layout --- */
.team-heading {
  margin-bottom: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Highlighted Director Card span */
.team-grid .team-card:first-child {
  grid-column: span 3;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 2rem;
}

.team-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 80, 15, 0.2);
}

/* Clean Headshot Placeholder */
.team-photo-container {
  position: relative;
  background-color: var(--primary-teal-light);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: radial-gradient(circle, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
  position: relative;
}

.team-photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

.team-photo-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.7;
  color: var(--secondary-sand);
}

.team-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: 1.4rem;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.95rem;
  color: var(--secondary-sand-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Adjustments for the Director Grid Column Span */
.team-grid .team-card:first-child .team-photo-container {
  height: 100%;
  aspect-ratio: auto;
  min-height: 300px;
}

.team-grid .team-card:first-child .team-card-body {
  padding: 2.5rem;
}

/* --- 8. Projects Page Layout --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.project-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(69, 214, 216, 0.4);
}

.project-visual {
  height: 200px;
  background-color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative project background patterns */
.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: 20px 20px;
}

.project-card:nth-child(1) .project-visual {
  background: linear-gradient(135deg, #0f3443 0%, #30e8bf 100%);
}
.project-card:nth-child(2) .project-visual {
  background: linear-gradient(135deg, #1f4037 0%, #99f2c8 100%);
}
.project-card:nth-child(3) .project-visual {
  background: linear-gradient(135deg, #d38312 0%, #a83279 100%);
}

.project-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.project-icon-box svg {
  width: 32px;
  height: 32px;
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  color: var(--primary-teal);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-teal);
  font-family: var(--font-heading);
}

.project-card:nth-child(3) .stat-val {
  color: var(--secondary-sand-dark);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- 9. Gallery / News Layout --- */
.gallery-section-title {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.gallery-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 80, 15, 0.15);
}

.gallery-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--primary-teal);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.gallery-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--secondary-sand);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.gallery-card:nth-child(even) .gallery-category {
  background-color: var(--primary-teal);
}

.gallery-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.gallery-title {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--primary-teal);
  margin-bottom: 1rem;
}

.gallery-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- 10. Contact Page Layout --- */
.contact-dunes-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-card-glass {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 3.5rem;
  color: var(--text-dark);
}

.contact-card-glass h2 {
  color: var(--primary-teal);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-card-glass p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-sand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-teal);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(184, 80, 15, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Contact Details Pane */
.contact-details-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.details-card {
  background: var(--bg-glass-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  color: var(--text-light);
  flex-grow: 1;
}

.details-card h3 {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(229, 169, 60, 0.3);
  padding-bottom: 0.75rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  list-style: none;
}

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

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(229, 169, 60, 0.15);
  color: var(--secondary-sand);
  flex-shrink: 0;
  border: 1px solid rgba(229, 169, 60, 0.3);
}

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

.info-text {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  color: var(--secondary-sand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.info-value a:hover {
  color: var(--accent-turquoise);
  text-decoration: underline;
}

/* Mock Map Panel */
.map-card {
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: var(--primary-teal);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.map-mock {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
  position: relative;
}

/* Styled map grids */
.map-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-marker {
  animation: pulse 2s infinite;
  color: var(--secondary-sand);
  margin-bottom: 0.75rem;
}

.map-mock h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.map-mock p {
  color: var(--text-light-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- 11. Footer Section --- */
.site-footer {
  background-color: var(--bg-dark-teal);
  color: var(--text-light-muted);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 2px solid var(--secondary-sand);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.footer-logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light-muted);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-sand);
}

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

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary-sand);
  padding-left: 0.5rem;
}

.social-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-teal);
  color: var(--bg-white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: var(--secondary-sand);
  color: var(--bg-dark);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.footer-contact-item svg {
  color: var(--secondary-sand);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item span {
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--text-light-muted);
}

.footer-affiliation {
  color: var(--secondary-sand);
  font-weight: 500;
}

/* --- 12. Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* --- 13. Responsive Media Queries --- */

/* Desktop & Large Screen Optimizations */
@media (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid .team-card:first-child {
    grid-column: span 2;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Layouts */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .quote-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-content {
    padding: 3rem 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile Screen Layouts */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Hamburger Menu implementation */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-link::after {
    left: 0;
    right: 0;
  }

  .hero-content {
    padding: 2rem;
  }

  .slim-hero {
    height: 280px;
  }

  .slim-hero-content h1 {
    font-size: 2.2rem;
  }

  .pillars-grid,
  .team-grid,
  .projects-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card:first-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .team-grid .team-card:first-child .team-photo-container {
    aspect-ratio: 1/1;
    min-height: auto;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card-glass {
    padding: 2rem;
  }

  .details-card {
    padding: 2rem;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

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