/* =========================================================
   Edge Messaging — styles.css
   ========================================================= */

:root {
  /* Brand palette (pulled from edgesquares-color logo) */
  --brand-navy:      #1a4d7c;   /* dominant dark blue */
  --brand-navy-deep: #133a5e;   /* deeper shade for depth */
  --brand-blue:      #2a7fb8;   /* lighter blue accent */
  --brand-blue-soft: #4a9dd4;   /* hover / highlight */

  --bg:            var(--brand-navy-deep);
  --bg-alt:        var(--brand-navy);
  --bg-light:      #f4f7fa;
  --text:          #ffffff;
  --text-dim:      #ddeaf5;
  --text-dark:     #1a2b3d;
  --text-dark-dim: #4a5d72;
  --accent:        var(--brand-blue);
  --border:        rgba(255,255,255,0.12);

  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
}

/* --- Reset / base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 58, 94, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo img { max-height: 42px; width: auto; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--brand-blue);
}

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
  color: var(--text);
  background:
    linear-gradient(rgba(19, 58, 94, 0.78), rgba(10, 30, 50, 0.88)),
    url('assets/edgeoffice.png') center center / cover no-repeat,
    var(--brand-navy-deep);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-mark {
  width: min(460px, 85%);
  margin: 0 auto 32px;
  opacity: 0.9;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  color: var(--text);
  text-transform: uppercase;
}
.hero-copy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 40px;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  padding: 14px 36px;
  border: 2px solid var(--text);
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--text);
  opacity: 1;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}
.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-mark {
  width: 90px;
  margin: 0 auto 24px;
}
.tagline {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 8px;
}
.section-title {
  font-size: 40px;
  color: var(--brand-navy);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 36px;
  margin-top: 40px;
}
.service {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid #e5e5e5;
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(19, 58, 94, 0.15);
  border-top-color: var(--brand-navy);
}
.service h4 {
  font-size: 20px;
  color: var(--brand-navy);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-meta {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dark-dim);
  margin: 0 0 18px;
  min-height: 1.2em;
  text-transform: uppercase;
}
.service h5 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.service p:last-child {
  color: var(--text-dark-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --- Contact --- */
.contact {
  padding: 110px 0;
  text-align: center;
  background:
    linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  border-top: 1px solid var(--border);
}
.contact-mark {
  width: 110px;
  margin: 0 auto 28px;
  opacity: 0.85;
}
.contact h2 {
  font-size: 46px;
  margin-bottom: 10px;
}
.contact-sub {
  font-style: italic;
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 30px;
}
.contact-info {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.contact-info .dot { color: var(--text-dim); }
.contact-info a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.contact-info a:hover {
  opacity: 1;
  border-bottom-color: var(--text);
}

/* --- Footer --- */
.site-footer {
  padding: 26px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand-navy-deep);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 300px; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 0;
  }

  .hero {
    min-height: 85vh;
    padding: 60px 0;
  }
  .eyebrow { font-size: 18px; }
  .services { padding: 70px 0; }
  .section-title { font-size: 32px; }
  .contact { padding: 80px 0; }
  .contact h2 { font-size: 36px; }
  .contact-info { font-size: 20px; gap: 10px; }
}


