:root {
  --wc-primary: #111111;
  --wc-accent: #f5c518;
  --wc-dark: #0a0a0a;
  --wc-light: #f5f5f5;
  --wc-white: #fff;
  --wc-text: #111;
  --wc-muted: #555;
  --wc-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --wc-radius: 18px;
  --wc-container: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--wc-text);
  background: var(--wc-white);
  line-height: 1.6;
}
a { color: var(--wc-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wc-container {
  width: min(100% - 2rem, var(--wc-container));
  margin: 0 auto;
}

.wc-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(36, 52, 71, 0.08);
}
body.admin-bar .wc-site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .wc-site-header { top: 46px; }
}

.wc-topbar {
  background: var(--wc-primary);
  color: var(--wc-white);
  font-size: 0.85rem;
}
.wc-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.55rem 0;
}

.wc-header {
  background: var(--wc-white);
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.wc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.wc-brand img { width: min(180px, 42vw); }
.wc-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}
.wc-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wc-menu a {
  color: var(--wc-primary);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wc-menu .current-menu-item > a,
.wc-menu .current_page_item > a,
.wc-menu .current-menu-ancestor > a,
.wc-menu a:hover,
.wc-menu a:focus-visible {
  border-bottom-color: var(--wc-accent);
  outline: none;
}

.wc-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
}
.wc-hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--wc-hero-image, #2b4562);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.wc-hero-slide.is-active { opacity: 1; z-index: 1; }
.wc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,45,66,.78), rgba(26,45,66,.35));
}
.wc-hero-content {
  position: relative;
  z-index: 2;
  color: var(--wc-white);
  padding: 6rem 0 5rem;
  max-width: 720px;
}
.wc-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.9;
}
.wc-hero-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
.wc-hero-subtitle { font-size: 1.05rem; max-width: 38rem; }
.wc-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--wc-primary);
  font-size: 1.6rem;
  cursor: pointer;
}
.wc-hero-prev { left: 1rem; }
.wc-hero-next { right: 1rem; }

.wc-btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 1rem;
}
.wc-btn-light { background: var(--wc-white); color: var(--wc-primary); }
.wc-btn-primary { background: var(--wc-accent); color: var(--wc-white); }

.wc-section { padding: 3.5rem 0; }
.wc-section-title {
  text-align: center;
  font-family: Georgia, serif;
  color: var(--wc-primary);
  margin: 0;
}
.wc-section-lead { text-align: center; color: var(--wc-muted); margin-top: 0.35rem; }

.wc-features {
  margin-top: -3rem;
  position: relative;
  z-index: 4;
}
.wc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.wc-card {
  background: var(--wc-white);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
  padding: 1.75rem;
}
.wc-card h2 {
  margin: 0 0 0.75rem;
  color: var(--wc-primary);
  font-size: 1.15rem;
}
.wc-feature-icon {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: rgba(74,118,168,.12);
}
.wc-feature-icon--shield {
  background: rgba(220,38,38,.12);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Z'/%3E%3C/svg%3E") center/1.4rem no-repeat;
  background-color: #fee2e2;
}
.wc-feature-icon--handshake {
  background: rgba(234,179,8,.15);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11 13H7l4-4 4 4h-4v6h-2v-6Z'/%3E%3C/svg%3E") center/1.4rem no-repeat;
  background-color: #fef3c7;
}
.wc-service-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wc-accent), var(--wc-primary));
  opacity: 0.85;
}

.wc-services { background: var(--wc-light); }
.wc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.wc-service-card {
  background: var(--wc-white);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(43,69,98,.08);
}
.wc-service-card h3 { margin: 0 0 0.5rem; color: var(--wc-primary); font-size: 1rem; }

.wc-contact-strip { background: var(--wc-white); }
.wc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.wc-cta {
  background: var(--wc-primary);
  color: var(--wc-white);
}
.wc-cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.wc-page .wc-content {
  max-width: 820px;
}
.wc-content h1,
.wc-content h2,
.wc-content h3 { color: var(--wc-primary); }
.wc-post-list { display: grid; gap: 1rem; }
.wc-post-card {
  border: 1px solid rgba(43,69,98,.1);
  border-radius: 14px;
  padding: 1.25rem;
}
.wc-post-meta { color: var(--wc-muted); font-size: 0.9rem; }

.wc-footer {
  background: var(--wc-dark);
  color: rgba(255,255,255,.88);
  padding: 2rem 0;
  font-size: 0.92rem;
}
.wc-footer-brand { font-weight: 700; margin: 0 0 0.5rem; }
.wc-footer-licence { max-width: 60rem; }

