:root {
  /* Primary Brand Colors */
  --primary: #1E3A5F;          /* Deep Navy Blue */
  --primary-light: #2A4E7F;    /* Accentuated light navy */
  
  --secondary: #F4A261;        /* Warm Sand/Orange for CTAs */
  --secondary-hover: #E78F45;  /* Rich orange hover */
  
  --accent: #2A9D8F;           /* Teal for accents & active elements */
  --accent-hover: #227F74;
  
  /* Background Tones */
  --bg-light: #F8F9FA;         /* Core background body */
  --bg-card: #FFFFFF;          /* Pure white for containers/cards */
  --bg-dark: #0F1F35;          /* Contrast dark blue for hero/footer */
  --border-color: rgba(30, 58, 95, 0.1);
  
  /* Typography Colors */
  --text-dark: #212529;        /* Dominant headings and text */
  --text-light: #6C757D;       /* Muted descriptions */
  --text-on-dark: #E0E1DD;     /* White/cream text on dark layers */
  --white: #FFFFFF;
  --red: #E76F51;              /* Client validation errors */
  
  /* Layout & Animation Systems */
  --transition: all 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 20px -5px rgba(30, 58, 95, 0.08), 0 4px 6px -2px rgba(30, 58, 95, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(30, 58, 95, 0.15);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

img { 
  display: block; 
  max-width: 100%; 
  height: auto;
  border-radius: var(--radius-sm);
}

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

li {
  list-style: none;
}

html, body {
  cursor: default;
}

/* Interactive pointer states strictly applied on clickable nodes */
a, button, select, input, textarea, .dot, .slider-btn, .proj-item, .svc-card, .hamburger, .social-a {
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

section { 
  padding: 60px 0px; 
}

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; 
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase; 
  color: var(--accent);
  margin-bottom: 12px; 
  display: flex;
  align-items: center; 
  gap: 10px;
}

.section-tag::before {
  content: ''; 
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-title span { 
  color: var(--accent); 
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
}

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

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

.btn-light-ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-full-width {
  width: 100%;
}

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

header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  background: var(--primary);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  gap: 24px;
  height: 80px;
  padding: 0 40px;
  transition: var(--transition);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
}

header.scrolled .nav-container {
  height: 68px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo span { 
  color: var(--secondary); 
}

/* Architectural brand logo mark */
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  transition: var(--transition);
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  background: var(--bg-dark);
  padding: 1px;
}

.logo:hover .logo-img {
  transform: rotate(15deg) scale(1.08);
}

.nav-menu { 
  display: flex; 
  gap: 32px; 
  align-items: center;
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
}

.nav-menu li {
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover:not(.active) { 
  color: var(--white);
}

.nav-link.active { 
  color: var(--secondary);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.nav-link:hover:not(.active)::after {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  height: 1px;
}

.nav-link.active::after {
  width: 100%;
  background: var(--secondary);
  height: 3px;
  border-radius: 2px 2px 0 0;
}

.nav-cta-btn {
  font-family: 'Inter', sans-serif;
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta-compact {
  display: none;
}

.nav-cta-btn:hover {
  background: var(--secondary-hover);
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.25);
}

.hamburger { 
  display: none; 
  flex-direction: column; 
  gap: 6px; 
  background: none; 
  border: none; 
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger span { 
  width: 28px; 
  height: 3px; 
  background: var(--white); 
  transition: var(--transition); 
  display: block;
  border-radius: 2px;
}

/* Hamburger Active Rotation to 'X' */
.hamburger.open span:nth-child(1) { 
  transform: rotate(45deg) translate(6px, 6px); 
}

.hamburger.open span:nth-child(2) { 
  opacity: 0; 
}

.hamburger.open span:nth-child(3) { 
  transform: rotate(-45deg) translate(6px, -7px); 
}

/* Sidebar Blur Backdrop Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 53, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Sidebar — full-height panel, right side */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(240px, 42vw, 320px);
  height: 100dvh;
  height: 100svh;
  background: linear-gradient(180deg, #0f1f35 0%, #152a45 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  border-left: 3px solid var(--secondary);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.mobile-menu.open { 
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu-header {
  flex-shrink: 0;
  padding: 72px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.mobile-menu-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.mobile-menu-brand span {
  color: var(--secondary);
}

.mobile-menu-links {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.mobile-menu-links .mobile-nav-link:hover:not(.active) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  padding-left: 16px;
  border-left: 3px solid transparent;
}

.mobile-menu-links .mobile-nav-link.active {
  color: var(--white);
  background: rgba(244, 162, 97, 0.14);
  padding-left: 13px;
  border-left: 3px solid var(--secondary);
  font-weight: 700;
}

.mobile-menu-footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.mobile-menu .mobile-menu-cta {
  margin: 0;
  width: 100%;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 12px 16px !important;
  justify-content: center;
  border-bottom: none;
  min-height: 44px;
  line-height: 1.2;
  border-radius: var(--radius-sm);
}

#home {
  margin-bottom: 0 !important;
  padding: 96px 40px 40px;
  min-height: clamp(500px, 58vh, 580px);
  position: relative; 
  display: flex;
  align-items: center; 
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--white);
}

.hero-bg {
  position: absolute; 
  inset: 0;
  background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1800&q=80') center / cover no-repeat;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom { 
  from { transform: scale(1.1); } 
  to { transform: scale(1.0); } 
}

.hero-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 30%, rgba(30, 58, 95, 0.6) 70%, rgba(42, 157, 143, 0.3) 100%);
}

.hero-grid-lines {
  position: absolute; 
  inset: 0; 
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 162, 97, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 162, 97, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
}

.hero-content {
  position: relative; 
  max-width: 850px;
  z-index: 10;
  opacity: 0; 
  transform: translateY(30px);
  animation: heroFadeIn 1s ease 0.3s forwards;
}

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

.hero-eyebrow {
  display: flex; 
  align-items: center; 
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; 
  color: var(--secondary);
  letter-spacing: 0.2em; 
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-eyebrow .dot-blink {
  width: 8px; 
  height: 8px; 
  background: var(--secondary); 
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink { 
  0%, 100% { opacity: 1; } 
  50% { opacity: 0.3; } 
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-title span { 
  color: var(--secondary); 
}

.hero-sub {
  font-size: 1.15rem; 
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85); 
  font-weight: 300;
  max-width: 680px; 
  margin-bottom: 28px;
  border-left: 3px solid var(--secondary);
  padding-left: 20px;
}

.hero-actions { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  flex-wrap: wrap; 
}

/* Hero Quick Stats */
.hero-stats {
  position: absolute; 
  right: 40px; 
  bottom: 40px;
  display: flex; 
  gap: 0;
  z-index: 10;
  opacity: 0; 
  animation: heroFadeIn 1s ease 0.8s forwards;
  background: rgba(30, 58, 95, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-stat {
  text-align: left; 
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child { 
  border-right: none; 
}

.hero-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; 
  color: var(--secondary); 
  line-height: 1;
  font-weight: 700;
}

.hero-stat .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; 
  letter-spacing: 0.12em;
  text-transform: uppercase; 
  color: rgba(255, 255, 255, 0.7); 
  margin-top: 4px;
}



.ticker-wrap {
  background: var(--primary);
  border-top: 4px solid var(--secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex; 
  gap: 0;
  animation: tickerRun 32s linear infinite;
}

@keyframes tickerRun { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

.ticker-item {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem; 
  letter-spacing: 0.15em;
  color: var(--white);
  padding: 0 40px;
  display: flex; 
  align-items: center; 
  gap: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.ticker-item::after { 
  content: '◆'; 
  font-size: 0.5rem; 
  color: var(--secondary);
}

#about { 
  background: var(--bg-light); 
  position: relative; 
}

.about-grid {
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; 
  align-items: center;
}

.about-body {
  font-size: 1rem; 
  line-height: 1.7;
  color: var(--text-light); 
  font-weight: 400;
  margin: 16px 0 24px;
}

.stats-box {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-cell {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-cell::before {
  content: ''; 
  position: absolute;
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 4px;
  background: var(--accent); 
  transform: scaleX(1);
  transform-origin: left;
}

.stat-cell .val {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem; 
  color: var(--primary); 
  font-weight: 700; 
  line-height: 1;
  margin-bottom: 6px;
}

.stat-cell .desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; 
  letter-spacing: 0.1em;
  text-transform: uppercase; 
  color: var(--text-light);
  font-weight: 600;
}

.about-img-wrap { 
  position: relative; 
}

.about-img-wrap img {
  width: 100%; 
  aspect-ratio: 4/5; 
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-img-wrap::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.5) 0%, transparent 60%);
  z-index: 1; 
  pointer-events: none;
  border-radius: var(--radius-md);
}

.about-badge {
  position: absolute; 
  bottom: 20px; 
  left: 20px; 
  right: 20px;
  z-index: 2;
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--secondary);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem; 
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  box-shadow: var(--shadow-md);
}

.about-badge span {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; 
  letter-spacing: 0.12em;
  text-transform: uppercase; 
  font-weight: 500;
  color: var(--secondary);
}

/* Decorative corner bracket */
.corner-bracket {
  position: absolute; 
  top: -12px; 
  right: -12px;
  width: 50px; 
  height: 50px;
  border-top: 4px solid var(--secondary);
  border-right: 4px solid var(--secondary);
  z-index: 2;
  pointer-events: none;
}

#services { 
  background: var(--bg-light); 
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-header {
  display: flex; 
  justify-content: space-between;
  align-items: flex-end; 
  margin-bottom: 40px;
  gap: 30px;
}

.services-note {
  font-size: 0.95rem; 
  color: var(--text-light);
  max-width: 420px; 
  line-height: 1.6;
}

.services-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; 
}

.svc-card {
  background: var(--bg-card); 
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative; 
  overflow: hidden;
  transition: var(--transition);
}

.svc-card:hover { 
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 157, 143, 0.2);
}

.svc-card::before {
  content: ''; 
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left;
}

.svc-card:hover::before { 
  transform: scaleX(1); 
}

.svc-num {
  position: absolute; 
  top: 16px; 
  right: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 3rem; 
  font-weight: 800;
  color: rgba(30, 58, 95, 0.05); 
  line-height: 1;
}

.svc-icon { 
  font-size: 1.8rem; 
  color: var(--accent); 
  margin-bottom: 20px; 
  display: inline-block;
}

.svc-title {
  font-size: 1.25rem; 
  color: var(--primary); 
  margin-bottom: 12px;
  font-weight: 700;
}

.svc-body { 
  font-size: 0.9rem; 
  color: var(--text-light); 
  line-height: 1.6; 
  margin-bottom: 20px;
}

.svc-link {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; 
  letter-spacing: 0.1em;
  text-transform: uppercase; 
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.svc-card:hover .svc-link { 
  color: var(--accent);
  gap: 12px; 
}

#projects { 
  background: var(--bg-light); 
}

.projects-header {
  display: flex; 
  justify-content: space-between;
  align-items: flex-end; 
  margin-bottom: 40px;
  gap: 30px;
}

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

.proj-item {
  position: relative; 
  overflow: hidden;
  aspect-ratio: 16/10; 
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.proj-item img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.15, 0.85, 0.45, 1);
  border-radius: var(--radius-md);
}

.proj-item:hover img { 
  transform: scale(1.06); 
}

.proj-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.4) 60%, transparent 100%);
  opacity: 0; 
  transition: opacity 0.4s ease;
  display: flex; 
  align-items: flex-end; 
  padding: 24px;
  border-radius: var(--radius-md);
}

