/* Emanuel Services Home Care — Static CSS
   Edit colors in :root below to re-theme the entire site. */

:root {
  --navy: #1c3e70;
  --navy-dark: #0b2752;
  --sage: #719f71;
  --sage-dark: #497049;
  --sage-light: #9bc29b;
  --cream: #f7f4ec;
  --bg: #fdfcf8;
  --text: #1f2a4c;
  --muted: #6b7280;
  --border: #e6e2d6;
  --card: #ffffff;
  --white: #ffffff;

  --shadow-soft: 0 10px 40px -10px rgba(31, 42, 76, 0.18);
  --shadow-card: 0 4px 20px -6px rgba(31, 42, 76, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.15;
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}
.section-cream {
  background: var(--cream);
}
.section-soft {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(216, 230, 221, 0.4) 100%
  );
}
.section-navy {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 2rem;
}
.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

/* Typography helpers */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}
.muted {
  color: var(--muted);
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, background 0.2s, transform 0.2s; 
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-secondary {
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  opacity: 0.9;
}
.btn-ghost {
  background: var(--bg);
  color: var(--navy);
  border: 1px solid rgba(31, 42, 76, 0.2);
}
.btn-ghost:hover {
  background: var(--sage-light);
}
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 226, 214, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.brand-tag {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(31, 42, 76, 0.8);
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
  font-weight: 600;
}
.nav-desktop a.active {
  border-bottom: 2px solid var(--sage);
}
.header-cta {
  display: none;
  align-items: center;
  gap: 0.85rem;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.menu-toggle {
  display: inline-flex;
  padding: 0.5rem;
}
@media (min-width: 1024px) {
  .nav-desktop,
  .header-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu (CSS-only checkbox trick) */
#menu-check {
  display: none;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  color: rgba(31, 42, 76, 0.85);
}
.mobile-menu a:hover {
  background: var(--cream);
  color: var(--navy);
}
#menu-check:checked ~ .mobile-menu {
  display: block;
}
.icon-close {
  display: none;
}
#menu-check:checked ~ .header-inner .icon-open {
  display: none;
}
#menu-check:checked ~ .header-inner .icon-close {
  display: inline;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero */
.hero {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(216, 230, 221, 0.4) 100%
  );
}
.hero-grid {
  display: grid;
  gap: 1rem 3rem;
  align-items: center;
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 7rem 0;
  }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 1.25rem;
  line-height: 1.05;
}
.hero h1 .accent {
  color: var(--sage-dark);
}
.hero .lead {
  margin-top: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage-light);
  color: var(--navy);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-checks {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 0.875rem;
  grid-column: span 2;
  margin-top: 10px;
}
@media (min-width: 640px) {
  .hero-checks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.hero-stat-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: none;
}
@media (min-width: 640px) {
  .hero-stat-card {
    display: block;
  }
}
.hero-stat-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-stat-badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(123, 161, 138, 0.18);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-stat-lbl {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
  text-align: center;
}
@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--navy);
}
.trust-lbl {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* Grid of cards */
.section-head {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--muted);
}

.card-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.card h3 {
  margin-top: 1.25rem;
  font-size: 1.35rem;
}
.card p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
}
.icon-box.soft {
  background: var(--sage-light);
  color: var(--navy);
}

.section-cta {
  margin-top: 3rem;
  text-align: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy);
}
.link-arrow:hover {
  color: var(--sage-dark);
}

/* Two-column (image + text) */
.split {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}
.feature-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
}
.feature-item .icon-box {
  width: 44px;
  height: 44px;
  background: var(--sage-light);
  color: var(--navy);
  flex-shrink: 0;
}
.feature-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.feature-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Testimonial */
.testimonial {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}
.testimonial blockquote {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy);
}
.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* Big CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-size: 2.25rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
}
.cta-band .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .cta-band {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .cta-band .btns {
    justify-content: flex-end;
  }
}

