/* Executive Carpet & Tile Care - site styles
   Plain CSS, no build step. Colors and sizes live in :root below. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #ededed;
  --text: #000;
  --link: #001ebd;
  --panel: rgba(212, 212, 212, 0.3);
  --field: #d9d9d9;
  --rule: #d9d9d9;
  --focus: #001ebd;
  --heading-font: "Montserrat", Arial, sans-serif;
  --body-font: "Open Sans", Arial, sans-serif;
  --page-width: 60rem;
  --gutter: 3rem;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--bg);
  /* Same faint diagonal crosshatch as the original Carrd site */
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512' preserveAspectRatio='none'%3E%3Cpath d='M0 0L512 512M512 0L0 512' stroke='rgba(224,224,224,0.5)' stroke-width='1.01px' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 26px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--heading-font);
}
.skip-link:focus { top: 1rem; }

.page {
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}
.site-header .logo img { width: 250px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-right: 4rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--heading-font);
  font-size: 0.875rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

main { padding-top: 2.5rem; }

/* Home */
.welcome { text-align: center; }
.welcome h1 { margin-bottom: 1.75rem; }
.tagline {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 auto;
  max-width: 54rem;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 242px;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 2rem 2.5rem;
}
.intro p, .service-detail p { text-align: justify; }
.intro p { margin: 0 0 1.5rem; }
.intro p:last-child { margin-bottom: 0; }

.services-teaser {
  background: var(--panel);
  padding: 1.5rem 2rem 2.5rem;
}
.services-teaser h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.teaser-grid h3 {
  font-family: var(--body-font);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.teaser-grid p { margin: 0; font-size: 0.9rem; }

/* Services page */
.service-detail { padding-top: 2.5rem; }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail p { margin: 0 0 1rem; }
.service-detail img { margin: 1.5rem auto 0; }
.service-detail ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.divider {
  border: 0;
  height: 5px;
  background: var(--rule);
  margin: 2.5rem 0 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 2rem;
  align-items: start;
}
.contact-info { font-size: 1.1rem; margin: 0; }
.contact-info a { color: var(--text); }
form .field { margin-bottom: 1rem; }
form label {
  display: block;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
form .optional { font-weight: 400; }
form input, form textarea {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  border-bottom-color: #767676;
  border-radius: 0;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
}
form textarea { min-height: 10rem; resize: vertical; }
form input:focus, form textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-bottom-color: var(--focus);
}
form input[aria-invalid="true"], form textarea[aria-invalid="true"] {
  border-color: #b00020;
}
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button[type="submit"] {
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--body-font);
  font-size: 1rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  cursor: pointer;
}
button[type="submit"]:hover { background: #333; }
button[type="submit"][disabled] { opacity: 0.7; cursor: progress; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.error { color: #b00020; }
.form-status.success { color: #0a5c1e; }
.required-note { font-size: 0.9rem; margin: 0 0 1rem; }

/* Message pages (thanks / error / 404) */
.message-page { text-align: center; padding: 2rem 0 1rem; }
.message-page p { margin: 1rem auto; max-width: 36rem; }

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding: 0 2rem;
  text-align: center;
}
.site-footer hr { border: 0; height: 5px; background: var(--rule); margin: 0 0 1.25rem; }
.site-footer p { font-size: 0.8rem; margin: 0; }

/* Tablet */
@media (max-width: 980px) {
  html { font-size: 16px; }
  :root { --gutter: 2rem; }
  .site-nav ul { margin-right: 0; }
  .intro { margin-left: 0; margin-right: 0; }
}

/* Phone */
@media (max-width: 736px) {
  :root { --gutter: 1.25rem; }
  .site-header { flex-direction: column; padding-top: 1.5rem; }
  .site-nav ul { justify-content: center; gap: 0.25rem 1.75rem; }
  h1 { font-size: 1.75rem; }
  .intro { grid-template-columns: 1fr; }
  .intro figure, .intro img { margin-left: auto; margin-right: auto; }
  .intro img { width: 100%; max-width: 360px; }
  .intro p, .service-detail p { text-align: left; }
  .services-teaser { padding: 1.5rem 1.25rem 2rem; }
  .teaser-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  button[type="submit"] { width: 100%; }
}

figure { margin: 0; }
.intro figure img { width: 100%; }

h1.page-title { font-size: 1.5rem; }
.h3 { font-size: 1.25rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
address { font-style: normal; }
main:focus { outline: none; }