.proj-item:hover .proj-overlay { 
  opacity: 1; 
}

.proj-info {
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.15, 0.85, 0.45, 1);
  width: 100%;
}

.proj-item:hover .proj-info {
  transform: translateY(0);
}

.proj-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; 
  letter-spacing: 0.15em;
  text-transform: uppercase; 
  color: var(--secondary); 
  margin-bottom: 6px;
  font-weight: 600;
}

.proj-name {
  font-size: 1.6rem; 
  color: var(--white); 
  line-height: 1.2;
  font-weight: 700;
}

.proj-desc { 
  font-size: 0.85rem; 
  color: var(--text-on-dark); 
  margin-top: 8px; 
  font-weight: 300; 
}

#testimonials { 
  background: linear-gradient(135deg, var(--primary) 0%, #152a45 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 44px 40px;
  margin-bottom: 32px;
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(244, 162, 97, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(42, 157, 143, 0.1) 0%, transparent 38%);
}

#testimonials .container {
  position: relative;
  z-index: 1;
}

#testimonials .section-tag {
  color: var(--secondary);
  margin-bottom: 8px;
}
#testimonials .section-tag::before {
  background: var(--secondary);
}

#testimonials .section-title {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.85rem;
}

.testi-wrap { 
  max-width: 960px; 
  margin: 0 auto;
}

