/* =========================================================
   GAMMAPOINT HOMEPAGE
   ========================================================= */

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

:root {
  --bg:           #F0EDE4;
  --bg-alt:       #E8E4DC;
  --bg-dark:      #DDD9D2;
  --text:         #1C1A14;
  --text-muted:   #6A6659;
  --accent:       #198879;
  --accent-blue:  #185FA5;
  --border:       #CCC9C0;
  --font:         'EB Garamond', Georgia, serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --max:          1160px;
  --pad:          clamp(24px, 5vw, 72px);
}

html { scroll-behavior: smooth; }

body.gp-homepage {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.gp-wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.gp-section-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 500;
  margin-bottom: 8px;
}

.gp-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.gp-section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.gp-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.gp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}

.gp-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}
.gp-logo img { display: block; }
.gp-footer-logo { text-decoration: none; display: flex; align-items: center; }
.gp-footer-logo img { display: block; }

.gp-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.gp-nav-links a {
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s;
}
.gp-nav-links a:hover { opacity: 1; }

.gp-est {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.gp-nav-cta {
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.gp-nav-cta:hover { opacity: .85; }

/* =========================================================
   HERO
   ========================================================= */
.gp-hero {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}

.gp-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Badge */
.gp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(25,136,121,.1);
  border: 1px solid rgba(25,136,121,.3);
  color: var(--accent);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 24px;
}
.gp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Headline */
.gp-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.01em;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.gp-hero-h1 em {
  font-style: italic;
  color: var(--accent);
}

.gp-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.gp-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.gp-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity .15s;
}
.gp-btn-primary:hover { opacity: .85; }

.gp-btn-secondary {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity .15s;
}
.gp-btn-secondary:hover { opacity: .75; }

/* Phones cluster */
.gp-hero-phones {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  padding-bottom: 24px;
}

.gp-phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.gp-phone-card--left  { transform: rotate(-4deg) translateY(18px); z-index: 1; margin-right: -12px; }
.gp-phone-card--mid   { transform: rotate(0deg) translateY(0px);   z-index: 3; }
.gp-phone-card--right { transform: rotate(4deg) translateY(18px);  z-index: 1; margin-left: -12px; }

