/* ============================================================
   GREAT LAKES COMPASS — Main Stylesheet
   ============================================================ */

/* Custom Properties */
:root {
  --white:      #FFFFFF;
  --cream:      #F4EFE3;
  --navy:       #1B2B4B;
  --navy-dark:  #111d33;
  --gray:       #333333;
  --gray-mid:   #666666;
  --gray-light: #E8E4DC;
  --blue:       #1A5276;
  --gold:       #B8963A;

  --font-serif: 'Times New Roman', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1160px;
  --header-h:  72px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; }

h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 1.1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; margin-bottom: .75rem; }

p { margin-bottom: 1rem; color: var(--gray-mid); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-label-light { color: #c4a45a; }

/* Background variants */
.section-white  { background: var(--white); }
.section-cream  { background: var(--cream); }
.section-navy   { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy p { color: #c8d6e8; }
.section-navy h2 { color: var(--white); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: .7rem 1.9rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  margin-top: 1.4rem;
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.75);
  margin-top: 2rem;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
  margin-top: .5rem;
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ============================================================
   HEADER
============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(27, 43, 75, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

#site-header.scrolled {
  background: rgba(17, 29, 51, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo {
  height: 58px;
  width: auto;
}

#main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#main-nav a {
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('primary-header.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 6rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 40, 0.55) 0%,
    rgba(10, 20, 40, 0.45) 60%,
    rgba(10, 20, 40, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  margin-bottom: .75rem;
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  letter-spacing: .03em;
  margin-bottom: 0;
}

/* Scroll hint arrow */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  animation: bounce 2.2s infinite;
}

.scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   INTRO CONTENT + GALLERY
============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.intro-text h2 { color: var(--navy); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}

.gallery-grid img:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
  z-index: 1;
  position: relative;
}

/* ============================================================
   ABOUT US
============================================================ */
.section-chart {
  position: relative;
  background: url('chart-background.jpg') center center / cover no-repeat;
}

.chart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 239, 227, 0.70);
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(27,43,75,.25);
}

.about-text .section-label { display: block; margin-bottom: .4rem; }
.about-text h2 { color: var(--navy); }
.about-text p { color: var(--gray); }

.memberships {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}

.membership-badge {
  display: inline-block;
  padding: .35rem .9rem;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============================================================
   CLIENTS
============================================================ */
.clients-text {
 /* max-width: 760px; */
  margin-bottom: 2.5rem;
}

.clients-text .section-label { display: block; margin-bottom: .4rem; }
.clients-text h2 { color: var(--navy); }

.gallery-grid-clients {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-grid-clients img {
  background: var(--gray-light);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   SERVICES
============================================================ */
.section-cream .section-header h2,
.section-cream h3 { color: var(--navy); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--gray-light);
}

.service-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-block-right { direction: rtl; }
.service-block-right > * { direction: ltr; }

.service-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 6px 30px rgba(0,0,0,.12);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { color: var(--white); margin-bottom: 1.5rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.contact-details li { color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.5; }
.contact-details strong { color: var(--white); display: block; margin-bottom: .15rem; }
.contact-details a { color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-details a:hover { color: var(--white); border-bottom-color: var(--white); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.form-group input,
.form-group textarea {
  padding: .7rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .95rem;
  transition: border-color .2s, background .2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
}

.form-group textarea { resize: vertical; }

.g-recaptcha { margin-top: .25rem; }

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: .85rem;
}

.footer-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  letter-spacing: .04em;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-contact p { margin-bottom: .5rem; color: rgba(255,255,255,.65); }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.1rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  display: flex;
  align-items: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}

.footer-bottom p { margin: 0; color: rgba(255,255,255,.38); }
.footer-credit a { color: rgba(255,255,255,.5); }
.footer-credit a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }

  .about-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; }

  .gallery-grid-clients { grid-template-columns: repeat(4, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  #main-nav.open { display: block; }

  #main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  #main-nav a {
    display: block;
    padding: .7rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .9rem;
  }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid-clients { grid-template-columns: repeat(3, 1fr); }


  .about-grid { grid-template-columns: 1fr; }
  .about-image img { max-width: 340px; }

  .service-block,
  .service-block-right {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-clients { grid-template-columns: repeat(2, 1fr); }


  .memberships { flex-direction: column; }
  .membership-badge { text-align: center; }
}