.testi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.testi-slider { 
  position: relative; 
  min-height: 0;
}

.testi { 
  display: none;
}

.testi.active { 
  display: block;
  animation: testiFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}

@keyframes testiFadeUp { 
  from { opacity: 0; transform: translateY(12px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.testi-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.testi-card-main {
  min-width: 0;
}

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 0.7rem;
}

.testi-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.testi-text {
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin-bottom: 0;
  font-style: normal;
  text-align: left;
}

.testi-author { 
  display: flex; 
  align-items: center; 
  gap: 12px;
  flex-shrink: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.t-avatar {
  width: 48px; 
  height: 48px; 
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.t-meta {
  text-align: left;
}

.t-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; 
  font-weight: 600; 
  color: var(--white);
  line-height: 1.3;
}

.t-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; 
  letter-spacing: 0.08em;
  text-transform: uppercase; 
  color: var(--secondary);
  font-weight: 500;
  margin-top: 2px;
}

.slider-nav { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 16px; 
  margin-top: 0;
}

#testimonials .slider-nav-bottom {
  margin-top: 18px;
}

.slider-btn {
  width: 44px; 
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent; 
  color: var(--white);
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.slider-btn:hover { 
  border-color: var(--secondary); 
  background: var(--secondary); 
  color: var(--primary); 
}

.slider-dots { 
  display: flex; 
  gap: 10px; 
}

.dot {
  width: 20px; 
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  border-radius: 2px;
}

.dot.active { 
  background: var(--secondary); 
  width: 36px; 
}

#contact { 
  background: var(--white); 
}

.contact-grid {
  display: grid; 
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px; 
  align-items: start;
}

.contact-form-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-form-card .section-title {
  font-size: 1.85rem;
  margin-bottom: 24px;
}

.form-group { 
  margin-bottom: 20px; 
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; 
  letter-spacing: 0.1em;
  text-transform: uppercase; 
  color: var(--primary); 
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; 
  background: var(--white); 
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark); 
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem; 
  font-weight: 400;
  padding: 12px 14px; 
  outline: none; 
  resize: none;
  transition: var(--transition);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1);
}