.gp-phone-shell {
  border: 1.5px solid var(--border-dark, #C8BFB0);
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(28,25,23,.14), 0 2px 8px rgba(28,25,23,.08);
  position: relative;
}
.gp-phone-card--mid .gp-phone-shell {
  box-shadow: 0 16px 48px rgba(28,25,23,.22), 0 4px 12px rgba(28,25,23,.1);
}
.gp-phone-shell img { display: block; width: 100%; height: auto; }

.gp-phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.gp-phone-lbl {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.gp-trust {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.gp-trust-inner {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  padding-block: 18px;
}
.gp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.gp-trust-item i {
  color: var(--accent);
  font-size: 17px;
}

/* =========================================================
   SHARED SECTION
   ========================================================= */
.gp-section {
  padding-block: clamp(48px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   APP CARDS
   ========================================================= */
.gp-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.gp-app-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}

.gp-app-card-top { padding: 28px 28px 20px; }

.gp-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.gp-app-icon i { color: #fff; font-size: 26px; }
.gp-app-icon-blue { background: var(--accent-blue); }
.gp-app-icon-img { background: none; }
.gp-app-icon-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }

.gp-app-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.15;
}

.gp-app-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gp-app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gp-app-stars { color: #d4a017; font-size: 15px; }
.gp-app-year  { font-size: 13px; color: var(--text-muted); }

.gp-app-card-footer {
  background: var(--bg-alt);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.gp-app-badge {
  font-size: 12px;
  color: var(--accent);
  background: rgba(25,136,121,.12);
  padding: 4px 10px;
  border-radius: 9999px;
}
.gp-app-badge-blue {
  color: var(--accent-blue);
  background: rgba(24,95,165,.12);
}

.gp-app-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}
.gp-app-link:hover { color: var(--text); }

/* =========================================================
   FEATURES MINI GRID
   ========================================================= */
.gp-feats-section { background: var(--bg-alt); }

.gp-feats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.gp-feat {
  padding: 22px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.gp-feat i {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.gp-feat h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.2;
}
.gp-feat p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   TESTIMONIAL QUOTE
   ========================================================= */
.gp-quote {
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  max-width: 700px;
  margin-top: 28px;
}
.gp-quote blockquote {
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}
.gp-quote cite {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
}

/* =========================================================
   BLOG CARDS
   ========================================================= */
.gp-blog-section { background: var(--bg-alt); }

.gp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.gp-post {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: opacity .15s;
}
.gp-post:hover { opacity: .75; }

.gp-post-tag {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
  margin-bottom: 8px;
}
.gp-post h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.gp-post-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.gp-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-block: 24px;
}
.gp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gp-footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.gp-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.gp-footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.gp-footer-links a:hover { color: var(--text); }

/* =========================================================
   HAMBURGER MENU
   ========================================================= */
.gp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.gp-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

.gp-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px var(--pad) 24px;
  gap: 4px;
}
.gp-mobile-nav.is-open { display: flex; }
.gp-mobile-nav a,
.gp-mobile-nav-list li a {
  font-family: var(--font);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  padding-block: 10px;
  border-bottom: 1px solid var(--border);
  opacity: .85;
  display: block;
}
.gp-mobile-nav-list { list-style: none; }
.gp-mobile-nav-list li:last-child a { border-bottom: none; }

/* =========================================================
   TABLET  ≤ 1024px
   ========================================================= */
@media (max-width: 1024px) {
  .gp-feats-grid   { grid-template-columns: repeat(2, 1fr); }
  .gp-blog-grid    { grid-template-columns: repeat(2, 1fr); }
  .gp-hero-phones  { display: none; }
  .gp-hero-inner   { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE  ≤ 700px
   ========================================================= */
@media (max-width: 700px) {
  .gp-nav-links  { display: none; }
  .gp-est        { display: none; }
  .gp-nav-cta    { display: none; }
  .gp-menu-toggle { display: flex; }

  .gp-apps-grid  { grid-template-columns: 1fr; }
  .gp-feats-grid { grid-template-columns: 1fr; }
  .gp-blog-grid  { grid-template-columns: 1fr; }

  .gp-footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =========================================================
   INNER PAGES (page.php / single.php / index.php)
   ========================================================= */
.gp-site { min-height: 100vh; display: flex; flex-direction: column; }

.gp-page-content {
  flex: 1;
  padding-block: clamp(40px, 6vw, 80px);
}

.gp-page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}

.gp-page-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.gp-page-body {
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
}
.gp-page-body h2, .gp-page-body h3 { font-family: var(--font-display); font-weight: 400; margin: 1.5em 0 .5em; }
.gp-page-body p  { margin-bottom: 1.25em; }
.gp-page-body a  { color: var(--accent); }
.gp-page-body img { max-width: 100%; height: auto; }

/* WordPress block buttons styled to match site */
.gp-page-body .wp-block-button__link,
.wp-block-button__link {
  background: var(--accent) !important;
  color: #fff !important;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 9999px !important;
  text-decoration: none;
  border: none;
  transition: opacity .15s;
}
.gp-page-body .wp-block-button__link:hover,
.wp-block-button__link:hover { opacity: .85; }

/* Post navigation */
.gp-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.gp-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 48%;
}
.gp-post-nav-next { text-align: right; margin-left: auto; }
.gp-post-nav-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gp-post-nav-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
  transition: color .15s;
}
.gp-post-nav-link:hover .gp-post-nav-title { color: var(--accent); }

/* Post contact strip */
.gp-post-contact {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: 10px;
  max-width: 720px;
  font-size: 16px;
  color: var(--text-muted);
}
.gp-post-contact a { color: var(--accent); text-decoration: none; }
.gp-post-contact a:hover { text-decoration: underline; }

.gp-archive-post {
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
.gp-archive-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}
.gp-archive-title a { color: var(--text); text-decoration: none; }
.gp-archive-title a:hover { color: var(--accent); }
.gp-archive-excerpt { font-size: 16px; color: var(--text-muted); margin-top: 10px; line-height: 1.65; }
.gp-pagination { margin-top: 40px; }

/* =========================================================
   APP PAGE TEMPLATES (ExtraMile / Walk Buddy)
   ========================================================= */
.gp-app-hero {
  padding-block: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
}

.gp-app-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.gp-app-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.gp-app-eyebrow-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.gp-app-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.gp-app-h1 em { font-style: italic; color: var(--accent); }

.gp-app-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.gp-app-ctas { margin-bottom: 36px; }

.gp-app-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.gp-app-stat { display: flex; flex-direction: column; gap: 3px; }
.gp-app-stat-value { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.gp-app-stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: .02em; }

.gp-app-hero-phone { flex-shrink: 0; }
.gp-app-hero-phone .gp-phone-shell {
  box-shadow: 0 16px 48px rgba(28,25,23,.18), 0 4px 12px rgba(28,25,23,.08);
}

.gp-privacy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-top: 28px;
}
.gp-privacy-points-list { display: flex; flex-direction: column; }
.gp-privacy-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}
.gp-privacy-point:first-child { border-top: 1px solid var(--border); }
.gp-privacy-point-num { font-size: 11px; color: var(--border-dark, #A8A49C); padding-top: 2px; }

.gp-app-cta-section { text-align: center; }
.gp-cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 20px;
  display: inline-block;
}

@media (max-width: 860px) {
  .gp-app-hero-inner { grid-template-columns: 1fr; }
  .gp-app-hero-phone { display: none; }
  .gp-privacy-row    { grid-template-columns: 1fr; }
}

