/* Modern spa-inspired CSS */
@layer reset, base, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
}

@layer base {
  :root {
    --color-primary: #a855f7;
    --color-primary-hover: #9333ea;
    --color-bg: #fefcff;
    --color-surface: rgba(255, 255, 255, 0.95);
    --color-text: #5c4a6e;
    --color-text-muted: #9585a8;
    --color-border: rgba(216, 200, 253, 0.25);
    --color-accent: #d8b4fe;

    --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Alex Brush", cursive;
    --font-size-base: 1rem;
    --font-size-lg: 1.35rem;
    --font-size-xl: 2.25rem;

    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 2px 8px rgb(124 58 237 / 0.06);
    --shadow-md: 0 8px 24px rgb(124 58 237 / 0.08);
    --shadow-lg: 0 16px 48px rgb(124 58 237 / 0.1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  html {
    color-scheme: light;
  }

  body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: linear-gradient(180deg, #f9f0ff 0%, #ffffff 30%);
    background-attachment: fixed;
    line-height: 1.7;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
}

@layer components {
  /* Header */
  .site-header {
    padding: 0;
    text-align: center;
    background: transparent;
    border-bottom: none;
    position: relative;
  }

  .site-logo {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0;
  }

  .site-header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-shadow: 0 1px 2px rgb(124 58 237 / 0.1);
  }

  /* Hero image */
  .hero {
    width: min(900px, 100% - 2rem);
    margin-inline: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* Container */
  .container {
    flex: 1;
    width: min(860px, 100% - 1rem);
    margin-inline: auto;
    padding-block: 2rem;
    padding-inline: 0.5rem;
  }

  /* Hamburger menu button */
  .menu-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
  }

  .hamburger {
    display: flex;
    appearance: none;
    border: none;
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-left: auto;
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
  }

  .hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .tabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 56px;
    right: 0;
    min-width: 180px;
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    border: 1px solid var(--color-border);
  }

  .tabs.open {
    display: flex;
  }

  .tabs.open .tab {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  /* Tabs navigation */
  .tab {
    appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    border-bottom: none;
    margin-bottom: 0;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-align: center;
    min-width: 0;
  }

  .tab:hover {
    color: var(--color-primary);
    background: rgba(167, 139, 250, 0.1);
  }

  .tab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius);
  }

  .tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    box-shadow: 0 4px 12px rgb(147 51 234 / 0.25);
  }

  /* Tab panels */
  .tab-panels {
    margin-top: 2rem;
  }

  .tab-panel {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    animation: fade-in 400ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .tab-panel[hidden] {
    display: none;
  }

  .tab-panel h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-primary);
  }

  .tab-panel p {
    color: var(--color-text-muted);
    line-height: 1.8;
  }

  /* Pricing list */
  .pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(167, 139, 250, 0.05);
    border-radius: 0.5rem;
  }

  .pricing-service {
    font-weight: 500;
    color: var(--color-text);
  }

  .pricing-price {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
  }

  /* Services list */
  .services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .services-list li {
    padding: 1.25rem 1.5rem;
    background: rgba(167, 139, 250, 0.05);
    border-left: 3px solid var(--color-accent);
    border-radius: 0.5rem;
  }

  .services-list h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
  }

  .services-list p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      translate: 0 8px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  /* Footer */
  .site-footer {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: none;
    opacity: 0.8;
  }
}

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