/* ==========================================
   Turn Ready Property Services Design System
   components.css
========================================== */

/* Announcement Bar */
.announcement {
  background: var(--navy);
  color: #ffffff;
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.navbar {
  width: 100%;
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Logo & Branding */
.brand,
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.brand-sub {
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--green);
  margin-top: 2px;
}

.brand > img,
.logo > img {
  display: block !important;
  width: auto !important;
  height: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
}

/* Navigation */
.nav,
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a:not(.nav-call):hover,
.nav-links a:hover {
  color: var(--blue);
}

.nav-links a {
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-call {
  background: var(--navy);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-call:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.menu-button,
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  box-sizing: border-box;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */
.button,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

.gold,
.btn-gold,
.btn-primary,
.btn-gold:visited,
.btn-primary:visited,
a.btn-gold,
a.btn-gold:visited,
a.btn-primary,
a.btn-primary:visited,
span.btn-gold,
span.btn-primary {
  background: var(--navy);
  color: #ffffff !important;
}

.gold:hover,
.btn-gold:hover,
.btn-primary:hover,
a.btn-gold:hover,
a.btn-primary:hover,
span.btn-gold:hover,
span.btn-primary:hover,
.gold:active,
.btn-gold:active,
.btn-primary:active,
a.btn-gold:active,
a.btn-primary:active,
span.btn-gold:active,
span.btn-primary:active {
  background: var(--blue);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gold:focus,
.btn-gold:focus,
.btn-primary:focus,
.gold:focus-visible,
.btn-gold:focus-visible,
.btn-primary:focus-visible,
a.btn-gold:focus,
a.btn-gold:focus-visible,
a.btn-primary:focus,
a.btn-primary:focus-visible,
span.btn-gold:focus,
span.btn-gold:focus-visible,
span.btn-primary:focus,
span.btn-primary:focus-visible {
  color: #ffffff !important;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-emerald,
.btn-emerald:visited,
a.btn-emerald,
a.btn-emerald:visited,
span.btn-emerald {
  background: var(--green);
  color: #ffffff !important;
}

.btn-emerald:hover,
a.btn-emerald:hover,
span.btn-emerald:hover,
.btn-emerald:active,
a.btn-emerald:active,
span.btn-emerald:active {
  background: #2e8b53;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-emerald:focus,
.btn-emerald:focus-visible,
a.btn-emerald:focus,
a.btn-emerald:focus-visible,
span.btn-emerald:focus,
span.btn-emerald:focus-visible {
  color: #ffffff !important;
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.text-link,
.btn-outline {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  color: var(--charcoal);
  text-decoration: none;
}

.text-link span {
  font-size: 18px;
  margin-left: 8px;
  color: var(--green);
}

.dark,
.btn-dark {
  background: var(--charcoal);
  color: white;
}

.dark:hover,
.btn-dark:hover {
  background: var(--green);
}

/* Cards (`.service-card`) */
.service-card {
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

a.service-card {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.service-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-color: var(--green);
}

.service-card span:not(.btn):not(.btn-gold):not(.btn-primary):not(.btn-emerald):not(.btn-outline):not(.card-action-link) {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin: 20px 0 14px;
  color: var(--charcoal);
}

.service-card p {
  color: var(--slate-body);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.service-card a:not(.btn):not(.btn-gold):not(.btn-primary):not(.btn-emerald):not(.btn-outline),
.service-card .card-action-link {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card:hover .card-action-link,
.service-card:focus-visible .card-action-link,
.service-card:hover a:not(.btn):not(.btn-gold):not(.btn-primary):not(.btn-emerald):not(.btn-outline) {
  color: var(--green);
}

/* Card CTA buttons (e.g. Louisville region card, subpage estimate cards) */
.service-card .btn-gold,
.service-card .btn-gold:visited,
.service-card .btn-primary,
.service-card .btn-primary:visited,
.service-card span.btn-gold,
.service-card a.btn-gold,
.service-card a.btn-gold:visited {
  background: var(--navy);
  color: #ffffff !important;
}

.service-card .btn-gold:hover,
.service-card .btn-gold:focus,
.service-card .btn-gold:focus-visible,
.service-card .btn-gold:active,
.service-card span.btn-gold:hover,
.service-card a.btn-gold:hover,
.service-card:hover .btn-gold,
.service-card:focus-visible .btn-gold,
.service-card:hover span.btn-gold,
.service-card:hover a.btn-gold {
  background: var(--blue);
  color: #ffffff !important;
}

.service-card strong {
  display: block;
  margin-top: 1.2rem;
  font-size: 1.3rem;
  color: var(--green);
}

/* Quote Card */
.quote-card {
  align-self: center;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--green);
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quote-card > span {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 60px;
  line-height: 0.3;
}

.quote-card blockquote {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 24px 0;
  color: var(--charcoal);
}

.quote-card p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-body);
}

/* Eyebrow & Badges */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 20px;
}

.light {
  color: var(--green);
}

.light-link {
  border-color: var(--green);
}

/* Forms, Inputs & Fieldsets */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--charcoal);
}

label:nth-child(3),
label:nth-child(4),
form button,
form small {
  grid-column: 1/-1;
}

form small {
  font-size: 11px;
  color: var(--slate-body);
  line-height: 1.5;
}

.website-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: var(--green);
  font-weight: 600;
}

.form-status.error {
  color: var(--color-danger);
  font-weight: 600;
}

form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Footer Component */
footer {
  background: var(--charcoal);
  color: #f1f5f9;
  padding: 60px clamp(24px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 4px solid var(--green);
}

.site-footer {
  background: var(--charcoal);
  color: #f1f5f9;
  padding: 60px 0 30px;
  border-top: 4px solid var(--green);
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.site-footer .footer-brand p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .footer-links h4,
.site-footer .footer-contact h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.site-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-links a,
.site-footer .footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover {
  color: var(--green);
}

.site-footer .footer-contact p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.footer-brand {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-direction: row;
}

.footer-brand .brand-name {
  font-size: 24px;
  color: #ffffff;
}

.footer-brand > img {
  display: block !important;
  width: auto !important;
  height: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  border-right: 1px solid var(--slate-dark);
  padding-right: 16px;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
}

.footer-wordmark b {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-wordmark small {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--green);
}

footer > p {
  text-align: right;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

footer > div {
  display: flex;
  gap: 30px;
  font-size: 13px;
  flex-wrap: wrap;
}

footer > div a {
  color: #ffffff;
  text-decoration: none;
}

footer > div a:hover {
  color: var(--green);
}

footer > small {
  text-align: right;
  color: #94a3b8;
  font-size: 12px;
}

/* Inner Service Page Components */
.service-header-banner {
  background: linear-gradient(135deg, #0B3D91 0%, #1E6EDB 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  border-bottom: 4px solid var(--green);
}

.service-header-banner .container {
  max-width: 1100px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green);
}

.service-header-banner h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-header-banner p {
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 28px;
}

.service-header-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.service-content-section {
  padding: 60px 0;
  background: #ffffff;
}

.service-content-section .container {
  max-width: 1100px;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-main-content h2 {
  font-size: 28px;
  margin: 36px 0 16px;
  color: var(--charcoal);
}

.service-main-content h2:first-child {
  margin-top: 0;
}

.service-main-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-body);
  margin-bottom: 20px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 36px;
}

.checklist-item {
  background: var(--slate-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-item span {
  color: var(--green);
  font-weight: 800;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--slate-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 20px;
  margin: 0 0 14px 0;
  color: var(--navy);
}

.sidebar-card p {
  font-size: 14px;
  color: var(--slate-body);
  margin-bottom: 20px;
}

.service-cta-block {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.service-cta-block h2 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 12px;
}

.service-cta-block p {
  color: #e2e8f0;
  font-size: 16px;
  margin-bottom: 24px;
}