.form-group select option { 
  background: var(--white); 
  color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder { 
  color: var(--text-light); 
  opacity: 0.65;
}

.form-error { 
  display: none; 
  font-size: 0.75rem; 
  color: var(--red); 
  margin-top: 6px; 
  font-weight: 600;
  font-family: 'Inter', sans-serif; 
}

.form-error.show { 
  display: block; 
}

.form-success {
  display: none; 
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center; 
  padding: 14px;
  background: rgba(42, 157, 143, 0.08);
  border: 1px solid rgba(42, 157, 143, 0.2); 
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.form-success.show { 
  display: block; 
}

.contact-info-panel {
  padding-top: 10px;
}

.ci-item { 
  display: flex; 
  gap: 16px; 
  align-items: flex-start; 
  margin-bottom: 24px; 
}

.ci-icon { 
  background: rgba(30, 58, 95, 0.06);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent); 
  font-size: 1.05rem; 
  flex-shrink: 0; 
  transition: var(--transition);
  border: 1px solid rgba(30, 58, 95, 0.04);
}

.ci-item:hover .ci-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.ci-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; 
  letter-spacing: 0.1em;
  text-transform: uppercase; 
  color: var(--text-light); 
  margin-bottom: 4px;
  font-weight: 600;
}

.ci-val { 
  font-size: 0.95rem; 
  color: var(--primary); 
  font-weight: 600; 
  line-height: 1.5; 
}

.ci-val a {
  color: var(--primary);
  transition: var(--transition);
}

.ci-val a:hover {
  color: var(--accent);
}

