/*
Theme Name: East Point Cleaning Solutions
Theme URI: https://eastpointcleaning.com
Author: East Point Cleaning Solutions
Description: Custom one-page theme for East Point Cleaning Solutions, commercial cleaning in Arlington and Alexandria, VA.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eastpoint
*/

:root {
  --navy: #1E2A44;
  --navy-deep: #131B2E;
  --periwinkle: #8FA8FF;
  --periwinkle-deep: #5F7EE8;
  --light-blue: #E8EEFF;
  --slate: #6B7280;
  --white: #FFFFFF;
  --border: rgba(30, 42, 68, 0.10);
  --shadow: 0 20px 40px -24px rgba(30, 42, 68, 0.35);
  --radius: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--navy); margin: 0 0 0.4em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p  { color: var(--slate); margin: 0 0 1em; max-width: 65ch; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 48px 0; }
.section--light { background: var(--light-blue); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.btn--primary { background: var(--periwinkle); color: var(--navy-deep); }
.btn--primary:hover { background: var(--periwinkle-deep); color: var(--white); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); }

.topbar { background: var(--navy-deep); color: #B9C3DE; font-size: 0.82rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { font-weight: 600; }
.topbar a:hover { color: var(--periwinkle); }
.topbar .ph-note { color: #71809E; font-style: italic; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: var(--max); margin: 0 auto; gap: 12px; }

.nav__logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__logo img { height: 46px; width: auto; flex-shrink: 0; }
.nav__logo .wordmark { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.nav__logo .wordmark .line1 { font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.01em; }
.nav__logo .wordmark .line2 { font-weight: 700; font-size: 0.72rem; color: var(--periwinkle-deep); letter-spacing: 0.06em; }

.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.92rem; }
.nav__links a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__links a:hover { border-bottom-color: var(--periwinkle); }
.nav__links-cta { display: none; }
.nav__cta { flex-shrink: 0; white-space: nowrap; }
.nav__toggle { display: none; }

/* Hamburger + mobile dropdown */
@media (max-width: 860px) {
  .nav__logo img { height: 38px; }
  .nav__logo .wordmark .line1 { font-size: 0.95rem; }
  .nav__logo .wordmark .line2 { font-size: 0.6rem; letter-spacing: 0.03em; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; border: none; background: none; cursor: pointer;
    padding: 0; flex-shrink: 0;
  }
  .nav__toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-top: 1px solid var(--border); }
  .nav__links li:first-child { border-top: none; }
  .nav__links a { display: block; padding: 14px 0; }
  .nav__links-cta { display: block; padding: 14px 0 6px; }
  .nav__links-cta a { padding: 0; }

  .site-header { position: relative; }
}

/* Hero: light and bright, with a slow Ken Burns pan/zoom on the background
   photo for motion (a real DC drone/aerial video would read even better
   here; see the note in front-page.php above the hero markup for how to
   swap one in once you have a licensed clip). Overlay is a light wash,
   not a dark tint, so the photo stays bright and text stays dark navy. */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; color: var(--navy); overflow: hidden; background: var(--light-blue); }
@media (max-width: 600px) { .hero { min-height: 0; } }
.hero__bg {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  animation: heroPan 26s ease-in-out infinite alternate;
}
@keyframes heroPan {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.16) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.20) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: 800px; padding: 84px 24px; }
.hero__kicker { color: var(--periwinkle-deep); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; display: block; }
.hero h1 { color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.85rem); white-space: nowrap; text-shadow: 0 2px 18px rgba(255,255,255,0.7); }
@media (max-width: 700px) { .hero h1 { white-space: normal; } }
.hero p.lead { text-shadow: 0 2px 14px rgba(255,255,255,0.6); }
.hero p.lead { color: var(--slate); font-size: 1.1rem; max-width: 54ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn--outline { border-color: rgba(30,42,68,0.35); color: var(--navy); }
.hero .btn--outline:hover { border-color: var(--navy); background: rgba(30,42,68,0.06); }

/* Executive-oversight / stats section (the "About" anchor target) */
.oversight-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); }
.oversight-stats div { text-align: center; }
.oversight-stats .num { font-size: 2.1rem; font-weight: 800; color: var(--periwinkle-deep); display: block; }
.oversight-stats .label { font-size: 0.85rem; color: var(--slate); }
@media (max-width: 500px) {
  .oversight-stats { gap: 10px; }
  .oversight-stats .num { font-size: 1.3rem; }
  .oversight-stats .label { font-size: 0.65rem; line-height: 1.2; }
}

.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-layout img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .about-layout { grid-template-columns: 1fr; } }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 28px 48px -20px rgba(30, 42, 68, 0.45); }
.service-card__media { height: 180px; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 22px 22px 26px; }
.service-card__body p { margin-bottom: 0; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) {
  .service-card, .service-card:hover, .service-card__media img, .service-card:hover .service-card__media img { transform: none; transition: none; }
}

.ph-img { width: 100%; height: 100%; background: linear-gradient(135deg, var(--light-blue), #d7e0ff); border-bottom: 1px dashed #A9B8E8; display: flex; align-items: center; justify-content: center; color: var(--periwinkle-deep); font-weight: 700; font-size: 0.78rem; text-align: center; padding: 14px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.value-card { text-align: center; padding: 10px; }
.value-card .mark { width: 46px; height: 46px; border-radius: 50%; background: var(--light-blue); color: var(--periwinkle-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1rem; }
.value-card p { font-size: 0.9rem; margin: 0 auto; }

.safety-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .safety-layout { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.95rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--periwinkle); color: var(--navy-deep); font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.83rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid #C9D2E8; font-family: inherit; font-size: 0.93rem; background: var(--white); color: var(--navy); }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--periwinkle); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 4px; }

.info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 30px; }
.info-card h3 { color: var(--white); }
.info-card p { color: #B9C3DE; }
.info-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.info-row:last-child { border-bottom: none; }
.info-row .label { font-weight: 700; font-size: 0.8rem; color: var(--periwinkle); text-transform: uppercase; letter-spacing: 0.03em; }
.info-row .val { color: #E4E9F7; font-size: 0.95rem; }

.site-footer { background: var(--navy-deep); color: #A9B4D0; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--periwinkle); }
.footer-logo img { height: 34px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 34px; padding-top: 18px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
