/* ===========================================
   Cedar Handyman Services LLC — Custom Styles
   =========================================== */

/* ── CSS Custom Properties ── */
:root {
  --navy: #1B3A5C;
  --deep-navy: #0D2240;
  --orange: #E8722A;
  --deep-orange: #D15E1A;
  --white: #FFFFFF;
  --warm-gray: #F5F5F0;
  --near-black: #1A1A1A;
  --dark-gray: #4A4A4A;
  --medium-gray: #6B7094;
  --light-steel: #B0C4DE;
  --border: #E2E8F0;
  --success: #2D8A4E;
  --error: #DC2626;
  --link-blue: #2563EB;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 96px;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--near-black);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Bottom padding for floating CTA on mobile */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(var(--space-2xl) + 60px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  body { font-size: 16px; }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  line-height: 1.15;
}

h1 {
  font-size: 42px !important;
  letter-spacing: 1px;
  line-height: 1.1 !important;
}
h2 {
  font-size: 28px !important;
  letter-spacing: 0.5px;
}
h3 {
  font-size: 20px !important;
  line-height: 1.2;
}

@media (min-width: 768px) {
  h1 { font-size: 72px !important; }
  h2 { font-size: 36px !important; }
  h3 { font-size: 24px !important; }
}

.tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .tagline { font-size: 13px; }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 34, 64, 0.95);
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: var(--orange);
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--deep-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 114, 42, 0.3);
}

@media (min-width: 768px) {
  .btn-primary { font-size: 16px; }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid white;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: white;
  color: var(--navy);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .btn-secondary { font-size: 16px; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,34,64,0.6), rgba(13,34,64,0.85));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

/* ── Section Spacing ── */
.section {
  padding: var(--space-xl) var(--space-md);
}
@media (min-width: 768px) {
  .section { padding: var(--space-3xl) var(--space-2xl); }
}

.section-alt {
  background: var(--warm-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Service Cards ── */
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--orange);
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.service-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
}
.service-card p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Trust/Why Choose Section ── */
.trust-card {
  text-align: center;
  padding: 24px;
}
.trust-icon {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: #F8F9FB;
  border-radius: 12px;
  padding: 28px;
}
.testimonial-stars {
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 12px;
}
.testimonial-quote {
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 16px;
}
.testimonial-author {
  color: var(--medium-gray);
  font-size: 14px;
  font-weight: 500;
}

/* ── How It Works ── */
.step-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 auto;
}
.step-connector {
  display: none;
}
@media (min-width: 768px) {
  .step-connector {
    display: block;
    height: 2px;
    background: var(--border);
    flex: 1;
    margin-top: 28px;
  }
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #1B3A5C, #0D2240);
  color: white;
  text-align: center;
}
.cta-section h2 {
  color: white;
}
.cta-section p {
  color: var(--light-steel);
}

/* ── Footer ── */
.site-footer {
  background: var(--deep-navy);
  color: white;
  padding: var(--space-2xl) var(--space-md);
}
@media (min-width: 768px) {
  .site-footer { padding: var(--space-3xl) var(--space-2xl); }
}
.site-footer a {
  color: var(--light-steel);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--orange);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

/* ── Floating Mobile CTA ── */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--orange);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767px) {
  .floating-cta { display: block; }
}
.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--near-black);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.15);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}
.form-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}
.form-error.visible {
  display: block;
}
.form-success {
  background: #E8F5E9;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}
.form-success.visible {
  display: block;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
}

/* ── Service Detail Page ── */
.service-detail {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.service-detail:last-of-type {
  border-bottom: none;
}
.service-detail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}
.service-detail ul {
  list-style: none;
  padding: 0;
}
.service-detail ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.service-detail ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  background: var(--warm-gray);
  border-radius: 12px;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy);
}
.stat-label {
  font-size: 14px;
  color: var(--medium-gray);
  margin-top: 4px;
}

/* ── Before/After Gallery ── */
.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-pair img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--medium-gray);
  margin-bottom: 4px;
}

/* ── Map ── */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ── Aggregate Rating ── */
.aggregate-rating {
  text-align: center;
  padding: 32px;
  background: var(--warm-gray);
  border-radius: 12px;
  margin-bottom: 32px;
}
.aggregate-stars {
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 8px;
}
.aggregate-text {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
}

/* ── Scroll Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Dark Section Links ── */
.dark-section a:not(.btn-primary):not(.btn-secondary) {
  color: #7BB8F5;
}

/* ── Section Header Underline ── */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── Values Grid ── */
.value-card {
  text-align: center;
  padding: 24px;
}
.value-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ── 404 Page ── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--border);
  line-height: 1;
}

/* ── Body padding for fixed header ── */
body {
  padding-top: 72px;
}
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
}

/* ── Responsive image ── */
.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Link styles ── */
a.text-link {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.text-link:hover {
  color: var(--navy);
}

/* Demo: logo sizing for Cedar Handyman Services full name */
.site-header img.h-10 {
  max-width: 240px;
  height: auto;
}
@media (min-width: 768px) {
  .site-header img.h-10 {
    max-width: 320px;
  }
}