/* Numbered process */
.process {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
}
.process-step {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.process-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--sage-dark);
}
.process-step h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}
.process-step p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Mission block */
.mission-quote {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.contact-item .icon-box {
  width: 44px;
  height: 44px;
  background: var(--sage-light);
  color: var(--navy);
  flex-shrink: 0;
}
.contact-item .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.contact-item a,
.contact-item div > div {
  color: var(--text);
}
.contact-item a:hover {
  color: var(--navy);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.form-card .loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: rgba(28, 62, 112, 0.5);
  z-index: 9999;
  overflow: auto;
}
.form-card .loader .content {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.form-card .loader .content .pre-loader-img {
  display: block;
  width: 40%;
  height: auto;
}
.form-card .loader .content .success-loader-img {
  display: none;
  width: 50%;
  height: auto;
}
.form-row {
  display: grid;
  gap: 0 1rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  margin-top: 1rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}
.field label .required {
  display: inline-block;
  color: #ff0000;
}
.field input,
.field select,
.field textarea {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sage);
}

.field input.error, .field textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.field .error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
    display: none;
}

.form-card #contactForm-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

/* Careers extras */
.careers-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}
.careers-panel h3 {
  color: var(--white);
  font-size: 1.85rem;
}
.careers-panel p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.75rem;
}
.check-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(31, 42, 76, 0.85);
}
.check-list li {
  display: flex;
  gap: 0.5rem;
}
.check-list svg {
  color: var(--sage-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  }
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-grid a:hover {
  color: var(--sage);
}
.footer-grid a.active {
  border-bottom: 2px solid var(--sage);
  font-weight: 600;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  background: var(--white);
  padding: 4px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer-contact svg {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}
.footer-bottom .container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom .container .footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.footer-bottom .container .footer-links a {
  cursor: pointer;
}
.footer-bottom .container .footer-links a:hover {
    color: var(--sage);
}

/* Utility */
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.grid-gap {
  gap: 1.5rem;
}


/*== | Popup CSS | ==================================*/

.popup {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    overflow: auto;
}

.popup-flex {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
    height: 100vh;
    overflow: auto;
}

.popup-inner {
    display: block;
    position: relative;
    width: 90%;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.26);
    -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.26);
    z-index: 9999;
    max-width: 700px;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
}

.popup-inner h4 {
    display: block;
    padding: 15px 0 10px;
    font-size: 16px;
    font-weight: bold;
    color: #002a64;
    text-decoration: underline;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    z-index: 9999;
    opacity: 1;
    cursor: pointer;
}

.popup-close svg {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    transition: all 0.5s ease-in-out;
}

.popup-close:hover svg {
    opacity: 0.7;
}

.popup-inner .popup-title {
    display: block;
    font-size: 22px;
    font-family: var(--font-serif);
    color: var(--navy);
    font-weight: 500;
    border-bottom: 4px double var(--sage);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.popup-content {
    display: block;
    max-height: 50vh;
    overflow: auto;
    padding: 0px;
    scroll-behavior:smooth;
    font-size: 14px;
}

@media (max-width:1200px) {

  .header-inner {
    padding: 10px 30px !important;
  }
  .hero-grid {
    padding: 3rem 30px !important;
  }
  .section {
      padding: 4rem 0;
  }
  .container {
      padding: 30px;
  }
  .section:has(.container) {
      padding: 2rem 0;
  }
  .section-soft {
    padding: 0 0 20px !important;
  }
  .section-navy {
    padding: 0 !important;
  }
  .card-grid {
    margin-top: 1rem !important;
  }
}

@media (max-width:768px) {

}

@media (max-width:640px) {
  .hero-image-wrap {
    display: none;
  }
  .hero-checks {
    grid-template-columns: 1fr;
  }
  .form-card {
    border-radius: 20px;
    padding: 20px;
  }
  .field {
      margin-top: 10px;
  }
}


