/* ============================================================
   NEXT FUTURE WORLD — Premium Stylesheet
   Quantity Surveying Consultancy · New Zealand
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ============================================================
   1. GLOBAL RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* — Palette — */
  --primary:        #0B1D3A;
  --secondary:      #C87533;
  --accent:         #E8913A;
  --bg-light:       #F8F9FA;
  --bg-white:       #FFFFFF;
  --text-dark:      #1A1A2E;
  --text-muted:     #6B7280;
  --success:        #10B981;

  /* — Derived — */
  --secondary-dark:  #A8612A;
  --secondary-light: rgba(200, 117, 51, 0.12);
  --accent-light:    rgba(232, 145, 58, 0.15);
  --primary-90:      rgba(11, 29, 58, 0.90);
  --primary-60:      rgba(11, 29, 58, 0.60);
  --shadow-sm:       0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md:       0 4px 14px rgba(11, 29, 58, 0.08);
  --shadow-lg:       0 10px 30px rgba(11, 29, 58, 0.12);
  --shadow-xl:       0 20px 50px rgba(11, 29, 58, 0.16);
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-full:     9999px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================================================
   14. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.15s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   2. NAVIGATION (.navbar)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(11, 29, 58, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 1px;
}

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

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

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

/* CTA Button in Nav */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 117, 51, 0.35);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================================
   3. HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 29, 58, 0.80) 0%,
    rgba(11, 29, 58, 0.60) 50%,
    rgba(11, 29, 58, 0.70) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  animation: fadeInUp 0.9s ease-out both;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(200, 117, 51, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
}

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

/* Mini hero (inner pages) */
.hero-mini {
  min-height: 45vh;
  padding: 140px 24px 60px;
}

.hero-mini h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   4. SECTION LAYOUTS
   ============================================================ */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

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

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header h2 span {
  color: var(--secondary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Copper underline decoration */
.section-header::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Label / Eyebrow */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 12px;
}

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

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

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

/* ============================================================
   5. CARDS (.card)
   ============================================================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--secondary);
  transition: background var(--transition), transform var(--transition);
}

.card:hover .card-icon {
  background: var(--accent-light);
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Card with image */
.card-img {
  padding: 0;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-img .card-body {
  padding: 28px 30px;
}

/* Card dark variant */
.card-dark {
  background: var(--primary);
  color: #fff;
}

.card-dark h3 {
  color: #fff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.card-dark .card-icon {
  background: rgba(200, 117, 51, 0.2);
  color: var(--accent);
}

/* ============================================================
   6. HOME PAGE SPECIFICS
   ============================================================ */

/* Core Business */
.core-business {
  background: var(--bg-white);
}

.core-business .grid-2 {
  gap: 60px;
}

.core-business-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 20px;
}

.core-business-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.core-business-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.core-business-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.core-business-image:hover img {
  transform: scale(1.03);
}

/* Expansion Section */
.expansion-section .card {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-md);
}

.expansion-section .card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.expansion-section .card:hover img {
  transform: scale(1.06);
}

.expansion-section .card .card-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  width: 100%;
  background: linear-gradient(0deg, rgba(11, 29, 58, 0.85) 0%, transparent 100%);
  color: #fff;
}

.expansion-section .card .card-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
}

.expansion-section .card .card-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Experience Section */
.experience-section {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.experience-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(200, 117, 51, 0.06);
}

.experience-content h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 20px;
}

.experience-content p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 24px;
}

.stats-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services-grid .card {
  text-align: center;
}

.services-grid .card-icon {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   7. ABOUT PAGE
   ============================================================ */

/* Mission & Vision */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.mission-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
}

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.vision-card {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vision-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(200, 117, 51, 0.12);
}

.vision-card h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.vision-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
}

.value-card .card-icon {
  margin: 0 auto 18px;
}

/* Leadership Section */
.leadership-section {
  background: var(--bg-white);
}

.director-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.director-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.director-card .director-info {
  padding: 40px 40px 40px 0;
}

.director-card .director-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.director-card .director-info .director-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.director-card .director-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================================
   8. SERVICES PAGE
   ============================================================ */
.service-detail {
  position: relative;
  padding: 80px 0;
}

