/* =========================================================
   Fonts
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* =========================================================
   Design Tokens
   ========================================================= */

:root {
  --purple: #230052;
  --purple2: #33006f;
  --gold: #d89b00;
  --gold2: #f0bc31;
  --ink: #180733;
  --muted: #4a4058;
  --line: #eadcbf;
  --cream: #fffaf0;
  --soft: #fffdf8;
}

/* =========================================================
   Global Reset and Base Typography
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body {
  min-width: 320px;
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  margin: 0;
}

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

/* =========================================================
   Accessibility Utilities
   ========================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple);
    color: #fff;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* =========================================================
   Shared Layout Utilities
   ========================================================= */
/* Used across many independent components/pages - kept global
   rather than isolated, since Blazor CSS-isolation scopes styles
   per-component and these classes are reused across component
   boundaries (e.g. .page-hero is used by AboutHero, ServicesHero,
   and ContactHero; .btn is used by Home's hero and ServicesHero). */

.section-pad {
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 40px;
}

.compact {
  padding-top: 17px;
  padding-bottom: 17px;
}

/* =========================================================
   Shared Buttons and Calls to Action
   ========================================================= */

.btn,
.btn-inline,
.button-lift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  padding: 0 22px;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  will-change: transform;
}

.btn.primary {
  background: var(--purple);
  color: #fff;
}

.btn.secondary {
  border: 1.7px solid var(--purple);
  color: var(--purple);
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn-inline:hover,
  .button-lift:hover {
    transform: translateY(-3px);
  }
  
  .btn.primary:hover {
    box-shadow: 0 10px 18px #23005240;
  }
  
  .btn.secondary:hover {
    box-shadow: 0 8px 14px #23005226;
  }
}

.btn:active,
.btn-inline:active,
.button-lift:active {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 11px 19px;
  font-size: 12px;
  font-weight: 900;
  height: auto;
}

/* =========================================================
   Shared Text Treatments
   ========================================================= */

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  margin: 0 0 6px;
}

.gold {
  color: var(--gold) !important;
  font-weight: 900;
}

/* Shared "page banner" used by every secondary page's hero
   (About, Services, Contact) */
.page-hero {
  max-width: 1024px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(90deg, #fff7e8 0%, #fff 58%, #fff 100%);
}

.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 38px;
  line-height: 1.08;
  margin: 0 0 10px;
}

.page-hero-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 18px;
}

.page-hero p {
  font-size: 16px;
  line-height: 1.55;
  color: #151020;
  margin: 0 0 14px;
}

.page-hero p:last-child {
  margin-bottom: 0;
}

/* Shared "section heading" used by both About-page editorial
   sections (Mission/Vision and Core Values) */
.about-section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-section-heading h2 {
  position: relative;
  padding-bottom: 18px;
  margin: 0;
}

.about-section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--gold);
}

/* Shared editorial body-copy treatment. Used by any long-form text
   page (About Us, Privacy Policy, FAQ, Careers) - kept global rather
   than isolated per component, since it's reused across page
   component boundaries the same way .page-hero is. */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: #171020;
  margin: 0 0 16px;
  text-align: left;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose p.closing-line {
  font-weight: 800;
  color: var(--purple);
  font-size: 17px;
}

.prose h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.prose li {
  font-size: 15px;
  line-height: 1.7;
  color: #171020;
  margin-bottom: 6px;
}

.prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* =========================================================
   Responsive Styles (shared utilities only)
   ========================================================= */
/* Component-specific responsive rules live in each component's
   own .razor.css file next to it. */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-inline,
  .button-lift {
    transition: box-shadow 150ms ease, filter 150ms ease;
  }

  .btn:hover,
  .btn-inline:hover,
  .button-lift:hover,
  .btn:active,
  .btn-inline:active,
  .button-lift:active {
    transform: none;
  }
}

@media (max-width: 900px) {
  .btn {
    height: 44px;
  }

  .page-hero {
    padding: 32px 22px;
  }

  .page-hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    padding: 9px 8px;
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
}

#app {
  min-height: 100vh;
}

.app-loading {
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--cream);
  text-align: center;
}

.app-loading-logo {
  display: block;
  margin: 0 auto;
  width: auto;
  height: 138px;
  max-width: 100%;
}

.app-loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: app-loading-spin 0.8s linear infinite;
}

@media (max-width: 900px) {
  .app-loading-logo {
    height: 100px;
  }

  .app-loading-spinner {
    width: 72px;
    height: 72px;
    border-width: 8px;
  }
}

.app-loading-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}
