/* ===== Winter Works Consulting — Global Styles (logo-matched) ===== */
:root {
  --navy: #1F5B9C;         /* primary dark blue — from "WINTER" */
  --navy-dark: #184A80;    /* deeper shade for footer/hover */
  --light-blue: #8BB9E2;   /* light blue — from "WORKS" */
  --accent: #1F5B9C;       /* accent = primary blue for cohesion */
  --accent-hover: #184A80;
  --bg: #ffffff;
  --text: #1c2532;
  --muted: #5a6577;
  --border: #dde6f1;
  --soft-bg: #f2f7fc;      /* very light blue tint for alt sections */
}

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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
header {
  border-bottom: 3px solid var(--light-blue);
  background: #fff;
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.logo img { height: 60px; width: auto; }
.logo-fallback {
  font-size: 20px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.5px;
}
nav ul { list-style: none; display: flex; gap: 28px; }
nav a {
  color: var(--navy); font-weight: 700; font-size: 15px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
nav a:hover { color: var(--light-blue); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0;
}
.hero .container {
  display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 40px; line-height: 1.15; margin-bottom: 18px; }
.hero-text h1 .accent-word { color: var(--light-blue); }
.hero-text p { font-size: 18px; color: #dbe8f6; max-width: 520px; }

/* Hero photo — squared profile crop */
.hero-photo {
  flex: 0 0 340px;             /* suits the squarer profile photo */
  height: 360px;               /* near-square frame */
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(139,185,226,.5);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-blue); font-size: 14px; text-align: center; padding: 20px;
  overflow: hidden;
}
.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 25%; /* keeps your face well-framed */
  border-radius: 6px;
}

/* ===== Sections ===== */
section { padding: 64px 0; }
section h2 {
  color: var(--navy); font-size: 30px; margin-bottom: 8px;
}
.section-rule {
  width: 56px; height: 4px; background: var(--light-blue);
  margin: 12px 0 28px;
}

.alt-bg { background: var(--soft-bg); }

/* Services list */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px; margin-top: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--border);
  border-top: 4px solid var(--light-blue);
  padding: 22px 24px; border-radius: 4px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover {
  box-shadow: 0 10px 26px rgba(31,91,156,.14);
  transform: translateY(-2px);
}
.service-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ===== Global by Design book feature (homepage) ===== */
.book-feature-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.book-thumb {
  flex: 0 0 140px;             /* small thumbnail size */
  display: block;
}
.book-thumb img {
  width: 140px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(31,91,156,.22);
  transition: transform .2s ease;
}
.book-thumb:hover img { transform: translateY(-3px); }
.book-feature-text { flex: 1; min-width: 260px; }
.book-feature-text p { font-size: 17px; margin-bottom: 8px; }

/* Contact */
.contact-cta { text-align: center; }
.btn {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 14px 30px; border-radius: 4px; font-weight: 700;
  letter-spacing: 0.3px; margin-top: 12px;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }

/* Light-blue button variant (optional secondary actions) */
.btn-alt { background: var(--light-blue); color: var(--navy-dark); }
.btn-alt:hover { background: #77a9d6; color: #fff; }

/* ===== Book page ===== */
.book-layout { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.book-cover { flex: 0 0 300px; }
.book-cover img { border-radius: 6px; box-shadow: 0 14px 34px rgba(31,91,156,.24); }
.book-info { flex: 1; min-width: 300px; }
.retailers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.retailers .btn { margin-top: 0; }

.endorsements { margin-top: 24px; }
.endorsement {
  border-left: 4px solid var(--light-blue);
  background: var(--soft-bg); padding: 8px 8px 8px 0; margin-bottom: 24px;
  border-radius: 4px;
}
.endorsement img { border-radius: 4px; }

/* ===== Press page ===== */
.press-item {
  border-bottom: 1px solid var(--border); padding: 22px 0;
}
.press-item .date { color: var(--muted); font-size: 14px; }
.press-item h3 { color: var(--navy); font-size: 20px; margin: 4px 0 6px; }

/* ===== About page ===== */
.about-layout { display: flex; gap: 48px; flex-wrap: wrap; }
.about-photo { flex: 0 0 300px; }
.about-photo img { border-radius: 6px; }
.about-photo .placeholder {
  height: 360px; background: var(--soft-bg); border: 1px solid var(--border);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; padding: 20px;
}
.about-bio { flex: 1; min-width: 300px; }
.about-bio p { margin-bottom: 16px; }

.companies {
  margin-top: 20px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px 24px;
  list-style: none;
}
.companies li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  color: var(--navy); font-weight: 700;
}

/* ===== Footer ===== */
footer {
  background: var(--navy-dark); color: #c5d8ee;
  text-align: center; padding: 26px 0; font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; gap: 14px; }
  nav ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hero-text h1 { font-size: 30px; }
}

/* ===== Nav book thumbnail ===== */
.nav-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-book img {
  height: 26px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(31,91,156,.35);
}

/* ===== Services: 3 on top row, 2 centered on bottom row ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Every card spans 2 of the 6 columns = 3 cards per row */
.services-grid .service-card {
  grid-column: span 2;
}

/* Nudge the last two cards inward so they sit centered */
.services-grid .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.services-grid .service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* Equal-height cards */
.services-grid .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Tablet: 2 across --- */
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }
}

/* --- Phone: 1 across --- */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}