/*
Theme Name: Title Town Lexington SEO 1.4.5
Theme URI: https://example.com/title-town-lexington-editable
Author: OpenAI
Author URI: https://openai.com/
Description: A polished, editable one-page WordPress theme for Title Town, a Lexington, Kentucky title search and report company. Includes Customizer controls for copy, images, buttons, contact info, and legal links.
Version: 1.4.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: title-town-lexington-editable
Tags: one-page, custom-logo, customizer, featured-images, full-width-template, business
*/

:root {
  --tt-navy: #082b4d;
  --tt-navy-deep: #031d36;
  --tt-ink: #0a2b50;
  --tt-blue-soft: #284965;
  --tt-muted: #586879;
  --tt-gold: #b69757;
  --tt-paper: #ffffff;
  --tt-cream: #f8f6f1;
  --tt-section-bg: #f8f7f3;
  --tt-line: rgba(8, 43, 77, .13);
  --tt-shadow: 0 24px 60px rgba(8, 43, 77, .14);
  --tt-serif: Georgia, 'Times New Roman', serif;
  --tt-sans: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tt-ink);
  background: #fff;
  font-family: var(--tt-sans);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header.is-sticky { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.screen-reader-text,
.skip-link {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  left: 16px;
  top: 16px;
  z-index: 100000;
  background: #fff;
  color: var(--tt-navy);
  padding: .75rem 1rem;
  border: 2px solid var(--tt-navy);
  box-shadow: var(--tt-shadow);
}

.tt-container {
  width: min(100% - 72px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--tt-section-bg);
  border-top: 1px solid rgba(8,43,77,.12);
  border-bottom: 0;
  box-shadow: none;
}
.header-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.logo-primary,
.custom-logo { width: 280px; max-width: 100%; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}
.primary-menu,
.primary-menu ul,
.fallback-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 3.5vw, 56px);
}
.primary-menu a,
.fallback-menu a {
  color: var(--tt-navy-deep);
  font-size: clamp(15px, 1.25vw, 17px);
  letter-spacing: .055em;
  font-weight: 650;
  line-height: 1;
  padding: 14px 0;
  position: relative;
  white-space: nowrap;
}
.primary-menu a::after,
.fallback-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.primary-menu a:hover::after,
.primary-menu a:focus::after,
.fallback-menu a:hover::after,
.fallback-menu a:focus::after,
.fallback-menu .is-current::after { transform: scaleX(1); }
.header-cta { justify-self: end; }

/*
 * Desktop header alignment:
 * - The navigation remains centered on the page.
 * - The logo and CTA sit at equal visual distances from the navigation.
 */
@media (min-width: 981px) {
  .header-inner { position: relative; }

  .site-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(500px, 44vw, 620px);
    transform: translate(-50%, -50%);
  }

  .brand-link {
    position: absolute;
    top: 50%;
    right: calc(50% + clamp(250px, 22vw, 310px) + clamp(32px, 3vw, 56px));
    transform: translateY(-50%);
  }

  .header-cta {
    position: absolute;
    top: 50%;
    left: calc(50% + clamp(250px, 22vw, 310px) + clamp(32px, 3vw, 56px));
    transform: translateY(-50%);
  }

  .logo-primary,
  .custom-logo {
    width: clamp(190px, 17vw, 240px);
  }

  .primary-menu,
  .fallback-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: clamp(18px, 2.2vw, 38px);
  }

  .primary-menu > li,
  .fallback-menu > a {
    min-width: 0;
    text-align: center;
  }
}

.header-cta,
.tt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0b345f 0%, var(--tt-navy-deep) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(8, 43, 77, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.header-cta:hover,
.tt-button:hover,
.header-cta:focus,
.tt-button:focus {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 43, 77, .28);
}
.tt-button .arrow { margin-left: 14px; font-size: 18px; line-height: .8; }

/* Preserve vertical centering when the desktop header CTA is hovered or focused. */
@media (min-width: 981px) {
  .header-cta:hover,
  .header-cta:focus {
    transform: translateY(calc(-50% - 1px));
  }
}

