/* McWintech Gh — gold & white corporate site */

:root {
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --gold-deep: #8f7012;
  --gold-soft: rgba(201, 162, 39, 0.12);
  --white: #ffffff;
  --paper: #fafafa;
  --ink: #161410;
  --ink-soft: #4a463c;
  --line: rgba(22, 20, 16, 0.12);
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-solid .brand-text,
.site-header.is-solid .primary-nav a {
  color: var(--ink);
}

.site-header.is-solid .brand-mark {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.header-inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 28%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.15rem;
  transform: rotate(45deg);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.brand-text em {
  font-style: normal;
  color: var(--gold-bright);
}

.site-header.is-solid .brand-text em {
  color: var(--gold-deep);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.primary-nav ul a:hover,
.primary-nav ul a[aria-current="page"] {
  color: var(--gold-bright);
}

.site-header.is-solid .primary-nav ul a[aria-current="page"] {
  color: var(--gold-deep);
}

.site-header.is-solid .primary-nav ul a:hover {
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.4rem;
  background: var(--white);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s;
}

.site-header.is-solid .nav-toggle span,
.site-header.nav-open .nav-toggle span {
  background: var(--ink);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons & links —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--white);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.text-link:hover {
  gap: 0.7rem;
}

.text-link.gold {
  color: var(--gold-deep);
}

.text-link.gold:hover {
  color: var(--gold);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: #1a160c;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background: #1a160c;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  display: block;
}

.hero-slide.is-active img {
  animation: hero-drift 14s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(18, 14, 6, 0.55) 0%, rgba(18, 14, 6, 0.28) 50%, rgba(18, 14, 6, 0.4) 100%),
    linear-gradient(to top, rgba(12, 10, 4, 0.5) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 clamp(5.5rem, 12vh, 7.5rem);
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2 + 0));
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 14, 6, 0.35);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-dot.is-active {
  background: var(--gold-bright);
  transform: scale(1.25);
}

.hero-dot:hover {
  background: var(--white);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Tech strip —— */
.tech-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.tech-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.tech-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.75rem 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.tech-pill:last-child {
  border-right: 0;
}

.tech-pill:hover {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.tech-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

/* —— About —— */
.about-band {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 1.15rem;
  max-width: 16ch;
}

.about-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.about-visual {
  overflow: hidden;
  min-height: 22rem;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 1.2s var(--ease);
}

.about-band:hover .about-visual img {
  transform: scale(1.04);
}

/* —— Industries —— */
.industries {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--white);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-soft);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.industry-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: clamp(22rem, 42vw, 28rem);
}

.industry-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 18rem;
  overflow: hidden;
  color: var(--white);
  padding: 1.75rem;
}

.industry-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.industry-panel:hover img {
  transform: scale(1.08);
}

.industry-panel-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 4, 0.82) 0%, rgba(12, 10, 4, 0.15) 55%);
  transition: background 0.4s var(--ease);
}

.industry-panel:hover .industry-panel-veil {
  background: linear-gradient(to top, rgba(12, 10, 4, 0.88) 0%, rgba(201, 162, 39, 0.25) 70%);
}

.industry-panel h3 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  max-width: 12ch;
}

/* —— Services —— */
.services {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.service-list li:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.service-list h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--gold-deep);
}

.service-list p {
  color: var(--ink-soft);
  max-width: 28ch;
}

/* —— News —— */
.news {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--paper);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--gold);
}

.news-item time {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.news-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.news-item:hover h3 {
  color: var(--gold-deep);
}

/* —— CTA —— */
.cta-band {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  background:
    linear-gradient(120deg, rgba(18, 14, 6, 0.88), rgba(18, 14, 6, 0.72)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=2000&q=70") center / cover;
  color: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: 36rem;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  color: var(--white);
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(18, 14, 6, 0.8), rgba(18, 14, 6, 0.5));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
}

/* —— Content blocks —— */
.content-block {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.content-block:nth-child(even) {
  background: var(--paper);
}

.content-block .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.content-block h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-deep);
}

.content-block p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.content-block ul.ticks {
  display: grid;
  gap: 0.55rem;
}

.content-block ul.ticks li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--ink-soft);
}

.content-block ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
}

/* —— Contact form —— */
.contact-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info p,
.contact-info address {
  color: var(--ink-soft);
  font-style: normal;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--gold-deep);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.form-note.is-success {
  color: var(--gold-deep);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-tag {
  margin: 1rem 0 1.25rem;
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-brand address a {
  color: var(--gold-bright);
}

.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer ul a {
  font-size: 0.92rem;
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: var(--gold-bright);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  font-size: 0.85rem;
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bar a:hover {
  color: var(--gold-bright);
}

/* —— Scroll reveal —— */
.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .tech-strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-pill:nth-child(3) {
    border-right: 0;
  }

  .about-grid,
  .content-block .container,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .industry-panels {
    grid-template-columns: 1fr 1fr;
  }

  .service-list,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-list li {
    border-right: 0;
    padding-right: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .primary-nav a {
    color: var(--ink) !important;
    font-size: 1rem;
  }

  .header-cta {
    margin-top: 0.5rem;
  }

  .hero-content {
    margin-left: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  .tech-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-pill {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .industry-panels,
  .service-list,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