.service-detail:nth-child(even) {
  background: var(--bg-white);
}

.service-detail .grid-2 {
  gap: 60px;
}

.service-detail:nth-child(even) .grid-2 {
  direction: rtl;
}

.service-detail:nth-child(even) .grid-2 > * {
  direction: ltr;
}

.service-detail-content {
  border-left: 3px solid var(--secondary);
  padding-left: 32px;
}

.service-number {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  color: rgba(200, 117, 51, 0.07);
  line-height: 1;
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
}

.service-detail-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.service-detail-image:hover img {
  transform: scale(1.03);
}

/* Service Features List */
.service-features {
  margin-top: 8px;
}

.service-features li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
}

/* ============================================================
   9. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

/* Contact Info */
.contact-info {
  padding-top: 8px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
}

.contact-detail-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-detail-text p,
.contact-detail-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-detail-text a:hover {
  color: var(--secondary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 2px solid #E5E7EB;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 117, 51, 0.35);
}

.btn-submit svg,
.btn-submit i {
  transition: transform var(--transition);
}

.btn-submit:hover svg,
.btn-submit:hover i {
  transform: translateX(4px);
}

/* Map Section */
.map-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(0.95);
}

.map-overlay-card {
  position: absolute;
  top: 40px;
  left: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  z-index: 2;
}

.map-overlay-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.map-overlay-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: block;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i,
.footer-contact li svg {
  color: var(--secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

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

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   11. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   15. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(200, 117, 51, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 900;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 117, 51, 0.45);
}

/* ============================================================
   13. UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-copper  { color: var(--secondary); }
.text-navy    { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: #fff; }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }

.bg-navy  { background-color: var(--primary); }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 64px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* Overlay utility */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 58, 0.1) 0%,
    rgba(11, 29, 58, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */

/* ---------- ≤ 992px ---------- */
@media (max-width: 992px) {
  .section { padding: 72px 0; }

  .grid-2        { grid-template-columns: 1fr; }
  .grid-3        { grid-template-columns: repeat(2, 1fr); }
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .mission-vision-grid { grid-template-columns: 1fr; }
  .values-grid         { grid-template-columns: repeat(2, 1fr); }

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

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-card img {
    min-height: 280px;
    max-height: 340px;
  }

  .director-card .director-info {
    padding: 32px;
  }

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

  .service-detail .grid-2 {
    gap: 36px;
  }

  .service-detail:nth-child(even) .grid-2 {
    direction: ltr;
  }

  .core-business .grid-2 { gap: 36px; }

  .service-number {
    font-size: 4rem;
  }
}

/* ---------- ≤ 768px ---------- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 28px 40px;
    gap: 4px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-link::after {
    bottom: 8px;
    left: 16px;
    right: auto;
    width: 24px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--secondary-light);
  }

  .btn-cta {
    margin-top: 12px;
    justify-content: center;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 85vh;
    padding: 110px 20px 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-mini {
    min-height: 35vh;
    padding: 120px 20px 48px;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .values-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  /* Stats */
  .stats-grid {
    justify-content: center;
    gap: 28px;
  }

  /* Section header */
  .section-header { margin-bottom: 40px; }

  /* Contact form */
  .contact-form {
    padding: 32px 24px;
  }

  /* Map overlay */
  .map-overlay-card {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    border-radius: 0;
    margin-top: -4px;
  }

  /* Service detail */
  .service-detail-content {
    border-left: none;
    border-top: 3px solid var(--secondary);
    padding-left: 0;
    padding-top: 24px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- ≤ 576px ---------- */
@media (max-width: 576px) {
  .section { padding: 44px 0; }
  .container { padding: 0 16px; }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .card {
    padding: 28px 22px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer {
    padding: 48px 0 0;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .director-card img {
    min-height: 220px;
    max-height: 280px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    font-size: 0.9375rem;
  }

  .map-section {
    height: 280px;
  }
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .navbar,
  .scroll-progress,
  .back-to-top,
  .hamburger { display: none !important; }

  .hero { min-height: auto; padding: 40px 0; }

  body { background: #fff; color: #000; }

  .section { padding: 32px 0; }
}
