/*
Theme Name: FreshNest Cleaning
Theme URI: https://example.local/
Author: Codex
Description: Modern, high-contrast theme for FreshNest Cleaning.
Version: 1.0.0
Text Domain: freshnest-cleaning
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  --ink: #0b1f2a;
  --ink-soft: #1e3b4a;
  --teal: #18c9b2;
  --teal-dark: #0ea492;
  --mint: #a3f5e5;
  --foam: #e9fbf7;
  --sun: #ffd166;
  --white: #ffffff;
  --shadow-lg: 0 24px 60px rgba(11, 31, 42, 0.16);
  --shadow-md: 0 18px 40px rgba(11, 31, 42, 0.12);
  --shadow-sm: 0 10px 20px rgba(11, 31, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #f1fffb 0%, #fbfffd 40%, #ffffff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(24, 201, 178, 0.4);
  outline-offset: 2px;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.3rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.site-logo {
  width: auto;
  height: 120px;
  max-height: 120px;
}

.logo-text {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  justify-content: center;
}

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav .menu ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-weight: 500;
  position: relative;
  padding-bottom: 0.3rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sun));
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  width: 100%;
}

.header-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #00333b;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--white);
  border: 2px solid rgba(11, 31, 42, 0.15);
  color: var(--ink);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #00333b;
}

.btn-ghost {
  background: var(--white);
  border-color: rgba(11, 31, 42, 0.15);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 1.4rem;
}

.text-link {
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(24, 201, 178, 0.35) 0%, rgba(24, 201, 178, 0) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35) 0%, rgba(255, 209, 102, 0) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 31, 42, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.8rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}

.checklist span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(24, 201, 178, 0.2);
  color: var(--teal-dark);
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0;
}

.section-heading p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.services-grid,
.values-grid,
.testimonial-grid,
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(11, 31, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 201, 178, 0.2), rgba(255, 209, 102, 0.25));
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(24, 201, 178, 0.12), rgba(24, 201, 178, 0.02));
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(24, 201, 178, 0.2);
}

.stats {
  display: grid;
  gap: 1.2rem;
}

.stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  font-size: 1.6rem;
  color: var(--teal-dark);
}

.testimonial {
  position: relative;
  padding-top: 2.6rem;
}

.testimonial::before {
  content: "\"";
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-size: 3rem;
  color: rgba(24, 201, 178, 0.35);
}

.testimonial p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.cta-band {
  background: linear-gradient(135deg, #0d2230, #123444 60%, #16505f);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band .btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--mint));
  color: #10252f;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 0;
}

.entry-content {
  max-width: 900px;
  padding: 0 0 2rem;
  color: var(--ink-soft);
}

.entry-content h2,
.entry-content h3 {
  color: var(--ink);
}

.entry-content a {
  color: var(--teal-dark);
  font-weight: 600;
}

.entry-content ul {
  padding-left: 1.2rem;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 42, 0.15);
  font-family: inherit;
}

button,
input[type="submit"] {
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #00333b;
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  background: #0b1f2a;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid h3 {
  color: var(--white);
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.reveal {
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 31, 42, 0.08);
    display: none;
    padding: 1rem 0;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    flex-direction: column;
  }

  .hero-inner,
  .split,
  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 4.5rem 0 3rem;
  }

  .hero-card {
    padding: 1.8rem;
  }

  .site-logo {
    height: 90px;
    max-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
