/* ============================================
   Expert Home Services LLC - Brand Styles
   Colors: teal/aqua, coral/salmon, light blue, dark grey
   ============================================ */

:root {
  /* Brand palette from logo */
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --coral: #e07a5f;
  --coral-light: #f2a391;
  --sky: #81b0d4;
  --sky-light: #b8d4eb;
  --grey: #2d3142;
  --grey-mid: #4f5d75;
  --grey-light: #6b7280;
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 148, 136, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--grey);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 24px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.08);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 10vh;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: var(--transition);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grey-mid);
}

.nav a:hover {
  color: var(--teal);
}

.cta-link {
  color: var(--teal) !important;
  font-weight: 600;
}

.cta-link:hover {
  color: var(--teal-dark) !important;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--grey);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(45, 49, 66, 0.78) 0%,
    rgba(45, 49, 66, 0.55) 40%,
    rgba(13, 148, 136, 0.45) 100%
  );
}

.hero .wave {
  z-index: 2;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 600,0 900,60 C1050,90 1150,90 1200,60 L1200,120 L0,120 Z' fill='%230d9488' fill-opacity='0.12'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  animation: wave 12s ease-in-out infinite;
}

.wave-2 {
  bottom: 10px;
  opacity: 0.6;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes wave {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-25%) scaleY(1.05); }
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  top: 10%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: var(--coral);
  bottom: 25%;
  left: 10%;
  animation: float 10s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: var(--sky);
  top: 40%;
  right: 20%;
  animation: float 6s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.15s;
  color: var(--teal-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-secondary:hover {
  background: rgba(13, 148, 136, 0.08);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--teal-light);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* ========== Section common ========== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--grey-mid);
  font-size: 1.05rem;
}

/* ========== Services ========== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.service-card:nth-child(even) .service-icon {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--grey-mid);
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.service-card-wide .service-icon {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .service-card-wide {
    grid-template-columns: 1fr;
  }
}

/* ========== About ========== */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-tag {
  margin-bottom: 12px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--grey-mid);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--grey);
}

.about-features i {
  color: var(--teal);
  font-size: 1.2rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.3);
  transition: transform var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card-inner i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.95;
}

.about-card-inner p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* ========== Contact ========== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 148, 136, 0.2);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--grey-mid);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========== Footer ========== */
.footer {
  background: var(--grey);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  /* height: 44px; */
  margin-bottom: 12px;
  opacity: 0.95;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 80px 24px 24px;
    transition: right var(--transition);
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav a {
    display: block;
    padding: 16px 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .services {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about,
  .contact {
    padding: 60px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
