/* =============================================
   CALE FAMILY HANDYMAN SERVICES — Global Styles
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f2d48;
  --navy2:   #1a3d5c;
  --amber:   #e8820c;
  --amber2:  #f59e0b;
  --white:   #ffffff;
  --off-white: #f8fafc;
  --light:   #eef2f7;
  --gray:    #6b7280;
  --dark:    #1e293b;
  --text:    #374151;
  --border:  #d1d5db;
  --shadow:  0 4px 24px rgba(15,45,72,.12);
  --shadow2: 0 10px 40px rgba(15,45,72,.18);
  --radius:  12px;
  --radius2: 20px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', var(--font);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text); line-height: 1.75; }

/* ---------- Utility Classes ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.fw-600 { font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.section-title {
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: #c96e08;
  border-color: #c96e08;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,130,12,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 54px; height: 54px;
  background: var(--amber);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .brand { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--white); }
.logo-text .tagline { font-size: .7rem; color: rgba(255,255,255,.65); letter-spacing: .05em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-links .nav-cta {
  background: var(--amber);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: #c96e08;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 12px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.mobile-menu .nav-cta {
  background: var(--amber);
  color: var(--white);
  text-align: center;
  border-radius: 50px;
  margin-top: 8px;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: var(--white); }
.page-header p  { color: rgba(255,255,255,.75); margin-top: 12px; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--amber2); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow2);
}

/* ---------- Divider ---------- */
.divider {
  width: 52px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 16px auto 32px;
}
.divider.left { margin-left: 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-amber { background: rgba(232,130,12,.12); color: var(--amber); }
.badge-green { background: rgba(22,163,74,.1);  color: #16a34a; }
.badge-navy  { background: rgba(15,45,72,.08);  color: var(--navy); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--navy2);
  box-shadow: 0 0 0 3px rgba(26,61,92,.1);
}
.form-control::placeholder { color: #9ca3af; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }

/* ---------- Testimonials ---------- */
.stars { color: var(--amber2); font-size: 1rem; letter-spacing: 2px; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber2);
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 8px; }

/* ---------- Why Choose Us Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius2);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow2);
}
.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p  { font-size: .9rem; color: var(--gray); }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow2); }
.service-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 36px 28px 28px;
  position: relative;
}
.service-card-header .service-emoji { font-size: 2.8rem; }
.service-card-header h3 { color: var(--white); margin-top: 12px; font-size: 1.3rem; }
.service-card-body { padding: 24px 28px; }
.service-list { margin: 0; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--light);
}
.service-list li:last-child { border-bottom: none; }
.service-list .check { color: var(--amber); font-size: .85rem; flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.active { box-shadow: var(--shadow); border-color: var(--navy); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--off-white); }
.faq-question h4 { font-size: .98rem; font-weight: 600; color: var(--dark); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--amber); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--gray); font-size: .93rem; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 400px; }

/* ---------- Areas Map Section ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.area-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.area-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow); }
.area-icon { font-size: 1.5rem; }
.area-name { font-weight: 600; color: var(--dark); font-size: .95rem; }
.area-county { font-size: .8rem; color: var(--gray); margin-top: 2px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2038 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,130,12,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,.7); max-width: 560px; margin: 16px auto 36px; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: #070f1a;
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: .88rem; line-height: 1.8; max-width: 280px; }
.footer h4 { color: var(--white); font-size: .92rem; font-weight: 700; margin-bottom: 20px; letter-spacing: .03em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--amber2); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .88rem; }
.footer-contact-item .icon { color: var(--amber2); flex-shrink: 0; margin-top: 2px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: rgba(255,255,255,.8);
}
.social-link svg { display: block; }
.social-link:hover { background: var(--amber); color: var(--white); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; font-size: .82rem; }
.footer-bottom-links a:hover { color: var(--amber2); }

/* ---------- Scroll-to-top button ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: opacity var(--transition), transform var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--amber); transform: translateY(-3px); }

/* ---------- Animate on scroll ---------- */
.aos {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.aos.visible { opacity: 1; transform: translateY(0); }
.aos-delay-1 { transition-delay: .1s; }
.aos-delay-2 { transition-delay: .2s; }
.aos-delay-3 { transition-delay: .3s; }
.aos-delay-4 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .features-grid  { grid-template-columns: 1fr 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .areas-grid     { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .areas-grid    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .cta-buttons   { flex-direction: column; align-items: center; }
}
