/* ==========================================================================
   DANAE NOVOTA ACCOUNTING — Stylesheet
   Minimalist, premium one-page design
   Color palette: soft pinks, warm yellows, clean neutrals
   ========================================================================== */

@font-face {
  font-family: 'Exotico';
  src: url('font/Exotico%20Demo.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Primary palette */
  --pink-50:  #fef6f5;
  --pink-100: #fce8e5;
  --pink-200: #f8cdc6;
  --pink-300: #f0a79b;
  --pink-400: #e88878;
  --pink-500: #d4635a;

  --yellow-50:  #fefcf4;
  --yellow-100: #fdf6de;
  --yellow-200: #faedb8;
  --yellow-300: #f5df88;
  --yellow-400: #eacd52;

  /* Neutrals */
  --white:    #ffffff;
  --gray-50:  #fafaf9;
  --gray-100: #f3f2f0;
  --gray-200: #e7e5e2;
  --gray-300: #d4d1cc;
  --gray-400: #a8a39c;
  --gray-500: #78736b;
  --gray-600: #5a5650;
  --gray-700: #3d3a36;
  --gray-800: #282623;
  --gray-900: #1a1917;

  /* Semantic */
  --bg:         var(--white);
  --bg-alt:     var(--gray-50);
  --text:       var(--gray-800);
  --text-muted: var(--gray-500);
  --accent:     var(--pink-400);
  --accent-soft: var(--pink-100);
  --warm:       var(--yellow-200);
  --warm-soft:  var(--yellow-50);
  --border:     var(--gray-200);
  --focus:      var(--pink-300);
  --error:      #c44;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1280px;
  --radius:    8px;
  --radius-lg: 14px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.required {
  color: var(--accent);
  font-weight: 500;
}

.optional {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gray-800);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
}

.btn-portal {
  background: var(--pink-100);
  color: var(--pink-500);
  font-weight: 600;
}
.btn-portal:hover {
  background: var(--pink-200);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gray-800);
}
.logo-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gray-800);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gray-900);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile open state */
.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* SVG illustration fills the entire hero as a backdrop */
.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

/* Text content centered in the hero */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: var(--space-xl) var(--space-md);
  margin: 80px auto 0; /* header offset */
  text-align: center;
}

.hero h1 {
  font-family: 'Exotico', 'Sacramento', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin: 0 auto var(--space-lg);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: var(--space-2xl) 0;
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background-color: var(--pink-50);
  transform: translateX(6px);
}

.service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-400);
  background: var(--pink-50);
  border-radius: 10px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-item:hover .service-icon {
  background-color: var(--white);
  color: var(--pink-500, #E88878);
  transform: scale(1.08) rotate(-4deg);
}

.service-body h3 {
  transition: color 0.3s var(--ease);
}

.service-item:hover .service-body h3 {
  color: var(--pink-500, #E88878);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-body {
  flex: 1;
  min-width: 0;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.service-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   INQUIRY (CTA + MODAL)
   ========================================================================== */
.inquiry {
  padding: var(--space-2xl) 0;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--yellow-50) 40%, var(--pink-50) 100%);
}

.inquiry .section-header {
  margin-bottom: 0;
}

.inquiry .section-header .btn {
  margin-top: var(--space-md);
}

/* Modal
   Whole-overlay-scroll pattern: the .modal overlay itself is the scroll
   container. The dialog is plain centered content with NO fixed height, NO
   internal scroll, NO transform, and NO viewport units — so there is no
   GPU/compositing layer or viewport-resize behavior that can blank it out. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: auto;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal[hidden] {
  display: none;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  /* Fixed so it always covers the viewport while the overlay scrolls. */
  position: fixed;
  inset: 0;
  background: rgba(40, 38, 35, 0.6);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  /* Block flow inside the scrolling overlay: the dialog's height is its
     content height (no flex shrink, no clipping), horizontally centered.
     Tall content simply makes the overlay scroll. */
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-body {
  padding: var(--space-xl) var(--space-lg);
}

.modal-header {
  margin-bottom: var(--space-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gray-600);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--pink-50);
  color: var(--pink-500, #E88878);
}

/* Lock scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .modal {
    padding: 0;
  }
  .modal-dialog {
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    min-height: 100%; /* fill at least the screen; grows + scrolls if taller */
  }
  .modal-body {
    padding: var(--space-lg) var(--space-md);
  }
}

