/* ==========================================================================
   Gulf Coast MEP — theme styles
   Loaded after utilities.css so these rules win.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
:root {
  --nav-h: 57px;
  --gc-accent: #60a5fa;
}
@media (min-width: 640px) { :root { --nav-h: 65px; } }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #000;
  color: #fff;
}
.font-display { font-family: 'Playfair Display', Georgia, serif; }

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* --------------------------------------------------------------------------
   2. Utilities the compiled sheet is missing
   -------------------------------------------------------------------------- */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.w-auto         { width: auto; }
.h-9            { height: 2.25rem; }
.h-48           { height: 12rem; }
.h-72           { height: 18rem; }
.p-4            { padding: 1rem; }
.pt-3           { padding-top: .75rem; }
.mt-12          { margin-top: 3rem; }
.mt-16          { margin-top: 4rem; }
.gap-10         { gap: 2.5rem; }
.items-start    { align-items: flex-start; }
.min-h-\[4\.5rem\] { min-height: 4.5rem; }
@media (min-width: 640px) { .sm\:h-12 { height: 3rem; } }

.space-y-1 > :not([hidden]) ~ :not([hidden])  { margin-top: .25rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   3. Motion and reveal
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.hero-gradient {
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.85) 100%);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.carousel-slide.active { opacity: 1; }