/* Elegant Frame Map */
.map-wrap { 
  width: 100%; 
  aspect-ratio: 16/10; 
  overflow: hidden; 
  position: relative; 
  margin-top: 16px; 
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-wrap iframe { 
  width: 100%; 
  height: 100%; 
  border: none; 
}

.map-frame { 
  position: absolute; 
  inset: 0; 
  border: 2px solid var(--accent); 
  pointer-events: none; 
  border-radius: var(--radius-md);
  opacity: 0.3;
}

footer {
  background: var(--bg-dark);
  color: var(--white);
  border-top: 4px solid var(--secondary);
  padding: 25px 0;
}

.footer-grid {
  display: grid; 
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px; 
  margin-bottom: 40px;
}

.footer-brand,
.footer-contact-col {
  min-width: 0;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem; 
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px; 
  display: block;
}

.footer-logo span { 
  color: var(--secondary); 
}

.footer-tagline { 
  font-size: 0.9rem; 
  color: var(--text-on-dark); 
  line-height: 1.7; 
  font-weight: 300; 
  margin-bottom: 20px; 
  max-width: 320px; 
}

.social-row { 
  display: flex; 
  gap: 12px; 
}

.social-a {
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--text-on-dark); 
  font-size: 0.95rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}

.social-a:hover { 
  border-color: var(--secondary); 
  color: var(--secondary); 
  background: rgba(244, 162, 97, 0.1); 
  transform: translateY(-3px);
}

.footer-col-h {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; 
  text-transform: uppercase; 
  color: var(--secondary); 
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.footer-links a { 
  font-size: 0.9rem; 
  color: var(--text-on-dark); 
  font-weight: 300; 
  transition: var(--transition); 
}

.footer-links a:hover { 
  color: var(--secondary); 
  padding-left: 6px;
}

.footer-contact-addr {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 4px;
}

.contact-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contact-btn-group + .contact-btn-group {
  margin-top: 8px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  transition: var(--transition);
  white-space: nowrap;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-1px);
}

.contact-btn i {
  font-size: 0.85rem;
}

.contact-btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

.contact-btn-whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  color: var(--white);
}

.contact-btn-maps-google:hover {
  color: #4285f4;
  border-color: #4285f4;
}

.contact-btn-maps-apple:hover {
  color: #2997ff;
  border-color: #2997ff;
}

.footer-contact-phone,
.footer-contact-email {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 4px;
}

.contact-info-panel .contact-btn {
  border-color: var(--border-color);
  background: var(--bg-card);
  color: var(--primary);
}

.contact-info-panel .contact-btn:hover {
  background: var(--bg-light);
  color: var(--primary-light);
  border-color: var(--accent);
}

.contact-info-panel .contact-btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

.contact-info-panel .contact-btn-whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; 
  color: rgba(255, 255, 255, 0.55); 
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0; 
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
}


