/* ==========================================================================
   RAYHEP — Air Conditioning, Solar Panel Cleaning & Wine Cellar Cooling
   Design language: "Service Ticket" — every callout is a dispatched job,
   so tickets (perforated stubs, job numbers, mono labels) are the visual
   signature carried across hero, pricing, and booking components.
   Teal = cool comfort (air conditioning), amber = clean energy (solar).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Color */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #16191C;
  --ink-soft: #565D62;
  --ink-faint: #8A9095;
  --line: #E3E1DA;
  --accent: #2F6F5E;       /* deep teal-green — cool comfort */
  --accent-ink: #163832;
  --accent-soft: #E4EEEB;
  --spark: #E2762A;        /* warm amber — clean energy / CTA */
  --spark-ink: #7A3A10;
  --spark-soft: #FBE8D8;
  --danger: #B3432B;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--spark);
  border-radius: 50%;
  display: inline-block;
}

.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--spark);
  color: #fff;
}
.btn-primary:hover { background: #C9631C; }
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.btn-ghost:hover { background: #d7e6e1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo .dot { color: var(--spark); }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .nav-links, .nav-tel { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
}

/* ---------- Ticket component (signature element) ---------- */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -25px rgba(22, 25, 28, 0.25);
}
.ticket-notch {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-notch.left { left: -12px; }
.ticket-notch.right { right: -12px; }
.ticket-perf {
  border-top: 1.5px dashed var(--line);
  margin: 0;
}
.ticket-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.1rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.hero-stats div span {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero booking ticket widget */
.quote-ticket { padding: 30px 30px 26px; }
.quote-ticket .ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.quote-ticket h3 { margin-bottom: 2px; }
.field-row { margin-bottom: 14px; }
.field-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-row select,
.field-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}
.field-row select:focus,
.field-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  margin-top: 4px;
}
.quote-total .amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 44px; }

.alt-bg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.service-card .price-tag {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card .price-tag .price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-ink);
}
.service-card a.details { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 24px 0 0;
  border-right: 1.5px dashed var(--line);
}
.step:last-child { border-right: none; padding-right: 0; }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--spark);
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { border-right: none; border-bottom: 1.5px dashed var(--line); padding: 0 0 24px; }
  .step:last-child { border-bottom: none; }
}

/* ---------- Testimonials ---------- */
.testimonial {
  padding: 30px;
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-style: italic;
}
.testimonial .who {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7cbce; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Forms (booking page) ---------- */
.form-card { padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  resize: vertical;
  min-height: 90px;
}
.summary-card { padding: 30px; position: sticky; top: 100px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.summary-line.total {
  border-bottom: none;
  border-top: 1.5px dashed var(--line);
  margin-top: 6px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
}
.badge-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 14px;
}
.form-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: -8px;
  margin-bottom: 12px;
  display: none;
}
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

/* ---------- Utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Real photography ---------- */
.logo-mark {
  height: 30px;
  width: auto;
  display: block;
}
.photo-banner {
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 8px;
}
.service-card .photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: 1fr; }
}
