/* ==========================================================================
   grirmyn Studio - Designer Premium Theme
   ========================================================================== */

:root {
  --bg-primary: #fbfaf7;
  --bg-surface: #ffffff;
  --bg-dark: #121418;
  --bg-dark-surface: #1a1d23;
  --bg-subtle: #f2efe9;
  
  --text-main: #18191c;
  --text-muted: #5e626c;
  --text-inverse: #f7f8fa;
  --text-inverse-muted: #9ba0aa;

  --accent: #c44d2d;
  --accent-hover: #aa3d20;
  --accent-light: #faeee9;

  --border: #e6e3dc;
  --border-subtle: #eeece6;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  --container-max: 1180px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--text-main);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}
.section-dark .section-subtitle {
  color: #e57c60;
}
.section-dark .section-description {
  color: var(--text-inverse-muted);
}

.section-light {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}
p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.brand-icon {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--text-main);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}
.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
}
.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

/* Specs Bar */
.specs-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.specs-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.spec-node {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.spec-node svg {
  color: var(--accent);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.feature-bullets, .bullet-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-bullets li, .bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.feature-bullets li::before, .bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Workflow Steps */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px 24px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step-card h4 {
  color: var(--text-inverse);
  font-size: 1.15rem;
}
.step-card p {
  color: var(--text-inverse-muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.pricing-tag {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.pricing-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-amount .currency {
  font-size: 1.8rem;
  font-weight: 700;
}
.pricing-amount .val {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-amount .unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}
.pricing-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.p-md { padding: 28px; }
.p-lg { padding: 36px; }

/* FAQ Accordion */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-arrow {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
details[open] .faq-arrow {
  transform: rotate(45deg);
}
.faq-answer {
  padding-bottom: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0;
}
.cta-subtitle {
  color: var(--text-inverse-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Page Titles */
.page-title-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.page-title-banner .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.spec-list {
  list-style: none;
  font-size: 0.9rem;
}
.spec-list li {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.spec-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.spec-list strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 2px;
}
.spec-list span {
  color: var(--text-muted);
}

/* Services Detail */
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.service-detail-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}
.service-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.badge-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-icon {
  color: var(--accent);
  margin-top: 3px;
}
.contact-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.contact-link:hover {
  color: var(--accent);
}
.inquiry-guidelines {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

/* Legal Pages */
.legal-page {
  padding: 64px 0 96px;
}
.legal-container {
  max-width: 780px;
}
.legal-section {
  margin-top: 40px;
}
.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* Error 404 */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 96px 0;
}
.error-code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.error-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 72px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.footer-meta {
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
  margin-bottom: 6px;
}
.footer-meta a {
  color: #fff;
}
.footer-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  font-size: 0.9rem;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-inverse-muted);
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
}
.footer-rate-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px 0;
  z-index: 9999;
  display: none;
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 280px;
}
.cookie-text a {
  color: var(--text-main);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}

/* Helpers */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }
.mb-md { margin-bottom: 24px; }
.small { font-size: 0.82rem; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-container {
    grid-template-columns: 1fr;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .specs-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}