/* Sultanate Developers — premium styles */
:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --navy-mid: #123056;
  --navy-soft: #1a3a5c;
  --gold: #c9a227;
  --gold-light: #e0bc4a;
  --gold-dark: #a6851f;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --white: #ffffff;
  --off-white: #f7f5f0;
  --cream: #faf8f3;
  --muted: #6b7280;
  --text: #1a2332;
  --border: rgba(11, 31, 58, 0.1);
  --shadow: 0 10px 40px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 60px rgba(11, 31, 58, 0.12);
  --shadow-gold: 0 8px 28px rgba(201, 162, 39, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 76px;
  --section-pad: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
  position: relative;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.22;
}

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

/* ========== Scroll progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2001;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 10px var(--gold-glow);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 9px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-full {
  width: 100%;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(7, 21, 38, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 8px 32px rgba(7, 21, 38, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 1002;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.logo .accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.15rem !important;
  font-size: 0.875rem !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy)
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1800&q=80")
    center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(7, 21, 38, 0.96) 0%,
    rgba(11, 31, 58, 0.88) 42%,
    rgba(11, 31, 58, 0.62) 72%,
    rgba(11, 31, 58, 0.45) 100%
  );
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 60%,
    rgba(201, 162, 39, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 5rem 0 4.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  background: rgba(201, 162, 39, 0.08);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 3.9rem);
  line-height: 1.12;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.hero h1 .gold {
  color: var(--gold);
  position: relative;
}

.hero-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2.1rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-chip svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold);
  line-height: 1.2;
}

.stat span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero-accent-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1.5rem;
}

.accent-line {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.accent-line-a {
  width: 88px;
}

.accent-line-b {
  width: 52px;
  opacity: 0.55;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.btn-glow {
  position: relative;
  box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 162, 39, 0.35);
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 10px 32px rgba(201, 162, 39, 0.4), 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--gold-light);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ========== Departments strip ========== */
.departments-strip {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  position: relative;
}

.departments-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.06),
    transparent 40%,
    transparent 60%,
    rgba(201, 162, 39, 0.06)
  );
  pointer-events: none;
}

.departments-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.dept-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  color: var(--white);
  transition: background 0.3s ease;
  min-width: 0;
}

.dept-card:hover {
  background: rgba(201, 162, 39, 0.08);
}

.dept-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: var(--gold);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dept-card:hover .dept-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.25);
}

.dept-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dept-text {
  flex: 1;
  min-width: 0;
}

.dept-text strong {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.dept-text span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dept-card:hover .dept-cta {
  color: var(--gold);
  transform: translateX(3px);
}

.dept-divider {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 162, 39, 0.35),
    transparent
  );
  flex-shrink: 0;
  align-self: stretch;
  margin: 0.75rem 0;
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.about-frame {
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -18px;
  right: -8px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 120px;
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1.1;
}

.about-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.about-text .section-label {
  text-align: left;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--navy);
  margin-bottom: 1.1rem;
  line-height: 1.25;
}

.about-text > p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--navy);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding: 1.25rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.about-stat {
  text-align: center;
  position: relative;
}

.about-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.2;
}

.about-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45);
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.35);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(201, 162, 39, 0.2),
    rgba(201, 162, 39, 0.08)
  );
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  color: var(--gold-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.32);
  background: linear-gradient(
    145deg,
    rgba(201, 162, 39, 0.32),
    rgba(201, 162, 39, 0.12)
  );
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon svg {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== Why Us ========== */
.why-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  position: relative;
}

.why-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.4),
    transparent
  );
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.why-card {
  text-align: center;
  padding: 2.25rem 1.35rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.why-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.why-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========== Projects ========== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: -1.25rem auto 2.5rem;
}

.filter-chip {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.filter-chip:hover {
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--gold-dark);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.28),
    inset 0 0 0 1px rgba(201, 162, 39, 0.2);
  transform: translateY(-1px);
}

.filter-chip.active:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.filter-chip:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
    opacity 0.35s ease;
}

.project-card.is-hidden {
  display: none;
}

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

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

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 21, 38, 0.88) 0%,
    rgba(7, 21, 38, 0.2) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-overlay .project-tag {
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.project-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.project-body h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========== Testimonials ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  position: absolute;
  top: 0.85rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.2);
  pointer-events: none;
}

.testimonial-card .stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  flex: 1;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.35rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(201, 162, 39, 0.35);
}

.author-info strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== Contact ========== */
.section-contact {
  background: var(--off-white);
}

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

.contact-info {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
  pointer-events: none;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
  position: relative;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  position: relative;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
  position: relative;
  flex: 1;
}

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

.contact-item .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.contact-hours strong {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.contact-hours span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--gold-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--off-white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b1f3a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
  background: var(--white);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(180, 60, 60, 0.45);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  text-align: center;
}

.form-note code {
  font-size: 0.78em;
  background: var(--off-white);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid rgba(11, 31, 58, 0.12);
  background: var(--cream);
  border-radius: 11px;
  padding: 0.9rem 1.1rem;
  box-shadow: inset 0 1px 2px rgba(11, 31, 58, 0.03);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  font-weight: 500;
}

.route-hint {
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  background: rgba(11, 31, 58, 0.05);
  color: var(--navy);
  border-left: 3px solid var(--gold);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.route-hint.is-solar {
  background: rgba(201, 162, 39, 0.1);
  border-left-color: var(--gold);
  color: var(--navy);
}

.route-hint.is-construction {
  background: rgba(11, 31, 58, 0.07);
  border-left-color: var(--navy-mid);
  color: var(--navy);
}

.team-routing {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.team-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.team-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.team-card span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.routing-note {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.contact-form-wrap {
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-left-color: #e57373;
}

.toast strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.toast.error strong {
  color: #ffcdd2;
}

/* ========== Footer ========== */
.site-footer {
  background: #050e1a;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 1.5rem;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.social-link:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--gold);
}

.social-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

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

/* ========== Animations ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .services-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about-frame {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }

  .about-badge {
    right: 8px;
    bottom: -14px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 4.5rem;
    --header-h: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    padding: 5rem 1.75rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 1001;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    font-size: 1.15rem;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 1rem;
    padding: 0.95rem 1.15rem !important;
    font-size: 1rem !important;
  }

  .hero-stats {
    gap: 1.25rem;
  }

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

  .about-stats-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-stat:not(:last-child)::after {
    display: none;
  }

  .about-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --section-pad: 3.75rem;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .departments-inner {
    flex-direction: column;
  }

  .dept-divider {
    width: auto;
    height: 1px;
    margin: 0 1rem;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(201, 162, 39, 0.35),
      transparent
    );
  }

  .dept-text span {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-chips {
    gap: 0.5rem;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.55rem;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.75rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(7, 21, 38, 0.75) 0%,
      transparent 60%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