.inquiry-form {
  max-width: 740px;
  margin: 0 auto;
}

/* Fieldset */
fieldset {
  border: none;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.03);
}

legend {
  float: left;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  padding: 0;
}

/* Clear the floated legend for direct children of fieldset */
fieldset > .form-group,
fieldset > .form-row {
  clear: both;
}

/* Form layout */
.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row.two-col > .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Labels */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(240, 167, 155, 0.2);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2378736b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Placeholder */
::placeholder {
  color: var(--gray-400);
}

/* ---------- Custom Select (inline dropdown, no native overlay) ---------- */
.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  text-align: left;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(240, 167, 155, 0.2);
  background: var(--white);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--focus);
  background: var(--white);
}

.custom-select-value.is-placeholder {
  color: var(--gray-400);
}

.custom-select-arrow {
  flex-shrink: 0;
  color: var(--gray-600);
  transition: transform 0.2s var(--ease);
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.custom-select-options[hidden] {
  display: none;
}

.custom-select-option {
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: var(--pink-50);
}

.custom-select-option[aria-selected="true"] {
  background: var(--pink-50);
  font-weight: 600;
}

/* ---------- Radio & Checkbox ---------- */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.radio-group.compact {
  gap: 0.75rem;
}

.radio-label,
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-700);
  cursor: pointer;
  margin-bottom: 0;
}

/* Hide native inputs */
.radio-label input,
.checkbox-label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Custom radio */
.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}
.radio-label input:checked + .radio-custom {
  border-color: var(--accent);
}
.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.radio-label input:focus-visible + .radio-custom {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Custom checkbox */
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* "Other" inline text input */
.inline-text {
  flex: 1;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  border-radius: 4px;
  min-width: 120px;
  max-width: 200px;
}

.inline-text:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkbox-other,
.radio-other {
  flex-basis: 100%;
}

/* Consent checkboxes */
.consent-label {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-600);
}

/* ---------- Form validation feedback ---------- */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(204, 68, 68, 0.12);
}

.form-group.has-error .radio-custom,
.form-group.has-error .checkbox-custom {
  border-color: var(--error);
}

.error-message {
  display: block;
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.35rem;
}

/* ---------- Submit ---------- */
.form-actions {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn-submit {
  padding: 1rem 3rem;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-error {
  margin-top: 0.85rem;
}

/* Success state */
.form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.03);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-800);
}

.form-success p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gray-700);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO SVG FLOATING
   ========================================================================== */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-float {
  animation: hero-float 4s ease-in-out infinite;
}

.hero-float-1 { animation-duration: 4.5s; }
.hero-float-2 { animation-duration: 5s;   animation-delay: 0.8s; }
.hero-float-3 { animation-duration: 4s;   animation-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.service-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablets — list stays a single column, nothing to override */

/* Mobile */
@media (max-width: 680px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  /* Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    transition: right 0.35s var(--ease);
    gap: var(--space-md);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-md);
  }

  .nav-links a {
    font-size: 1.125rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 101;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease), visibility 0s 0s;
    pointer-events: auto;
  }

  /* Hero */
  .hero-content {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
    max-width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  /* Reposition accounting SVGs on mobile — around the centered hero text */
  .hero-clipboard { transform: translate(120px, 120px) scale(0.65); }
  .hero-chart     { transform: translate(1180px, 130px) scale(0.85); }
  .hero-calc      { transform: translate(150px, 680px) scale(0.8); }
  .hero-coin      { transform: translate(220px, 250px); }

  /* Services */
  .service-item {
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .service-icon {
    width: 38px;
    height: 38px;
  }

  .service-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Form */
  fieldset {
    padding: var(--space-md);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
    gap: 0.6rem;
  }

  .inline-text {
    max-width: none;
  }

  /* Prevent auto-zoom on input focus in iOS Safari */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .btn-submit {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
