/* LA Vakil — printable intake sheets (screen + print) */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;600;700&display=swap");

:root {
  --ink: #0d2a4e;
  --navy2: #1a4f8a;
  --line: #c5d9f0;
  --muted: #2c4a6e;
  --cream: #f8eec5;
  --orange: #f08030;
  --green: #2e7d52;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  font-size: 11pt;
  line-height: 1.45;
  background: #f0f6fd;
}

/* Faint watermark — visible on screen and print */
.wm {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wm b {
  position: absolute;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: rgba(13, 42, 78, 0.055);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  transform: rotate(-42deg);
  white-space: nowrap;
  user-select: none;
}
.wm b:nth-child(1) {
  top: 8%;
  left: -5%;
}
.wm b:nth-child(2) {
  top: 38%;
  right: -8%;
}
.wm b:nth-child(3) {
  bottom: 12%;
  left: 10%;
}
.wm b:nth-child(4) {
  top: 62%;
  left: 25%;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--ink), var(--navy2));
  color: #fff;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.toolbar a {
  color: #93bfe8;
  font-weight: 600;
}
.toolbar button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.toolbar button:hover {
  filter: brightness(1.05);
}

.sheet {
  position: relative;
  z-index: 1;
  max-width: 8.3in;
  margin: 0 auto;
  padding: 20px 22px 32px;
  background: #fff;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 3px solid var(--navy2);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.sheet-header img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.sheet-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.sheet-header .tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sheet-header .contact {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.sheet-header .contact a {
  color: var(--navy2);
  font-weight: 600;
}

.note-banner {
  background: linear-gradient(135deg, #e8f4ff, #f0f6fd);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy2);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
  border-radius: 0 8px 8px 0;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
h2:first-of-type {
  margin-top: 0;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
@media (max-width: 640px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

.fg {
  margin-bottom: 10px;
}
.fg label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.line {
  border-bottom: 1px solid var(--ink);
  min-height: 22px;
}
.lines {
  border: 1px solid var(--line);
  min-height: 72px;
  border-radius: 4px;
  background: linear-gradient(to bottom, transparent 95%, var(--line) 95%);
  background-size: 100% 24px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 8px 0 14px;
}
table.data th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
}
table.data td {
  border: 1px solid var(--line);
  padding: 8px;
  min-height: 28px;
  vertical-align: top;
}

.cb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 8px 0;
  font-size: 0.85rem;
}
.cb label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Deals / cross-promo flyer block */
.deals-flyer {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5a9c2e 0%, var(--green) 100%);
  color: #fff;
  break-inside: avoid;
}
.deals-flyer h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: #fff;
}
.deals-flyer p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}
.deals-flyer ul {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}
.deals-flyer .deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .deals-flyer .deals-grid {
    grid-template-columns: 1fr;
  }
}
.deals-flyer .tile {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  line-height: 1.45;
}
.deals-flyer .tile strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.95;
}
.deals-flyer .foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
.deals-flyer .foot a {
  color: #fff;
  text-decoration: underline;
}

.sheet-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  line-height: 1.5;
}

.page-break {
  break-before: page;
  page-break-before: always;
}

/* Cover page — visible on screen and as the first printed page */
.print-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: min(70vh, 520px);
  padding: 40px 24px 36px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom: 3px solid var(--navy2);
  margin: 0 auto;
  max-width: 8.3in;
}
.print-cover img {
  height: 88px;
  width: auto;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.print-cover .print-cover-site {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0 0 18px;
}
.print-cover .print-cover-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media print {
  body {
    background: #fff;
  }
  .toolbar {
    display: none !important;
  }
  .print-cover {
    min-height: 10.25in;
    max-width: none;
    margin: 0;
    border-bottom: none;
    padding: 0.75in 0.5in;
    page-break-after: always;
    break-after: page;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-cover img {
    height: 88px;
    margin-bottom: 32px;
  }
  .print-cover .print-cover-site {
    font-size: 2rem;
    margin: 0 0 20px;
  }
  .print-cover .print-cover-phone {
    font-size: 1.15rem;
  }
  .sheet {
    padding: 0;
    max-width: none;
  }
  .wm b {
    color: rgba(13, 42, 78, 0.05);
  }
  a {
    color: var(--ink);
    text-decoration: none;
  }
}
