@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --navy: #2e5a88;
  --gold: #d2b450;
  --gray: #9aa0a6;
  --white: #e8e7e6;
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cartesius Small Caps", "Roboto", sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 5rem 0;
}

.section-light {
  background: var(--white);
  color: var(--navy);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

/* =========================
   HEADER BASE (NEUTRAL LAYER)
========================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* =========================
   HEADER STATES (CONTROLLED BY JS)
========================= */

header.header-dark {
  background: var(--navy);
}

header.header-light {
  background: var(--white);
}

/* =========================
   GOLD FRAME (TOP + LEFT FADE)
========================= */

header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
        to right,
        rgba(210, 180, 80, 0.6),
        rgba(210, 180, 80, 0) 80%
      )
      top left / 100% 3px no-repeat,
    linear-gradient(
        to bottom,
        rgba(210, 180, 80, 0.6),
        rgba(210, 180, 80, 0) 80%
      )
      top left / 3px 100% no-repeat;
}

/* =========================
   NAV
========================= */

nav {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 2rem;
}

/* BRAND */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-brand img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 500;
}

/* =========================
   NAV LINK COLORS CONTROLLED BY STATE
========================= */

header.header-dark .nav-title,
header.header-dark .nav-links a {
  color: var(--white);
}

header.header-light .nav-title,
header.header-light .nav-links a {
  color: var(--navy);
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  transition: color 0.25s ease;
}

header .nav-links a {
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

header .nav-links a:hover {
  color: var(--gold);
  text-shadow:
    0 0 4px rgba(210, 180, 80, 0.45),
    0 0 8px rgba(210, 180, 80, 0.2);
}

/* MOBILE */
.nav-toggle {
  display: none;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: min(1100px, calc(100% - 4rem));
  margin: 0 auto;
}

/* =========================
   HERO
========================= */

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--gray);
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 500px;
  border-radius: 12px;
}

/* =========================
   SERVICES
========================= */

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 2rem;
}

/* =========================
   CONTACT
========================= */

.contact-info {
  margin: 1rem 0 2rem;
}

/* =========================
   FORM
========================= */

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font: inherit;
  background: transparent;
  color: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* =========================
   BUTTON
========================= */

button {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

button:hover {
  background: var(--gold);
  color: #111;
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  #hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .container {
    width: calc(100% - 2rem);
  }

  .hero-image img {
    max-width: 360px;
  }
}