/* Mirrored split hero: text left, image right. */
.hero-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 525px;
  overflow: hidden;
  background: var(--tt-section-bg);
}
.hero-panel {
  display: flex;
  align-items: center;
  padding: 56px 6vw 54px;
  background: var(--tt-section-bg);
}
.hero-content {
  width: 100%;
  max-width: 710px;
  margin: 0 auto;
  text-align: left;
}
.hero-split h1 {
  font-family: var(--tt-serif);
  font-size: clamp(3rem, 5.85vw, 5.05rem);
  line-height: .98;
  letter-spacing: -.026em;
  margin: 0;
  color: var(--tt-navy-deep);
  font-weight: 700;
}
.gold-rule {
  width: 58px;
  height: 2px;
  margin: 31px 0 26px;
  background: var(--tt-gold);
}
.hero-copy {
  max-width: 425px;
  font-size: clamp(1.03rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: .018em;
  margin: 0 0 22px;
  color: #0b2b4f;
}
.hero-image-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--tt-navy-deep);
}
.hero-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 525px;
  object-fit: cover;
  object-position: 62% center;
}

.service-band {
  background: linear-gradient(180deg, #f8f7f3 0%, #fff 100%);
  padding: 44px 0 38px;
  text-align: center;
  border-top: 1px solid rgba(8,43,77,.05);
  border-bottom: 1px solid rgba(8,43,77,.05);
}
.service-card { max-width: 560px; margin: 0 auto; }
.service-icon { width: 92px; margin: 0 auto 14px; }
.service-card h2 {
  font-family: var(--tt-serif);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.18;
  margin: 0 0 6px;
  color: var(--tt-navy-deep);
}
.service-card p {
  margin: 0 auto;
  max-width: 515px;
  color: var(--tt-ink);
  font-size: .98rem;
  letter-spacing: .018em;
}

.about-split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 330px;
  overflow: hidden;
  background: var(--tt-section-bg);
}
.map-panel {
  position: relative;
  overflow: hidden;
  background: var(--tt-navy-deep);
}
.map-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-panel {
  display: flex;
  align-items: center;
  padding: 52px 7vw 50px 6vw;
  background: var(--tt-section-bg);
}
.about-inner { max-width: 470px; }
.about-panel h2 {
  font-family: var(--tt-serif);
  font-size: clamp(2.15rem, 3.1vw, 3.05rem);
  line-height: 1.03;
  margin: 0 0 20px;
  color: var(--tt-navy-deep);
  font-weight: 700;
  letter-spacing: -.02em;
}
.about-panel p {
  margin: 0 0 18px;
  color: var(--tt-ink);
  max-width: 430px;
  font-size: 1rem;
  line-height: 1.56;
  letter-spacing: .018em;
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--tt-navy);
  border-radius: 3px;
  color: var(--tt-navy);
  background: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .095em;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.outline-button .arrow { margin-left: 20px; font-size: 18px; }
.outline-button:hover,
.outline-button:focus { background: var(--tt-navy); color: #fff; transform: translateY(-1px); }

.skyline-strip {
  height: 156px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.site-footer {
  background: linear-gradient(180deg, var(--tt-navy) 0%, var(--tt-navy-deep) 100%);
  color: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 34px 70px;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  padding: 52px 0 42px;
}
.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.footer-logo { width: 238px; margin-bottom: 8px; }
.footer-tagline {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  letter-spacing: .025em;
}
.footer-heading {
  margin: 0 0 18px;
  color: #fff;
  text-transform: uppercase;
  font-size: .86rem;
  letter-spacing: .17em;
  font-weight: 800;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 7px; }
.footer-list a,
.contact-list a { color: rgba(255,255,255,.9); }
.footer-list a:hover,
.contact-list a:hover,
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  color: rgba(255,255,255,.9);
  margin-bottom: 15px;
}
.contact-icon { width: 19px; height: 19px; opacity: .95; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.28);
  padding: 17px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.86);
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 15px; }
.footer-legal a { color: rgba(255,255,255,.86); }
.footer-legal span { opacity: .7; }

.entry-shell {
  width: min(100% - 72px, 880px);
  margin: 70px auto;
}
.entry-title {
  font-family: var(--tt-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--tt-navy-deep);
}
.entry-content { color: #263c55; }
.entry-content a { color: var(--tt-navy); text-decoration: underline; }

@media (max-width: 980px) {
  body.admin-bar .site-header.is-sticky { top: 46px; }
  .tt-container { width: min(100% - 40px, 920px); }

  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 22px 0 20px;
  }
  .brand-link,
  .site-nav,
  .header-cta { justify-self: center; }
  .logo-primary,
  .custom-logo { width: 250px; max-width: none; }
  .site-nav {
    position: static;
    width: 100%;
    transform: none;
  }
  .fallback-menu,
  .primary-menu,
  .primary-menu ul {
    display: flex;
    width: auto;
    gap: 20px 34px;
  }

  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel {
    order: 1;
    justify-content: center;
    padding: 48px 40px;
  }
  .hero-content { max-width: 720px; }
  .hero-image-panel {
    order: 2;
    height: clamp(300px, 48vw, 430px);
  }
  .hero-image-panel img {
    min-height: 0;
    object-position: 68% center;
  }

  .about-split { grid-template-columns: 1fr; }
  .map-panel { min-height: 280px; }
  .map-panel img { object-position: left center; }
  .about-panel { padding: 46px 40px; justify-content: center; }
}