/* Legacy contact form markup only — SGOne aligned forms use sg-form--aligned in sgone-ui.css */
.wc-contact-layout:not(.sg-contact-layout) {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.wc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.wc-form-full { grid-column: 1 / -1; }
.wc-contact-form:not(.sg-contact-form) label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--wc-primary);
}
.wc-contact-form:not(.sg-contact-form) input,
.wc-contact-form:not(.sg-contact-form) textarea {
  width: 100%;
  border: 1px solid rgba(43,69,98,.18);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.sg-contact-form.wc-contact-form input,
.sg-contact-form.wc-contact-form textarea {
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: .7rem .85rem;
}
.wc-form-note { color: var(--wc-muted); font-size: 0.88rem; margin-top: 0.75rem; }
.wc-form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.wc-contact-sidebar {
  background: var(--wc-light);
  border-radius: var(--wc-radius);
  padding: 1.5rem;
}
.wc-page-contact .wc-content,
.wc-page .wc-content ul { padding-left: 1.2rem; }
.wc-page .wc-content li { margin-bottom: 0.35rem; }

.wc-page-hero.sg-page-hero,
.aim-page-hero.sg-page-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

@media (max-width: 768px) {
  .wc-contact-grid,
  .wc-cta-inner { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .wc-topbar-inner { flex-direction: column; gap: 0.35rem; font-size: 0.78rem; }
  .wc-contact-layout,
  .wc-form-grid { grid-template-columns: 1fr; }
  .wc-features { margin-top: -1.5rem; }
  .wc-hero { min-height: 62vh; }
  .wc-hero-nav { display: none; }
  .wc-hero-content { padding-top: 4rem; }
}

/* AIMS Construction */
.aim-topbar { background: #0a0a0a; font-size: 0.82rem; }
.aim-topbar-inner { justify-content: space-between; }
.aim-topbar-phone { color: var(--wc-accent); font-weight: 700; }
.aim-header { background: #fff; border-bottom: 1px solid #eee; }
.aim-nav { display: flex; align-items: center; gap: 1rem; }
.aim-menu a {
  color: #111;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.35rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.aim-menu a:hover,
.aim-menu .current-menu-item > a,
.aim-menu .current_page_item > a {
  color: var(--wc-accent);
  border-bottom-color: var(--wc-accent);
}
.aim-header-cta {
  background: var(--wc-accent);
  color: #111;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.aim-hero {
  position: relative;
  min-height: 78vh;
  background: center/cover no-repeat var(--aim-hero-image, #111);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.aim-hero--video { background: #111; }
.aim-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.aim-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 100%);
}
.aim-hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 5rem 0 8rem;
  max-width: 720px;
}
.aim-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--wc-accent);
  margin: 0 0 0.75rem;
}
.aim-eyebrow--dark { color: var(--wc-accent); }
.aim-hero-inner h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
}
.aim-hero-inner h1 span { display: block; }
.aim-subtitle { max-width: 38rem; opacity: 0.9; font-size: 1.05rem; }
.aim-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.aim-btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aim-btn-primary { background: var(--wc-accent); color: #111; }
.aim-btn-ghost { border: 1px solid rgba(255,255,255,.75); color: #fff; }
.aim-pills {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -3.5rem;
  padding-bottom: 2rem;
}
.aim-pill {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: var(--wc-shadow);
  text-align: center;
}
.aim-pill strong { display: block; color: #111; margin-bottom: 0.25rem; }
.aim-pill span { color: var(--wc-muted); font-size: 0.88rem; }
.aim-services { background: var(--wc-light); }
.aim-section-title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.aim-section-lead { color: var(--wc-muted); max-width: 52ch; }
.aim-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.aim-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e8e8e8;
}
.aim-service-card h3 { margin: 0 0 0.5rem; }
.aim-projects { background: #fff; }
.aim-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.aim-projects-grid--page { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.aim-project-card {
  background: var(--wc-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.aim-project-media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.aim-project-media img { width: 100%; height: 100%; object-fit: cover; }
.aim-project-card h3 { margin: 0.85rem 1rem 0.35rem; }
.aim-project-card p { margin: 0 1rem 1rem; color: var(--wc-muted); font-size: 0.92rem; }
.aim-project-link {
  display: inline-block;
  margin: 0 1rem 1rem;
  font-weight: 700;
  color: var(--wc-accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.aim-projects-more { margin-top: 1.5rem; }
.aim-footer { background: #0a0a0a; }
@media (max-width: 768px) {
  .aim-pills { grid-template-columns: 1fr; margin-top: -1rem; }
  .aim-nav { flex-direction: column; align-items: stretch; }
  .aim-header-cta { text-align: center; }
  .aim-hero-inner { padding-bottom: 4rem; }
}
