/* Gulfside Commercial Services - site stylesheet.
 *
 * Interim build. Simple, credible, fast: no framework, no build step, no web
 * fonts, system font stack. Photography is Heather's to supply (#7), so every
 * image slot on the site is a marked .photo-slot placeholder instead.
 *
 * The one accent is GCS's own navy, sampled from their logo
 * (Gulfside-Cleaning-Services-Logo.png, most common opaque pixel, #1a3967).
 * The logo file itself is not shipped: it reads "Gulfside CLEANING" and the
 * company is now Gulfside Commercial Services, so the wordmark is text.
 * Onside gold is Onside's brand, not Gulfside's: do not use it here.
 *
 * Nothing below hard-codes a color. Heather's real palette lands in phase 2
 * by changing these values.
 */

:root {
  --color-brand: #1a3967;          /* GCS navy, sampled from their logo */
  --color-brand-dark: #12294a;     /* footer, CTA band */
  --color-brand-contrast: #ffffff;
  --color-accent: #1a4e8a;         /* links: same hue, lifted for text on white */
  --color-ink: #1d2329;
  --color-muted: #5a6670;
  --color-surface: #f3f5f6;
  --color-line: #d8dde1;
  --color-white: #ffffff;
  --color-tk-bg: #fff3a6;
  --color-tk-line: #a8900b;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
}

a { color: var(--color-accent); }
a:hover { color: var(--color-brand); }

h1, h2, h3 { line-height: 1.2; color: var(--color-ink); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-brand); color: var(--color-brand-contrast); padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 10; }

/* Visible content placeholder. Every [TK] must be resolved before cutover. */
.tk {
  background: var(--color-tk-bg);
  outline: 1px dashed var(--color-tk-line);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0 4px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7em 1.2em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--color-brand); color: var(--color-brand-contrast); }
