/*
Theme Name: Island Cleaners Modern
Description: A responsive WordPress theme for Island Cleaners in Grand Cayman.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: island-cleaners-modern
*/

@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #132a3a;
  --deep: #10334b;
  --body: #455d6a;
  --blue: #075680;
  --blue-hover: #084669;
  --sky: #c8eafa;
  --wash: #edf5f8;
  --paper: #faf9f5;
  --white: #fff;
  --line: #d5dfe1;
  --measure: 1240px;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.6 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; }
p { margin-bottom: 1rem; }
a { color: var(--blue); text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3e9dcc; outline-offset: 4px; }

.container {
  width: min(calc(100% - 96px), var(--measure));
  margin-inline: auto;
}

.section-pad { padding-block: clamp(60px, 7.5vw, 112px); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.screen-reader-text:focus {
  z-index: 10;
  inset: 12px auto auto 12px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 18px;
  background: var(--white);
}

.site-header { position: relative; z-index: 3; background: var(--white); }
.site-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.site-brand { flex-shrink: 0; }
.site-brand a { display: block; text-decoration: none; }
.site-brand .custom-logo { width: 132px; max-height: 62px; object-fit: contain; object-position: left center; }
.site-brand-name { display: block; font-size: 1.25rem; font-weight: 750; line-height: 1.1; }
.site-brand-caption { color: var(--body); font-size: .8rem; }
.site-menu { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 42px); list-style: none; padding: 0; margin: 0; }
.site-menu li { position: relative; }
.site-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 550; }
.site-menu a:hover, .site-menu [aria-current="page"] { color: var(--blue); text-decoration: underline; }
.site-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 185px;
  padding: 9px 15px;
  list-style: none;
  background: var(--white);
  box-shadow: 0 10px 24px #132a3a26;
}
.site-menu li:hover > .sub-menu,
.site-menu li:focus-within > .sub-menu { display: block; }
.menu-toggle {
  padding: 8px 17px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  text-align: center;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 660;
  line-height: 1.3;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button span[aria-hidden="true"], .text-link span[aria-hidden="true"] { font-size: 1em; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { color: var(--white); background: var(--blue-hover); }
.button-outline { color: var(--deep); border-color: #829eab; }
.button-outline:hover { background: var(--wash); border-color: var(--blue); }
.button-white { color: var(--deep); background: var(--white); }
.button-white:hover { color: var(--deep); background: var(--sky); }
.button-inverse { color: var(--white); border-color: #8db2c6; }
.button-inverse:hover { color: var(--white); border-color: var(--white); background: #ffffff18; }
.header-cta { min-height: 44px; white-space: nowrap; }

.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.text-link:hover { text-decoration-thickness: 2px; }

.eyebrow { color: var(--blue); margin-bottom: 17px; text-transform: uppercase; font-size: .72rem; font-weight: 730; letter-spacing: .11em; }
.home-hero { background: var(--paper); padding-block: clamp(38px, 4.2vw, 62px); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}
.hero-copy { padding-block: 22px 30px; }
.hero-copy h1 {
  font-size: clamp(3.35rem, 6vw, 6.25rem);
  font-weight: 620;
  line-height: .94;
  letter-spacing: -.073em;
  margin: 0 0 25px;
}
.hero-copy h1 em, .pickup-copy h2 em, .visit-copy h2 em {
  color: var(--blue);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.13em;
  font-weight: 400;
  letter-spacing: -.03em;
}
.hero-copy > p:not(.eyebrow), .pickup-copy > p:not(.eyebrow) {
  max-width: 43ch;
  margin-bottom: 25px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.hero-copy > p:not(.eyebrow) { color: var(--body); }

.hero-photo {
  position: relative;
  min-width: 0;
  height: clamp(372px, 39vw, 555px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dbe5df;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero-photo figcaption {
  position: absolute;
  inset: auto auto 20px 20px;
  max-width: calc(100% - 40px);
  background: var(--white);
  color: var(--deep);
  border-radius: 100px;
  padding: 9px 16px;
  box-shadow: 0 4px 20px #132a3a21;
  font-size: .82rem;
  font-weight: 660;
}

.quick-info { background: var(--wash); border-bottom: 1px solid var(--line); }
.quick-info-inner { display: grid; grid-template-columns: .8fr 1.25fr 1.2fr; }
.quick-info-inner > div { padding: 22px clamp(16px, 2.5vw, 40px); }
.quick-info-inner > div:first-child { padding-left: 0; }
.quick-info-inner > div + div { border-left: 1px solid var(--line); }
.quick-info-inner span { display: block; color: var(--body); font-size: .78rem; font-weight: 600; }
.quick-info-inner a, .quick-info-inner p {
  display: inline-block;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 650;
}
.quick-info-inner a { text-decoration: none; }
.quick-info-inner a:hover { text-decoration: underline; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-heading h2, .pickup-copy h2, .visit-copy h2, .page-intro h1 {
  font-size: clamp(2.65rem, 4.6vw, 5rem);
  line-height: .99;
  letter-spacing: -.064em;
  font-weight: 620;
}
.section-heading h2 { margin: 0; }
.section-heading .text-link { margin-bottom: 5px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.service-grid li {
  min-height: 140px;
  padding: clamp(20px, 2.4vw, 33px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdfd;
}
.service-grid li h3 { margin: 0 0 9px; font-size: clamp(1.18rem, 1.9vw, 1.56rem); font-weight: 650; }
.service-grid li p { margin: 0; color: var(--body); }
.service-note { margin: 21px 0 0; color: var(--body); font-size: .94rem; }

.pickup-section { background: var(--deep); color: var(--white); scroll-margin-top: 24px; }
.pickup-layout { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(25px, 6vw, 90px); }
.pickup-copy h2 { margin-bottom: 21px; }
.pickup-copy h2 em, .pickup-copy .eyebrow { color: var(--sky); }
.pickup-copy > p:not(.eyebrow) { color: #d9eaf1; }
.pickup-photo { margin: 27px 0 0; max-width: 470px; overflow: hidden; border-radius: 12px; }
.pickup-photo img { width: 100%; aspect-ratio: 2.45; object-fit: cover; object-position: center 61%; }
.pickup-details, .pickup-form { border-radius: var(--radius); padding: clamp(25px, 3.6vw, 52px); }
.pickup-details { border: 1px solid #ffffff54; background: #ffffff0a; }
.pickup-details h3, .pickup-form h3 { margin-bottom: 10px; font-size: 1.52rem; }
.pickup-details p { color: #d9eaf1; max-width: 30ch; }
.pickup-details a { color: var(--white); }
.pickup-form { color: var(--ink); background: var(--white); }
.has-pickup-form { align-items: start; }
.has-pickup-form .pickup-copy { padding-top: 14px; }

.visit-section { background: var(--paper); scroll-margin-top: 24px; }
.visit-layout { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(28px, 7vw, 115px); }
.visit-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.visit-photo img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; }
.visit-copy h2 { margin-bottom: 22px; }
.visit-copy address, .site-footer address { font-style: normal; }
.visit-copy address { font-weight: 650; margin-bottom: 12px; }
.visit-copy p:not(.eyebrow) { margin-bottom: 21px; color: var(--body); }
.visit-copy .action-row { gap: 16px 22px; }

.site-footer { padding: 52px 0 20px; background: #e8f1f4; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.15fr 1fr; gap: 26px; }
.footer-grid h2 { margin-bottom: 12px; font-size: .95rem; letter-spacing: -.005em; }
.footer-grid p, .footer-grid address { font-size: .9rem; color: var(--body); }
.footer-grid address { margin-bottom: 9px; }
.footer-grid .site-menu { display: block; }
.footer-grid .site-menu a { display: inline; color: var(--blue); font-size: .9rem; }
.footer-grid .site-menu li + li { margin-top: 5px; }
.footer-brand > a { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.04em; margin-bottom: 8px; }
.footer-brand p { max-width: 27ch; }
.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #cbdce2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--body);
  font-size: .85rem;
}
.footer-bottom small { font-size: inherit; }

.page-intro { padding-block: clamp(34px, 6vw, 86px); background: var(--paper); }
.page-intro h1 { margin: 0; }
.page-intro p:not(.eyebrow) { max-width: 55ch; margin: 16px 0 20px; color: var(--body); }
.page-content:not(.page-content--builder) { padding-block: clamp(32px, 5vw, 64px); }
.page-content > .container > :is(p, ul, ol), .page-content.container > :is(p, ul, ol) { max-width: 75ch; }
.entry-content :is(img, iframe) { max-width: 100%; }
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 24px;
  padding-block: 44px;
}
.post-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.post-card-image { display: block; margin-bottom: 15px; }
.post-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.post-card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.comments-area, .navigation.pagination, .post-navigation { margin-block: 32px; }

.wpcf7 :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="hidden"]), textarea, select) {
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #829eab;
  border-radius: 7px;
  padding: 9px 11px;
}
.wpcf7 textarea { min-height: 100px; resize: vertical; }
.wpcf7 p { margin-bottom: 11px; }
.wpcf7 :is(input[type="submit"], button[type="submit"]) {
  border: 1px solid transparent;
  border-radius: 100px;
  min-height: 44px;
  padding: 8px 18px;
  color: var(--white);
  background: var(--blue);
  font-weight: 650;
  cursor: pointer;
}
.wpcf7 :is(input[type="submit"], button[type="submit"]):hover { background: var(--blue-hover); }

@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .site-header-inner { min-height: 76px; gap: 18px; }
  .site-menu { gap: 17px; }
  .site-menu a { font-size: .86rem; }
  .site-brand .custom-logo { width: 108px; }
  .header-cta { padding-inline: 14px; font-size: .84rem; }
  .hero-copy h1 { font-size: clamp(3rem, 7vw, 4.3rem); }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .site-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; min-height: 68px; }
  .site-brand, .menu-toggle { margin-block: 10px; }
  .menu-toggle { justify-self: end; }
  .header-cta { display: none; }
  .site-header .site-nav { grid-column: 1 / -1; padding: 4px 0 14px; border-top: 1px solid var(--line); }
  .site-header .site-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .site-header .site-menu a { display: flex; }
  .site-header .site-menu .sub-menu { position: static; box-shadow: none; padding: 0 0 0 16px; }
  .site-header .site-menu li:focus-within > .sub-menu { display: block; }
  .home-hero { padding-block: 28px 24px; }
  .hero-layout, .pickup-layout, .visit-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding-block: 8px 0; }
  .hero-copy h1 { font-size: clamp(2.9rem, 11.6vw, 5rem); margin-bottom: 18px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 18px; }
  .hero-photo { height: clamp(255px, 72vw, 450px); }
  .hero-photo figcaption { inset: auto auto 12px 12px; padding: 6px 12px; }
  .quick-info-inner { grid-template-columns: 1fr; padding-block: 8px; }
  .quick-info-inner > div { padding: 9px 0; }
  .quick-info-inner > div + div { border-left: none; border-top: 1px solid var(--line); }
  .quick-info-inner span { margin-bottom: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .visit-photo { max-width: 620px; }
  .visit-photo img { aspect-ratio: 1.5; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer a { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .service-grid { grid-template-columns: 1fr; gap: 9px; }
  .service-grid li { min-height: auto; }
  .button { padding-inline: 16px; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