@media (max-width: 680px) {
  .tt-container,
  .entry-shell { width: min(100% - 28px, 620px); }
  .site-nav { width: 100%; }
  .fallback-menu,
  .primary-menu,
  .primary-menu ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  .primary-menu a,
  .fallback-menu a { font-size: 15px; }
  .header-cta { width: min(100%, 280px); }

  .hero-panel { padding: 42px 24px; }
  .hero-split h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .hero-image-panel { height: 290px; }
  .hero-image-panel img { object-position: 72% center; }

  .service-band { padding: 38px 0; }
  .about-panel { padding: 42px 24px; }
  .skyline-strip { height: 118px; }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    padding: 42px 0 34px;
  }
  .footer-logo { width: 220px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 26px;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .footer-legal a { display: inline-block; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* SEO service content */
.seo-services {
  margin-top: 64px;
  padding-top: 54px;
  padding-bottom: 20px;
  border-top: 1px solid var(--tt-line);
  text-align: left;
}
.seo-services-intro {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--tt-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.seo-services-intro h2,
.seo-service-area h2 {
  margin: 0 0 14px;
  color: var(--tt-navy-deep);
  font-family: var(--tt-serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.seo-services-intro > p:last-child,
.seo-service-area p {
  margin: 0;
  color: var(--tt-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.seo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.seo-service-item {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--tt-line);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(8, 43, 77, .06);
}
.seo-service-item h3 {
  margin: 0 0 9px;
  color: var(--tt-navy-deep);
  font-family: var(--tt-serif);
  font-size: 1.2rem;
  line-height: 1.24;
}
.seo-service-item p {
  margin: 0;
  color: var(--tt-muted);
  font-size: .93rem;
  line-height: 1.58;
}



/*
 * Desktop viewport hero:
 * Keep the split hero aligned with the bottom edge of the visible browser
 * window after the 132px desktop header. The 525px minimum protects the
 * content on unusually short desktop windows.
 */
@media (min-width: 981px) {
  .hero-split {
    height: calc(100vh - 132px);
    height: calc(100svh - 132px);
    min-height: 525px;
  }

  .hero-panel,
  .hero-image-panel,
  .hero-image-panel img {
    height: 100%;
  }

  .hero-image-panel img {
    min-height: 0;
  }
}

/* Fade-and-rise reveal for all service-band content.
   JavaScript adds .reveal-ready only after the page loads, so content remains
   visible if JavaScript is unavailable. */
.service-band .service-reveal.reveal-ready,
.service-band .seo-service-item.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.service-band .service-reveal.reveal-ready.is-visible,
.service-band .seo-service-item.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Fade-and-rise reveal for the two halves of the About section. */
.about-split .about-reveal.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.about-split .about-reveal.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-split .about-panel.about-reveal.reveal-ready {
  transition-delay: 120ms;
}

.seo-service-grid .seo-service-item:nth-child(2) { transition-delay: 80ms; }
.seo-service-grid .seo-service-item:nth-child(3) { transition-delay: 160ms; }
.seo-service-grid .seo-service-item:nth-child(4) { transition-delay: 240ms; }
.seo-service-grid .seo-service-item:nth-child(5) { transition-delay: 320ms; }
.seo-service-grid .seo-service-item:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .service-band .service-reveal.reveal-ready,
  .service-band .seo-service-item.reveal-ready,
  .about-split .about-reveal.reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.seo-service-area {
  max-width: 920px;
  margin: 38px auto 0;
  padding: 30px 34px;
  text-align: center;
  background: rgba(182, 151, 87, .08);
  border: 1px solid rgba(182, 151, 87, .2);
  border-radius: 6px;
}
.seo-service-area h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}
.skyline-strip {
  overflow: hidden;
  background: var(--tt-navy-deep);
}
.skyline-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  .seo-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .seo-services {
    margin-top: 48px;
    padding-top: 42px;
  }
  .seo-service-grid {
    grid-template-columns: 1fr;
  }
  .seo-service-area {
    padding: 26px 20px;
  }
}