/* 1. Large Desktop (≥ 1025px) */
@media (min-width: 1025px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Compact full navbar (765px – 1024px) */
@media (min-width: 765px) and (max-width: 1024px) {
  .nav-container {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  header.scrolled .nav-container {
    height: 56px;
  }

  .logo {
    font-size: 1.1rem;
    gap: 8px;
    margin-right: 12px;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-menu {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 4px 0;
  }

  .nav-cta-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

@media (min-width: 765px) and (max-width: 860px) {
  .nav-menu {
    gap: 10px;
  }

  .nav-link {
    font-size: 0.72rem;
  }

  .logo {
    font-size: 1rem;
    margin-right: 8px;
  }
}

/* 2. Small Desktop (765px – 1024px) */
@media (max-width: 1024px) and (min-width: 765px) {
  body {
    font-size: 16px; /* 16px body font size */
  }
  
  h1 {
    font-size: 36px !important; /* 36px h1 font size */
  }

  section {
    padding: 60px 40px; /* Spacing compliance */
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3-column grids */
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr); /* 3-column grids */
    gap: 20px;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* Mobile nav: hamburger below 765px; full navbar from 765px up */
@media (max-width: 764px) {
  .nav-right { 
    display: none; 
  }
  
  .hamburger { 
    display: flex; 
    z-index: 1001;
  }

  .nav-container {
    height: 64px;
    width: 100%;
    padding: 0 8px 0 16px;
    justify-content: flex-start;
    gap: 0;
  }

  header.scrolled .nav-container {
    height: 56px;
  }

  .hamburger {
    margin-left: auto;
    margin-right: 0;
  }

  .logo {
    font-size: 1.25rem;
    margin-right: 0;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .mobile-menu {
    width: clamp(240px, 42vw, 300px);
  }

  .mobile-menu-header {
    padding-top: 68px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-menu-links a {
    font-size: 0.92rem;
    padding: 10px 10px;
    min-height: 40px;
  }

  .mobile-menu-footer {
    padding: 14px 16px 18px;
  }

  .mobile-menu .mobile-menu-cta {
    font-size: 0.8rem;
    padding: 11px 12px !important;
  }
}

/* 3. Tablet Portrait (481px – 768px) */
@media (max-width: 768px) {
  body {
    font-size: 15px; /* 15px body font size */
  }

  h1 {
    font-size: 28px !important; /* 28px h1 font size */
  }

  section {
    padding: 40px 24px; /* Tablet Section Spacing: padding: 40px 24px */
    margin-bottom: 30px;
  }

  #home {
    padding: 88px 24px 32px;
    min-height: clamp(420px, 52vh, 500px);
  }

  .hero-stats { 
    display: none; 
  }

  .about-grid { 
    grid-template-columns: repeat(2, 1fr); /* 2-column grids */
    gap: 32px;
  }

  .services-grid { 
    grid-template-columns: repeat(2, 1fr); /* 2-column grids */
    gap: 20px;
  }
  
  .projects-grid { 
    grid-template-columns: repeat(2, 1fr); /* 2-column grids */
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr); /* 2-column grids */
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-contact-col {
    grid-column: 1 / -1;
  }

  footer {
    padding: 48px 24px;
  }
  
  .about-img-wrap {
    width: 100%;
    max-width: 100%;
  }

  .corner-bracket {
    display: none;
  }

  .services-header, .projects-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
  }

  .services-note { 
    max-width: 100%; 
  }
}

/* 4. Mobile Screens (≤ 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px; /* 14px body font size */
  }

  h1, .hero-title {
    font-size: 22px !important; /* 22px h1 font size */
  }

  section {
    padding: 32px 16px; /* Mobile Section Spacing: padding: 32px 16px */
    margin-bottom: 24px; /* Max margins between sections: 24px */
  }

  #home {
    padding: 72px 16px 28px;
    min-height: auto;
  }

  /* Stack all grid columns to 1fr */
  .about-grid,
  .services-grid,
  .projects-grid,
  .contact-grid,
  .stats-box {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px;
  }

  .footer-brand,
  .footer-contact-col {
    grid-column: 1 / -1;
  }

  footer {
    padding: 32px 16px;
  }

  .mobile-menu-header {
    padding-top: 64px;
  }

  .footer-col-h {
    margin-bottom: 12px;
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a,
  .footer-links li {
    font-size: 0.82rem !important;
  }

  /* Cards/containers: Inner padding <= 24px */
  .svc-card {
    padding: 20px !important;
  }

  .contact-form-card {
    padding: 20px 16px !important;
  }

  .stat-cell {
    padding: 16px !important;
  }


  /* Buttons: Reduce horizontal padding on mobile */
  .btn {
    padding: 10px 16px !important;
    font-size: 0.9rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 0.95rem;
    padding-left: 12px;
    margin-bottom: 24px;
  }

  .hero-actions { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .about-badge {
    font-size: 0.95rem;
    padding: 12px 14px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  
  #testimonials {
    padding: 36px 16px;
    margin-bottom: 24px;
  }

  .testi-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .testi-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .testi-author {
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .testi-text {
    font-size: 0.9rem;
  }

  .t-meta {
    text-align: left;
  }
  
  #testimonials .slider-nav-bottom {
    margin-top: 14px;
  }
  
  .slider-nav {
    gap: 12px;
  }
  
  .footer-bottom { 
    flex-direction: column; 
    text-align: center; 
    gap: 10px;
  }
}

/* Prevent Horizontal Scroll globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
