/* =============================================
   Troy Young Theme — Main Stylesheet
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --navy:         #005b80;
  --navy-dark:    #0d1f2d;
  --teal:         #00a7a7;
  --teal-light:   rgba(0,167,167,0.10);
  --navy-light:   rgba(0,91,128,0.08);
  --navy-border:  rgba(0,91,128,0.12);
  --bg:           #f3f6f8;
  --bg-card:      #f0f5f8;
  --white:        #ffffff;
  --text-primary: #0d1f2d;
  --text-mid:     #3a5060;
  --text-muted:   #5a7080;
  --text-light:   #8aa0ae;
  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --radius:       8px;
  --radius-sm:    4px;
  --shadow:       0 2px 12px rgba(0,30,60,0.10);
  --max-width:    1200px;
  --side-pad:     48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal); }

/* ─── ACCENT LINE ─── */
.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ─── NAVIGATION ─── */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-border);
  height: 64px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 40px;
  height: auto;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Primary Nav */
.primary-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
}

.primary-navigation ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.primary-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--navy);
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
  transform: scaleX(1);
}

/* CTA Button in Nav */
.nav-cta-wrap .button {
  background: var(--navy);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta-wrap .button:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

/* ─── SITE CONTENT WRAPPER ─── */
.site-content {
  padding-top: 67px; /* nav height + accent line */
}

/* ─── BUTTONS ─── */
.btn,
.wp-block-button__link,
.wpcf7-submit {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(0,91,128,0.3);
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ─── HERO SECTION ─── */
.hero-section {
  background: var(--white);
  padding: 80px var(--side-pad) 96px;
  border-bottom: 1px solid var(--navy-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  min-height: 60vh;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}

.hero-section h1,
.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--navy); }

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Feature Cards */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,167,167,0.35);
  transform: translateY(-2px);
}

.feature-card.is-featured {
  background: var(--navy);
  border-color: var(--navy);
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 18px;
}

.feature-card.is-featured .feature-card-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.feature-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.feature-card.is-featured .feature-card-label { color: #fff; }

.feature-card-detail {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 300;
}
.feature-card.is-featured .feature-card-detail { color: rgba(255,255,255,0.6); }

/* ─── TRUST / CREDENTIALS BAR ─── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--navy-border);
  padding: 20px var(--side-pad);
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-bar-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 20px;
  border-right: 1px solid var(--navy-border);
}

.trust-bar-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-bar-items li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-bar-items li i {
  color: var(--teal);
  font-size: 14px;
}

/* ─── GENERIC SECTION WRAPPER ─── */
.ty-section {
  padding: 80px var(--side-pad);
}

.ty-section.bg-white { background: var(--white); }
.ty-section.bg-light { background: var(--bg); }
.ty-section.bg-navy  { background: var(--navy); }
.ty-section.bg-dark  { background: var(--navy-dark); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(0,167,167,0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 22px;
  transition: background 0.2s, color 0.2s;
}

.service-card:hover .service-card-icon {
  background: var(--teal-light);
  color: var(--teal);
}

.service-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── ABOUT / STATS SECTION ─── */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}

.about-stats {}

.stat-block {
  margin-bottom: 28px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.4;
  font-weight: 400;
}

.stat-divider {
  width: 32px;
  height: 2px;
  background: var(--teal);
  margin: 20px 0;
  opacity: 0.7;
}

.about-content {}

.about-quote-pull {
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 400;
  padding-left: 20px;
  border-left: 3px solid var(--teal);
}

.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 400;
}

.about-pillar i {
  color: var(--teal);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── QUOTE STRIP ─── */
.quote-strip {
  background: var(--navy);
  padding: 56px var(--side-pad);
}

.quote-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 96px;
  color: rgba(0,167,167,0.35);
  line-height: 0.75;
  flex-shrink: 0;
  margin-top: 10px;
  font-weight: 400;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  font-weight: 400;
}

.quote-attribution {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--white);
  padding: 80px var(--side-pad);
  text-align: center;
  border-top: 1px solid var(--navy-border);
}

.cta-section .section-eyebrow {
  justify-content: center;
}
.cta-section .section-eyebrow::before {
  display: none;
}

.cta-section .section-title { margin-bottom: 16px; }

.cta-section .section-subtitle {
  margin: 0 auto 36px;
}

.cta-meta {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.cta-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 400;
}
.cta-meta-item i { font-size: 18px; color: var(--teal); }

/* ─── CONTACT FORM ─── */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.wpcf7 label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-primary);
  transition: border-color 0.2s;
  margin-bottom: 20px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.wpcf7 textarea { min-height: 140px; resize: vertical; }

/* ─── STANDARD PAGE / POST CONTENT ─── */
.page-content,
.entry-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--side-pad);
}

.entry-header {
  margin-bottom: 40px;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-content .entry-content h2,
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.entry-content h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin: 32px 0 12px;
}

.entry-content p { margin-bottom: 20px; color: var(--text-muted); font-weight: 300; line-height: 1.85; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; color: var(--text-muted); }
.entry-content li { margin-bottom: 8px; line-height: 1.7; }
.entry-content strong { font-weight: 500; color: var(--text-primary); }
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(0,91,128,0.3); }
.entry-content a:hover { color: var(--teal); }
.entry-content blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-mid);
}

/* ─── SIDEBAR / WIDGETS ─── */
.widget-area { padding: 24px 0; }
.widget { margin-bottom: 40px; }
.widget-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--navy-border);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-dark);
  padding: 36px var(--side-pad);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo {
  width: 32px;
  height: auto;
  opacity: 0.7;
}

.footer-site-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.footer-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-navigation a {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-navigation a:hover { color: var(--teal); }

.footer-copyright {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

/* ─── MOBILE HAMBURGER MENU ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--navy-border);
  z-index: 198;
  padding: 24px var(--side-pad);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li { border-bottom: 1px solid var(--navy-border); }
.mobile-nav li:last-child { border: none; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-nav a:hover { color: var(--teal); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root {
    --side-pad: 32px;
  }
  .hero-section h1, .hero-title { font-size: 42px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --side-pad: 24px; }

  .primary-navigation { display: none; }
  .nav-cta-wrap { display: none; }
  .menu-toggle { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }
  .hero-section h1, .hero-title { font-size: 34px; }
  .hero-description { font-size: 15px; }
  .hero-visual { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-pillars { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .quote-strip-inner { flex-direction: column; gap: 16px; }
  .quote-mark { font-size: 64px; margin-top: 0; }

  .cta-meta { gap: 20px; flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-navigation ul { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-visual { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ─── WP ADMIN BAR FIX ─── */
.admin-bar .accent-line { top: 32px; }
.admin-bar .site-header { top: 35px; }
.admin-bar .site-content { padding-top: 99px; }

@media screen and (max-width: 782px) {
  .admin-bar .accent-line { top: 46px; }
  .admin-bar .site-header { top: 49px; }
  .admin-bar .site-content { padding-top: 113px; }
}

/* ─── WORDPRESS CORE CLASSES ─── */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 24px; display: block; }
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-light); margin-top: 8px; font-style: italic; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.sticky { border-left: 3px solid var(--teal); padding-left: 20px; }
.bypostauthor {}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
