
/* =========================================
   NEXA — PREMIUM CORPORATE WEBSITE
   ========================================= */

/* 1. Design system */

:root {
  --forest: #172d29;
  --forest-light: #29463e;
  --gold: #c7a66a;
  --gold-light: #dfc899;
  --ivory: #f8f6f1;
  --white: #ffffff;
  --ink: #28332f;
  --muted: #777d77;
  --border: #e8e4dc;

  --font-body: "DM Sans", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), 90%);
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.eyebrow {
  display: inline-block;
  color: #927440;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.eyebrow-light {
  color: var(--gold-light);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

h2 em,
h1 em {
  color: var(--gold);
  font-weight: 400;
}

p {
  color: var(--muted);
}

.gold-line {
  width: 55px;
  height: 2px;
  margin-top: 28px;
  background: var(--gold);
}

/* 2. Top information bar */

.topbar {
  background: var(--forest);
  color: #e8e5dc;
  font-size: 10px;
  letter-spacing: 0.07em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 20px;
}

.topbar a {
  color: var(--gold-light);
}

.topbar a span {
  margin-left: 5px;
}

/* 3. Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--forest);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.1;
}

.logo-dot {
  display: inline;
  color: var(--gold);
}

.logo small {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: #535b56;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 11px 16px;
  border: 1px solid #d8c7a5;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta span {
  color: #927440;
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
}

/* 4. Buttons */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: #1d2c25;
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-dark {
  background: var(--forest);
  color: var(--white);
}

.button-dark:hover {
  background: var(--forest-light);
}

.button span {
  font-size: 15px;
}

/* 5. Hero banner */

.hero {
  position: relative;
  min-height: 660px;
  min-height: min(760px, 80svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=85");
  background-position: center 52%;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(15, 34, 29, 0.91) 0%,
      rgba(15, 34, 29, 0.76) 44%,
      rgba(15, 34, 29, 0.2) 100%
    ),
    linear-gradient(
      0deg,
      rgba(15, 34, 29, 0.4),
      transparent 35%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 30px;
  padding-bottom: 65px;
}

.hero h1 {
  max-width: 850px;
  margin: 24px 0;
  color: var(--white);
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--gold-light);
}

.hero-content > p {
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-text-link {
  color: var(--white);
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding: 5px 0;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.hero-bottom a {
  color: var(--gold-light);
}

.hero-bottom a span {
  margin-left: 12px;
  font-size: 15px;
}

/* 6. Welcome section */

.welcome {
  background: var(--ivory);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
  gap: 100px;
}

.welcome-heading h2,
.section-heading h2 {
  margin: 20px 0 0;
  color: var(--forest);
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.welcome-copy {
  padding-top: 15px;
}

.welcome-copy .lead {
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.6;
}

.welcome-copy > p:not(.lead) {
  font-size: 13px;
  line-height: 2;
}

.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 7px;
  border-bottom: 1px solid #b9a171;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.underlined-link span {
  color: #a18043;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.underlined-link:hover span {
  transform: translateX(4px);
}

.welcome-copy .underlined-link {
  margin-top: 18px;
}

/* 7. Services */

.services {
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 45px;
}

.section-heading h2 {
  max-width: 650px;
}

.desktop-link {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  min-width: 0;
}

.service-image {
  position: relative;
  min-height: 260px;
  display: block;
  overflow: hidden;
  background-color: #d9ded8;
  background-position: center;
  background-size: cover;
}

.service-image::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(17, 38, 31, 0.45),
    transparent 50%
  );
  content: "";
  transition: background 0.3s ease;
}

.service-image:hover::before {
  background: rgba(17, 38, 31, 0.15);
}

.image-strategy {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.image-process {
  background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=900&q=80");
}

.image-digital {
  background-image: url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=900&q=80");
}

.service-number {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 29px;
}

.image-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: var(--white);
  font-size: 17px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.service-image:hover .image-arrow {
  background: var(--gold);
  color: var(--forest);
}

.service-info {
  padding: 24px 2px 0;
}

.service-label {
  color: #9a804d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.service-info h3 {
  margin: 10px 0;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.4;
}

.service-info p {
  min-height: 76px;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.9;
}

.mobile-link {
  display: none;
  margin-top: 35px;
}

/* 8. Full-width brand statement */

.statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  background: var(--forest);
}

.statement-image {
  min-height: 440px;
  background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1200&q=85");
  background-position: center;
  background-size: cover;
}

.statement-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px clamp(35px, 7vw, 105px);
}

.statement-content h2 {
  margin: 22px 0 0;
  color: var(--white);
  font-size: clamp(35px, 4vw, 52px);
  line-height: 1.27;
  letter-spacing: -0.025em;
}

.statement-content p {
  max-width: 420px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 2;
}

/* 9. Final call to action */

.final-cta {
  background: var(--ivory);
  text-align: center;
}

.final-cta-inner {
  max-width: 760px;
}

.final-cta h2 {
  margin: 20px 0;
  color: var(--forest);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.25;
}

.final-cta p {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 13px;
}

/* 10. Footer */

.site-footer {
  background: #11231f;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 70px;
  padding-top: 65px;
  padding-bottom: 60px;
}

.logo-light {
  color: var(--white);
}

.footer-brand p {
  max-width: 290px;
  margin-top: 22px;
  color: #b9c2bc;
  font-size: 12px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a {
  color: #c5cdc8;
  font-size: 11px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #a9b5ae;
  font-size: 9px;
}

/* 11. Tablet layout */

@media (max-width: 950px) {
  .navbar {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-cta {
    display: none;
  }

  .welcome-grid {
    gap: 50px;
  }

  .service-grid {
    gap: 18px;
  }

  .service-image {
    min-height: 220px;
  }

  .statement-content {
    padding: 55px 40px;
  }
}

/* 12. Mobile navigation and layout */

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .topbar-inner {
    min-height: 34px;
    font-size: 9px;
  }

  .navbar {
    min-height: 75px;
    position: relative;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 42px;
    min-height: 42px;
    font-size: 20px;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 11px 4px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 660px;
    min-height: 78svh;
  }

  .hero-image {
    background-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(15, 34, 29, 0.88),
      rgba(15, 34, 29, 0.53)
    );
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 64px);
  }

  .hero-content > p {
    max-width: 450px;
    font-size: 13px;
  }

  .hero-bottom {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .welcome-copy {
    padding-top: 0;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .desktop-link {
    display: none;
  }

  .mobile-link {
    display: inline-flex;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .service-image {
    min-height: 300px;
  }

  .service-info p {
    min-height: 0;
  }

  .statement {
    grid-template-columns: 1fr;
  }

  .statement-image {
    min-height: 320px;
  }

  .statement-content {
    padding: 65px 7%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 13. Small phones */

@media (max-width: 420px) {
  .container {
    width: 88%;
  }

  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-bottom > span {
    max-width: 60%;
  }

  .welcome-heading h2,
  .section-heading h2 {
    font-size: 34px;
  }

  .service-image {
    min-height: 240px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* 14. Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