.btn-primary:hover { background: var(--color-brand-dark); color: var(--color-brand-contrast); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { border-color: var(--color-brand); color: var(--color-brand); background: transparent; }
.btn-light { background: var(--color-white); color: var(--color-brand-dark); }
.btn-outline-light { border-color: var(--color-white); color: var(--color-white); }
.btn-light:hover, .btn-outline-light:hover { color: var(--color-brand-dark); background: var(--color-surface); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header -------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--color-line); background: var(--color-white); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
/* The circular crew-with-mop mark, the one piece of GCS's logo that carries no
 * wordmark. The lockup reads "Gulfside CLEANING" and the company is now
 * Gulfside Commercial Services, so the name itself stays as live text. */
.wordmark { text-decoration: none; color: var(--color-ink); display: flex; align-items: center; gap: 10px; }
.wordmark-mark { width: 38px; height: 38px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-name { font-weight: 800; font-size: 1.2rem; color: var(--color-brand); letter-spacing: 0.01em; }
.wordmark-sub { font-size: 0.8rem; color: var(--color-muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.main-nav a { text-decoration: none; color: var(--color-ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-accent); }
.main-nav .nav-cta { color: var(--color-brand-contrast); }
.main-nav .nav-phone { color: var(--color-brand); }

/* --- Page sections ------------------------------------------------------- */
.hero, .page-head { background: var(--color-surface); padding: 56px 0 48px; border-bottom: 1px solid var(--color-line); }
.hero h1 { max-width: 20ch; }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  font-weight: 700; color: var(--color-accent); margin-bottom: 0.5em;
}

.section { padding: 48px 0; }
.section-alt { background: var(--color-surface); }
.section-lead { color: var(--color-muted); max-width: 62ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.facts { border-bottom: 1px solid var(--color-line); }
.facts-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px; padding-top: 24px; padding-bottom: 24px;
}
.facts-row p { margin: 0; display: flex; flex-direction: column; }
.facts-row strong { font-size: 1.35rem; color: var(--color-brand); }
.facts-row span { color: var(--color-muted); font-size: 0.95rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-bottom: 1.5em; }
.card {
  border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 20px; background: var(--color-white);
}
.card h3 a { text-decoration: none; color: var(--color-brand); }
.card h3 a:hover { text-decoration: underline; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }

.steps { padding-left: 1.2em; max-width: 72ch; }
.steps li { margin-bottom: 0.6em; }

.link-list { list-style: none; padding: 0; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--color-line); }
.link-list a { text-decoration: none; font-weight: 600; }

.checklist li { margin-bottom: 0.5em; }

/* --- Photos -------------------------------------------------------------- */
/* Real photographs, all GCS's own (assets/wix-library). Served as WebP with a
 * JPEG fallback. object-fit keeps a fixed shape whatever the source aspect is,
 * which matters because half of these are portrait phone photos. */
.photo {
  margin: 0 0 1.5em;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero { aspect-ratio: 20 / 9; }
.photo-band { aspect-ratio: 16 / 9; }
.photo-tall { aspect-ratio: 4 / 5; }
@media (max-width: 620px) {
  .photo-hero { aspect-ratio: 4 / 3; }
}

/* --- Photo slots --------------------------------------------------------- */
/* Every place a real photograph belongs but none exists yet. Deliberately
 * visible and plain: this is what Heather looks at to decide what to shoot and
 * what to send (#7). When a photo lands, the whole .photo-slot element is
 * replaced by a .photo figure. */
.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 180px;
  background: repeating-linear-gradient(
    135deg, var(--color-surface), var(--color-surface) 12px,
    #e9edf0 12px, #e9edf0 24px);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.photo-slot-wide { min-height: 260px; }
.photo-slot span { display: block; max-width: 30ch; }

/* --- Testimonials -------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.quote { margin: 0; padding: 20px; border-left: 4px solid var(--color-accent); background: var(--color-surface); }
.quote blockquote { margin: 0 0 0.6em; }
.quote figcaption { font-weight: 700; color: var(--color-muted); }

/* --- Form ---------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(min(240px, 100%), 1fr); gap: 40px; align-items: start; }
@media (max-width: 800px) { .form-layout { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 16px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 10px; font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-white);
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px 16px; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.95rem; color: var(--color-muted); }

/* Status and fallback chips written by js/lead-form.js. Kept here rather than
 * inline in the script so the palette stays in one file. */
.form-status:empty { display: none; }
.form-status {
  margin-top: 16px; padding: 10px 14px; border-radius: var(--radius);
  background: #fff3cd; color: #6b4500;
}
.form-thanks {
  padding: 20px; border-radius: var(--radius);
  background: #e8f5e9; color: #1b5e20; outline: none;
}
.form-thanks h2 { color: inherit; }
.form-fallback {
  padding: 16px 20px; border-radius: var(--radius); font-size: 1.05rem;
  background: #fff3cd; color: #6b4500;
}
.form-fallback a { color: inherit; font-weight: 700; white-space: nowrap; }
.contact-card { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 20px; background: var(--color-surface); }
.contact-card .big { font-size: 1.5rem; font-weight: 800; }
.contact-card .big a { text-decoration: none; color: var(--color-brand); }

/* --- CTA band + footer --------------------------------------------------- */
.cta-band { background: var(--color-brand); color: var(--color-brand-contrast); padding: 40px 0; }
.cta-band h2 { color: var(--color-brand-contrast); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-row p { margin-bottom: 0; }

.site-footer { background: var(--color-brand-dark); color: #d7dee3; padding: 40px 0 0; font-size: 0.95rem; }
.site-footer a { color: var(--color-white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.footer-name { font-weight: 800; color: var(--color-white); font-size: 1.1rem; }
.footer-head { font-weight: 700; color: var(--color-white); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 0.4em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 3px 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 24px; padding-top: 16px; padding-bottom: 16px; }
.footer-base p { margin: 0; }
