/* Maple & Co. Home Services — demo site generated by Arrow.
   Mobile-first, no framework. Self-hosted Rubik webfont. */

@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --teal:    #0F4C5C;
  --teal-2:  #1E6E82;
  --amber:   #D68910;
  --amber-d: #A8690B;
  --bg:      #F7F4EE;
  --white:   #FFFFFF;
  --ink:     #1C2326;
  --muted:   #5A6468;
  --border:  #E2DED5;
  --font:    "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r:       8px;
  --max:     1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-d); }
ul { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

.skip { position: absolute; top: -100%; left: 16px; padding: 8px 16px; background: var(--amber); color: var(--white); font-weight: 700; border-radius: var(--r); z-index: 9999; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section--alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--amber); margin: 16px auto 0; border-radius: 2px; }
.lede { text-align: center; max-width: 640px; margin: -24px auto 40px; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; font-family: var(--font); font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: var(--r); cursor: pointer; border: 2px solid transparent; min-height: 44px; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-d); border-color: var(--amber-d); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--teal); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--teal); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nav__toggle { display: none; }
.nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 16px; }
.nav__logo { font-size: 1.1rem; font-weight: 700; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav__logo img { width: 30px; height: 30px; }
.nav__logo small { display: block; font-size: .62rem; font-weight: 400; opacity: .75; letter-spacing: .04em; }
.nav__burger { display: flex; flex-direction: column; gap: 5px; width: 40px; height: 44px; justify-content: center; padding: 0 8px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__menu { display: none; flex-direction: column; padding: 0 16px 16px; background: var(--teal); }
.nav__toggle:checked ~ .nav__menu { display: flex; }
.nav__toggle:checked ~ .nav__top .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle:checked ~ .nav__top .nav__burger span:nth-child(2) { opacity: 0; }
.nav__toggle:checked ~ .nav__top .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__link { display: block; padding: 12px 0; color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav__link:hover { color: var(--amber); }
.nav__cta { display: inline-block; margin-top: 8px; padding: 10px 20px; background: var(--amber); color: var(--ink); font-weight: 700; border-radius: 50px; text-decoration: none; font-size: .95rem; min-height: 44px; }
.nav__cta:hover { background: var(--amber-d); color: var(--white); }
@media (min-width: 820px) {
  .nav__burger { display: none; }
  .nav__top { gap: 32px; }
  .nav__menu { display: flex !important; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: transparent; position: static; }
  .nav__link { padding: 0; border: none; font-size: .92rem; }
  .nav__cta { margin-top: 0; }
}

/* Hero */
#hero { background: var(--teal); background-image: linear-gradient(160deg, rgba(15,76,92,.92), rgba(28,35,38,.92)), url("../assets/img/hero.webp"); background-size: cover; background-position: center; min-height: 86vh; display: flex; align-items: center; padding: 72px 0; }
.hero__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.hero__title { color: var(--white); margin-bottom: 16px; max-width: 18ch; }
.hero__sub { font-size: 1.18rem; font-weight: 700; color: var(--amber); margin-bottom: 16px; }
.hero__body { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-bottom: 32px; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.hero__meta { font-size: .9rem; color: rgba(255,255,255,.75); }
@media (min-width: 768px) { .hero__title { font-size: 3.4rem; } }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; border-top: 4px solid var(--amber); }
.card__icon { width: 46px; height: 46px; margin-bottom: 16px; color: var(--teal); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.cta-bar { background: var(--teal); color: var(--white); padding: 28px 16px; border-radius: var(--r); text-align: center; font-size: 1.05rem; font-weight: 700; }
.cta-bar a { color: var(--amber); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 240px; } }
.about-body p { color: var(--muted); margin-bottom: 16px; }
.about-body p:first-of-type { color: var(--ink); font-size: 1.08rem; }
.about-portrait { order: -1; }
@media (min-width: 768px) { .about-portrait { order: 1; } }
.about-portrait img { border-radius: 50%; max-width: 220px; margin: 0 auto; }

/* Gallery (Swiper + PhotoSwipe) */
.gallery-swiper { border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.gallery-swiper .swiper-slide { aspect-ratio: 4 / 3; background: var(--border); }
.gallery-swiper .swiper-slide a { display: block; width: 100%; height: 100%; }
.gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: var(--white); }
.swiper-pagination-bullet-active { background: var(--amber); }
.gallery-cap { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* Calendar / Events */
.events-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.ec { font-family: var(--font); }
.ec-event { background: var(--teal) !important; border-color: var(--teal) !important; }
.events-fallback { color: var(--muted); text-align: center; padding: 24px; }

/* Hours + contact */
.hours-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .hours-grid { grid-template-columns: 1fr 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--muted); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--amber-d); font-weight: 700; }

.contact-info { background: var(--teal); color: var(--white); border-radius: var(--r); padding: 32px; }
.contact-info h3 { margin-bottom: 20px; }
.ci-item { margin-bottom: 20px; }
.ci-label { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.ci-val { font-size: 1.05rem; font-weight: 600; }
.ci-val a { color: var(--white); text-decoration: none; }
.ci-val a:hover { color: var(--amber); }
.ci-note { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.footer__tagline { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.footer__h { font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; }
.footer__links a:hover { color: var(--amber); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.footer__bottom a { color: rgba(255,255,255,.7); }
.footer__bottom .backlink { color: var(--amber); }
