/* =========================================================
   Goodman Ortega Consulting — brand stylesheet
   Palette: deep navy #0a2a5e, warm cream #f8f4ea, ink #10161f
   Fonts:   Fraunces (serif display), Inter (sans body)
   ========================================================= */

:root {
  --navy:        #0a2a5e;
  --navy-800:    #0d3572;
  --navy-100:    #e6ecf6;
  --cream:       #f8f4ea;
  --cream-2:     #f2ecda;
  --ink:         #10161f;
  --ink-2:       #3a4453;
  --muted:       #6b7383;
  --line:        #e2dbc7;
  --white:       #ffffff;
  --accent:      #b3894d;   /* warm brass accent */

  --font-serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container:   1180px;
  --radius:      6px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 2px rgba(10, 42, 94, 0.06);
  --shadow-md:   0 12px 28px -12px rgba(10, 42, 94, 0.22);

  --ease:        cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- Reusable pieces ---------- */

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 22ch;
}

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-800); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; padding: 15px; }

/* ---------- Top strip ---------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  gap: 24px;
  padding: 8px 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.topbar__item {
  color: rgba(255, 255, 255, .85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__item:hover { color: #fff; }

/* ---------- Header / nav ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 42, 94, .08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.brand__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 500; color: var(--navy); font-size: 18px; letter-spacing: -0.01em; }
.brand__sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav__list {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
  align-items: center;
}
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__list .nav__cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius);
}
.nav__list .nav__cta:hover { background: var(--navy-800); color: var(--white); }
.nav__list .nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(720px, 78vh);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__image {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 22, 46, .55) 0%, rgba(10, 22, 46, .78) 100%),
    linear-gradient(90deg, rgba(10, 22, 46, .8) 0%, rgba(10, 22, 46, .3) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 140px) 0;
  max-width: 780px;
}
.hero__title {
  font-size: clamp(36px, 5.4vw, 68px);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.9);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section--tint {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { margin-bottom: 56px; max-width: 60ch; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-grid__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-grid__image img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-grid__text .lede { margin-bottom: 1.2em; }
.about-grid__text .btn { margin-top: 12px; }

/* ---------- Services cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 28px 26px 30px; }
.card__title { font-size: 20px; margin-bottom: 10px; }
.card__body p { color: var(--ink-2); margin: 0; }

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: 900px;
}
.team__member { text-align: left; }
.team__photo {
  width: 220px; height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team__name { font-size: 24px; margin-bottom: 4px; }
.team__role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}
.team__bio { color: var(--ink-2); max-width: 42ch; }

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.project {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__media { aspect-ratio: 16 / 10; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__body { padding: 28px; }
.project__title {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.project__body p { color: var(--ink-2); margin: 0; }

/* ---------- Contact ---------- */

.contact-section { background: var(--navy); color: var(--white); }
.contact-section .eyebrow { color: rgba(255, 255, 255, .8); }
.contact-section .section-title { color: var(--white); }
.contact-section .lede { color: rgba(255, 255, 255, .8); }
.contact-section a { color: var(--white); }
.contact-section a:hover { color: rgba(255, 255, 255, .8); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact-details {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.contact-details li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 12px; }
.contact-details__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .6);
  font-weight: 600;
}
.contact-details a, .contact-details span:last-child { color: var(--white); }

.contact-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
}
.field__optional { text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.5); font-weight: 400; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: var(--white);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-form .btn--primary {
  background: var(--white);
  color: var(--navy);
  margin-top: 6px;
}
.contact-form .btn--primary:hover {
  background: var(--cream);
  color: var(--navy);
}
.contact-form__note {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin: 4px 0 0;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  background: #071e42;
  color: rgba(255, 255, 255, .7);
  padding: 40px 0 28px;
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__logo { width: 42px; height: 42px; border-radius: 4px; }
.footer__name { color: var(--white); font-family: var(--font-serif); font-size: 16px; margin: 0; }
.footer__meta { margin: 2px 0 0; color: rgba(255, 255, 255, .55); font-size: 13px; }
.footer__nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer__nav a { color: rgba(255, 255, 255, .75); font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__copy {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid__image { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; gap: 14px; font-size: 12px; }

  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .22s var(--ease), visibility .22s;
    box-shadow: var(--shadow-md);
  }
  .nav__list.is-open {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  }
  .nav__list li { width: 100%; }
  .nav__list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(10, 42, 94, .08);
    font-size: 16px;
  }
  .nav__list a::after { display: none; }
  .nav__list li:last-child a { border-bottom: none; }
  .nav__list .nav__cta { text-align: center; margin-top: 10px; padding: 12px 18px; }

  .team__photo { width: 180px; height: 180px; }
  .contact-form { padding: 22px; }
  .contact-details li { grid-template-columns: 80px 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
