:root {
  --bg: #f5f3f0;
  --bg-alt: #ffffff;
  --bg-alt-soft: #f0e5da;
  --primary: #8b1e1e;        /* deep red from logo */
  --primary-dark: #6c1515;
  --accent: #c28c5c;         /* warm wood accent */
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e0d2c4;
  --radius: 0.85rem;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section-light {
  background-color: #faf7f3;
}

.section-alt {
  background: radial-gradient(circle at top left, #f9f1e6, #f5f3f0 45%, #ede7de 90%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

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

/* Header */

.site-header {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo img {
  //width: 80px;
  width: 160px;  
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  //font-size: 0.90rem;
  font-size: 0.78rem;  
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
}

.main-nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.header-cta {
  justify-self: end;
}

@media (max-width: 800px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: left;
  }

  .main-nav {
    justify-self: flex-start;
  }

  .header-cta {
    justify-self: flex-start;
  }
}

/* Hero */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.02rem;
}

.hero-bullets {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-bullets li + li {
  margin-top: 0.2rem;
}

.hero-actions {
  margin: 1.1rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-subnote {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-subnote2 {
  font-size: 1.5rem;
  color: var(--muted);
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 1.3rem;
  display: block;
  box-shadow: var(--shadow-soft);
  border: 3px solid rgba(194, 140, 92, 0.5);
}

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

  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(139, 30, 30, 0.3);
}

.btn.secondary {
  background-color: #fff;
  color: var(--primary);
  border-color: rgba(139, 30, 30, 0.35);
}

.btn.secondary:hover {
  background-color: #fdf4ec;
}

/* Cards & services */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: radial-gradient(circle at top, #fff7ef, #ffffff 60%);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(194, 140, 92, 0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.95rem;
}

.card li + li {
  margin-top: 0.18rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

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

.gallery-item {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 210, 196, 0.8);
}

.gallery-item img {
  width: 100%;
  border-radius: 0.7rem;
  display: block;
  margin-bottom: 0.4rem;
}

.gallery-item figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

/* About */

.about-highlight {
  background: linear-gradient(135deg, #fdf4ec, #f6e2c9);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(194, 140, 92, 0.5);
}

/* Checklist */

.checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.9rem;
  color: var(--primary);
}

/* CTA */

.cta-section {
  background: linear-gradient(120deg, var(--primary-dark), #4b5563);
  color: #f9fafb;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
}

.cta-inner p {
  margin: 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-section .btn.secondary {
  background-color: transparent;
  border-color: #e5e7eb;
  color: #f9fafb;
}

.cta-section .btn.secondary:hover {
  background-color: rgba(249, 250, 251, 0.1);
}

@media (max-width: 820px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Contact page layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

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

.contact-form-wrapper {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.contact-qr img {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-qr span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Form */

.contact-form .form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  font: inherit;
  background-color: #fdfaf7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  background-color: #1f2933;
  color: #e5e7eb;
  padding: 1.5rem 0 1.9rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fbbf99;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-qr img {
  width: 86px;
  height: auto;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-qr span {
  font-size: 0.75rem;
  color: #e5e7eb;
}

.copyright {
  flex-basis: 100%;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Headings */

h1, h2, h3 {
  letter-spacing: -0.02em;
}

.notary-highlight {
  background: linear-gradient(135deg, #fff7ef, #f5f3f0);
  border-radius: var(--radius);
  padding: 1.75rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(194, 140, 92, 0.55);
}

.notary-highlight h2 {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

.notary-highlight p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.notary-highlight ul {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.notary-highlight li + li {
  margin-top: 0.2rem;
}

.notary-label {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(139, 30, 30, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.notary-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.notary-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.brand-subline {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}


/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

/* Show state */
.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Modal box */
.modal {
  background: var(--bg-alt);
  padding: 2rem 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

/* Scale in when overlay shows */
.modal-overlay.show .modal {
  transform: scale(1);
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.modal p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--muted);
}
