/* ══════════════════════════════════════════════════
   rimajin — Main Stylesheet (Clean Minimal Design)
   ══════════════════════════════════════════════════ */

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

:root {
  /* Colors — black + leaf green */
  --color-bg: #0b0d0b;
  --color-bg-off: #121512;
  --color-text: #f2f4f2;
  --color-text-secondary: #b5bdb5;
  --color-text-muted: #8a938a;
  --color-green: #3CB43C;
  --color-green-dark: #2D8C2D;
  --color-green-light: #62d062;
  --color-border: #2a322a;
  --color-border-light: #1c221c;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-height: 80px;
  --section-pad: 80px;
  --container-max: 1100px;

  /* Radius */
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

input,
textarea,
select {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

/* ══════════ NAVIGATION ══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-green);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-login:hover {
  color: var(--color-text);
}

.nav-login svg {
  opacity: 0.7;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  gap: 12px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 1rem;
  padding: 8px 0;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile .nav-actions {
    display: flex;
  }
}

/* ══════════ HERO ══════════ */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: var(--color-bg);
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-green {
  color: var(--color-green);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

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

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-green-dark);
}

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

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ══════════ SERVICES (Homepage 3-col) ══════════ */
.services {
  padding-top: 40px;
  padding-bottom: var(--section-pad);
  background: var(--color-bg-off);
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card-clean {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s;
}

.service-card-clean:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}

.label-num {
  color: var(--color-green);
  font-weight: 700;
}

.service-card-clean h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.service-card-clean p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-brand .nav-logo {
  margin-bottom: 4px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--color-green);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.footer-bottom .license {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

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

/* ══════════ MODALS ══════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 420px;
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal .subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ══════════ FORMS ══════════ */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-green);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

/* Clean form inputs (about & contact pages) */
.form-label-caps {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-input-clean {
  width: 100%;
  padding: 14px 0;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-input-clean:focus {
  outline: none;
  border-bottom-color: var(--color-green);
}

.form-input-clean::placeholder {
  color: #bbb;
}

textarea.form-input-clean {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-footer a {
  font-size: 0.8rem;
  color: var(--color-green);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-toggle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 20px;
}

.form-toggle a {
  color: var(--color-green);
  font-weight: 600;
}

/* ══════════ TOAST ══════════ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--color-text);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ══════════ UTILITY ══════════ */
.text-gradient {
  color: var(--color-green);
}

/* ══════════ REVEAL ANIMATION ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ SCROLLBAR ══════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}