.svc-card  { transition: transform .4s ease, box-shadow .4s ease; }
.svc-card:hover  { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.proj-card { transition: transform .4s ease, box-shadow .4s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.qual-card { transition: transform .3s ease, box-shadow .3s ease; }
.qual-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }

.client-wheel-track { animation: client-wheel-scroll 28s linear infinite; will-change: transform; }
@keyframes client-wheel-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

.ph-img {
  background: repeating-linear-gradient(135deg, #1c1c1f, #1c1c1f 12px, #232327 12px, #232327 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .75rem;
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.gc-nav { background: #e5e7eb; border-bottom: 1px solid #d1d5db; }
.gc-nav a, .gc-nav button { color: #374151; }
.gc-nav a:hover, .gc-nav button:hover { color: #000; }

/* Logo. Sized here rather than trusting the uploaded file's dimensions, so a
   large image can never stretch the bar. Height is tied to --nav-h above:
   change one and change the other. */
.gc-brand { display: flex; align-items: center; flex: none; }
.gc-brand img,
.gc-nav .custom-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
}
@media (min-width: 640px) {
  .gc-brand img,
  .gc-nav .custom-logo { height: 3rem; max-width: 20rem; }
}

/* Footer logo */
.gc-footer-brand img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
}

.gc-menu { display: flex; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .gc-menu { gap: 2rem; } }
.gc-menu li { position: relative; }
.gc-menu a { font-size: .875rem; transition: color .15s; }
.gc-menu .current-menu-item > a,
.gc-menu .current_page_item > a,
.gc-menu .current-menu-parent > a { color: #000; font-weight: 500; }

/* Call-to-action: last menu item, or any item given the "cta" class */
.gc-menu .gc-cta > a,
.gc-menu li.menu-item-cta > a {
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .25rem;
  font-weight: 500;
}
.gc-menu .gc-cta > a:hover { background: #1f2937; color: #fff; }

/* Dropdowns */
.gc-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: .375rem;
  padding: .5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.gc-menu li:hover > .sub-menu,
.gc-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gc-menu .sub-menu a { display: block; padding: .5rem 1rem; }

.gc-mobile-menu { background: #e5e7eb; border-top: 1px solid #d1d5db; }
.gc-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.gc-mobile-menu li { border-bottom: 1px solid rgba(0,0,0,.06); }
.gc-mobile-menu li:last-child { border-bottom: 0; }
.gc-mobile-menu a { display: block; padding: .75rem 0; color: #374151; font-size: .95rem; }
.gc-mobile-menu .sub-menu { padding-left: 1rem; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero-copy { padding-top: var(--nav-h); }

/* --------------------------------------------------------------------------
   6. Stats band
   -------------------------------------------------------------------------- */
.stats-grid { row-gap: 2.5rem; }
.stats-grid > div { padding-inline: 1rem; }
.stats-grid > div + div { border-left: 1px solid hsla(0,0%,100%,.10); }
@media (max-width: 767px) { .stats-grid > div:nth-child(odd) { border-left: 0; } }
.stats-grid p + p { max-width: 11rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   7. Card grids — equal heights, centred final row
   -------------------------------------------------------------------------- */
.gc-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.gc-grid > * { flex: 0 1 100%; }

.gc-grid.gc-gap-6 { gap: 1.5rem; }
.gc-grid.gc-gap-3 { gap: .75rem; }
.gc-grid.gc-gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .gc-grid.gc-cols-2 > *, .gc-grid.gc-cols-3 > *, .gc-grid.gc-cols-4 > * { flex-basis: calc((100% - 1.5rem) / 2); }
  .gc-grid.gc-gap-8.gc-cols-2 > *, .gc-grid.gc-gap-8.gc-cols-3 > *, .gc-grid.gc-gap-8.gc-cols-4 > * { flex-basis: calc((100% - 2rem) / 2); }
}
@media (min-width: 1024px) {
  .gc-grid.gc-cols-3 > * { flex-basis: calc((100% - 3rem) / 3); }
  .gc-grid.gc-gap-8.gc-cols-3 > * { flex-basis: calc((100% - 4rem) / 3); }
  .gc-grid.gc-cols-4 > * { flex-basis: calc((100% - 4.5rem) / 4); }
  .gc-grid.gc-gap-8.gc-cols-4 > * { flex-basis: calc((100% - 6rem) / 4); }
}

/* Service cards */
.svc-card { display: flex; flex-direction: column; }
.svc-card > img,
.svc-card > .gc-card-media { flex: none; width: 100%; height: 12rem; object-fit: cover; }
.svc-card > div:last-child { display: flex; flex-direction: column; flex: 1 1 auto; }

/* Why-us cards */
.gc-why-item { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) {
  .gc-why-item h3 { min-height: 3rem; display: flex; align-items: center; justify-content: center; }
}

/* Client tiles */
.gc-client-tile {
  flex: 0 1 calc((100% - .75rem) / 2);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: .5rem;
  padding: .75rem;
}
@media (min-width: 640px)  { .gc-client-tile { flex-basis: calc((100% - 1.5rem) / 3); } }
@media (min-width: 768px)  { .gc-client-tile { flex-basis: calc((100% - 2.25rem) / 4); } }
@media (min-width: 1024px) { .gc-client-tile { flex-basis: calc((100% - 3rem) / 5); } }

/* Name only */
.gc-client-tile--name {
  background: hsla(0,0%,100%,.05);
  border: 1px solid hsla(0,0%,100%,.1);
}
.gc-client-tile--name p {
  font-size: .875rem;
  font-weight: 500;
  color: hsla(0,0%,100%,.8);
}

/* With a logo: white plate, because most logos are dark and would be
   invisible on the black background. */
.gc-client-tile--logo {
  background: #fff;
  border: 1px solid #fff;
  padding: .75rem 1rem;
}
.gc-client-tile--logo img {
  max-height: 3rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Static logo row, used when there are too few logos to scroll */
.gc-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* Project cards */
.proj-card { display: block; }

/* Certificate cards */
.gc-cert-card { display: flex; flex-direction: column; }
.gc-cert-card .gc-cert-plate {
  flex: none;
  height: 18rem;
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-cert-card .gc-cert-plate img { max-height: 100%; width: auto; object-fit: contain; }
.gc-cert-card > div:last-child { display: flex; flex-direction: column; flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .gc-about-grid { align-items: stretch; }
  .gc-about-grid .gc-about-media { height: 100%; min-height: 24rem; }
  .gc-about-grid .gc-about-media img { width: 100%; height: 100%; object-fit: cover; }
}

/* --------------------------------------------------------------------------
   9. Single project / certification detail
   -------------------------------------------------------------------------- */
.gc-meta-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.gc-meta-table th,
.gc-meta-table td { padding: .75rem 0; border-bottom: 1px solid hsla(0,0%,100%,.10); vertical-align: top; text-align: left; }
.gc-meta-table th {
  width: 12rem;
  color: hsla(0,0%,100%,.5);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
  padding-right: 1rem;
}
.gc-meta-table td { color: hsla(0,0%,100%,.85); }

.gc-status { display: inline-block; padding: .2rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 500; }
.gc-status-ongoing   { background: rgba(34,197,94,.15);  color: #4ade80; }
.gc-status-handover  { background: rgba(249,115,22,.15); color: #fb923c; }
.gc-status-completed { background: rgba(59,130,246,.15); color: #60a5fa; }

/* Editor content inside single views */
.gc-prose { color: hsla(0,0%,100%,.7); line-height: 1.75; }
.gc-prose > * + * { margin-top: 1rem; }
.gc-prose p { max-width: 68ch; }
.gc-prose h2, .gc-prose h3 { color: #fff; font-weight: 700; margin-top: 2rem; }
.gc-prose h2 { font-size: 1.5rem; }
.gc-prose h3 { font-size: 1.25rem; }
.gc-prose a { color: var(--gc-accent); text-decoration: underline; }
.gc-prose ul, .gc-prose ol { padding-left: 1.25rem; }
.gc-prose ul { list-style: disc; }
.gc-prose ol { list-style: decimal; }
.gc-prose li + li { margin-top: .35rem; }
.gc-prose img { border-radius: .75rem; }
.gc-prose blockquote {
  border-left: 2px solid hsla(0,0%,100%,.2);
  padding-left: 1rem;
  color: hsla(0,0%,100%,.6);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   10. Projects table (archive alternative view)
   -------------------------------------------------------------------------- */
.gc-table-wrap { overflow-x: auto; }
.gc-table { width: 100%; min-width: 60rem; border-collapse: collapse; font-size: .875rem; text-align: left; }
.gc-table thead th {
  padding: .75rem;
  border-bottom: 1px solid hsla(0,0%,100%,.2);
  color: hsla(0,0%,100%,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
  font-weight: 500;
}
.gc-table tbody td { padding: .75rem; border-bottom: 1px solid hsla(0,0%,100%,.1); vertical-align: top; color: hsla(0,0%,100%,.6); }
.gc-table tbody tr:nth-child(even) { background: hsla(0,0%,100%,.02); }
.gc-table tbody tr:hover { background: hsla(0,0%,100%,.05); }
.gc-table tbody td.gc-col-name { color: #fff; font-weight: 500; min-width: 16rem; }
.gc-table tbody td.gc-col-name a:hover { color: var(--gc-accent); }
.gc-table tbody td.gc-col-num { color: hsla(0,0%,100%,.4); }

/* --------------------------------------------------------------------------
   11. Buttons, pagination, forms
   -------------------------------------------------------------------------- */
.gc-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: .75rem 2rem;
  border-radius: .25rem;
  font-weight: 500;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s;
}
.gc-btn:hover { background: hsla(0,0%,100%,.9); }
.gc-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid hsla(0,0%,100%,.25);
}
.gc-btn-ghost:hover { background: hsla(0,0%,100%,.08); }

.gc-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: hsla(0,0%,100%,.7);
  transition: color .15s;
}
.gc-back:hover { color: #fff; }

.gc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.gc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .75rem;
  border: 1px solid hsla(0,0%,100%,.15);
  border-radius: .375rem;
  color: hsla(0,0%,100%,.7);
  font-size: .875rem;
  transition: background .15s, color .15s;
}
.gc-pagination .page-numbers:hover { background: hsla(0,0%,100%,.08); color: #fff; }
.gc-pagination .page-numbers.current { background: #fff; color: #000; border-color: #fff; font-weight: 500; }
.gc-pagination .page-numbers.dots { border-color: transparent; }

.gc-field label { display: block; font-size: .875rem; color: hsla(0,0%,100%,.7); margin-bottom: .25rem; }
.gc-field input,
.gc-field textarea,
.gc-field select {
  width: 100%;
  background: hsla(0,0%,100%,.05);
  border: 1px solid hsla(0,0%,100%,.1);
  border-radius: .5rem;
  padding: .75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}
.gc-field input::placeholder,
.gc-field textarea::placeholder { color: hsla(0,0%,100%,.3); }
.gc-field input:focus,
.gc-field textarea:focus { outline: none; border-color: hsla(0,0%,100%,.3); }
.gc-field textarea { resize: vertical; min-height: 8rem; }

.gc-form-note { font-size: .875rem; margin-top: 1rem; text-align: center; }
.gc-form-note.is-success { color: #4ade80; }
.gc-form-note.is-error   { color: #f87171; }

/* Honeypot */
.gc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   12. Page header for inner pages
   -------------------------------------------------------------------------- */
.gc-page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid hsla(0,0%,100%,.1);
}
.gc-page-header .gc-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: hsla(0,0%,100%,.5);
  margin-bottom: 1rem;
}
.gc-breadcrumb { font-size: .8125rem; color: hsla(0,0%,100%,.45); margin-bottom: 1rem; }
.gc-breadcrumb a:hover { color: #fff; }
.gc-breadcrumb span + span::before { content: '/'; margin: 0 .5rem; opacity: .5; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.gc-footer { background: #e5e7eb; border-top: 1px solid #d1d5db; color: #000; }
.gc-footer a { color: rgba(0,0,0,.7); }
.gc-footer a:hover { color: #000; }
.gc-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
@media (min-width: 768px) {
  .gc-footer-inner > .gc-footer-brand,
  .gc-footer-inner > .gc-footer-meta { flex: 1 1 0; }
  .gc-footer-inner > .gc-footer-nav-wrap { flex: 0 1 auto; }
  .gc-footer-meta { display: flex; flex-direction: column; align-items: flex-end; }
}

/* --------------------------------------------------------------------------
   14. Empty states (shown before the client adds content)
   -------------------------------------------------------------------------- */
.gc-empty {
  border: 1px dashed hsla(0,0%,100%,.2);
  border-radius: .75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: hsla(0,0%,100%,.5);
  font-size: .875rem;
}
.gc-empty strong { color: hsla(0,0%,100%,.8); display: block; margin-bottom: .35rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Accessibility
   -------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: .75rem 1.25rem;
  border-radius: 0 0 .375rem 0;
  font-size: .875rem;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .client-wheel-track { animation: none; }
  .svc-card, .proj-card, .qual-card, .carousel-slide { transition: none; }
}

/* --------------------------------------------------------------------------
   16. WordPress core classes
   -------------------------------------------------------------------------- */
.alignleft  { float: left;  margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .gc-prose figcaption { font-size: .8125rem; color: hsla(0,0%,100%,.5); margin-top: .5rem; }
.sticky, .gallery-caption, .bypostauthor { /* required by the theme review guidelines */ }

/* Small-screen refinements carried over from the approved design */
@media (max-width: 640px) {
  .gc-hero h1 { font-size: 2.1rem !important; line-height: 1.15; }
  section.py-24 { padding-top: 4rem; padding-bottom: 4rem; }
}
