/* ========================================
   RENTU — Common Styles
   ======================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }

/* --- Design Tokens --- */
:root {
  --brand: #FF7D55;
  --brand-hover: #e86d45;
  --graphite: #2C3744;
  --ice: #F1F6FC;
  --ice-alt: #EFF3F8;
  --card-blue: #43536A;
  --muted: #606060;
  --white: #fff;
  --radius-card: 20px;
  --radius-pill: 999px;
  --max-w: 1200px;
  --shadow-card: 0 6px 20px rgba(0,0,0,.08);
  --font-h: 'Comfortaa', sans-serif;
  --font-b: 'Montserrat', sans-serif;
}

/* --- Page Transitions --- */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body > main {
  animation: pageIn .3s ease-out both;
}


body.page-exit > main,
body.page-exit > .footer {
  opacity: 0;
  transition: opacity .15s ease-in;
}

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

/* ========================================
   Navbar
   ======================================== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background .3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  height: 84px;
  padding: 0 24px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  width: auto;
  max-width: 180px;
  height: 36px;
}

.header__logo-img--white {
  display: none;
}

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

.header__nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  white-space: nowrap;
  transition: color .2s;
}

.header__nav a:hover {
  color: var(--brand);
}

.header__nav a.active {
  color: var(--brand);
}

.header__nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--brand);
  border-radius: 1px;
}

.header__cta {
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  background: var(--brand);
  border-radius: var(--radius-pill);
  transition: background .2s, transform .15s;
}

.header__cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* Burger */
.header__burger {
  z-index: 1001;
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.header__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Compact nav for mid-range screens */
@media (max-width: 1200px) and (min-width: 1101px) {
  .header__nav { gap: 20px; }
  .header__nav a { font-size: 14px; }
  .header__cta { padding: 8px 18px; font-size: 14px; }
}

/* Mobile nav */
@media (max-width: 1100px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    width: min(320px, 85vw);
    height: 100vh;
    padding: 100px 32px 32px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    transition: transform .3s ease;
    transform: translateX(100%);
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--ice);
  }

  .header__nav a.active::after {
    display: none;
  }

  .header__cta {
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }
}

/* --- RentuAI badge in navbar --- */
.nav-ai {
  padding: 5px 13px !important;
  color: #8B5CF6 !important;
  background: transparent;
  border-radius: 999px;
  animation: ai-breathe 3s ease-in-out infinite;
}
.nav-ai:hover {
  color: #7C3AED !important;
  background: rgba(139, 92, 246, 0.14) !important;
  box-shadow: 0 0 20px 8px rgba(139, 92, 246, 0.14) !important;
  animation: none !important;
}
.nav-ai.active {
  color: #8B5CF6 !important;
}
.nav-ai.active::after { display: none; }

@keyframes ai-breathe {
  0%, 100% {
    background: rgba(139, 92, 246, 0.0);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    background: rgba(139, 92, 246, 0.18);
    box-shadow: 0 0 32px 16px rgba(139, 92, 246, 0.2);
  }
}

/* --- Navbar dark variant (AI page) --- */
body[data-page="ai"], body[data-page="404"] .header {
  background: rgba(26, 30, 46, .85);
  border-bottom-color: rgba(255, 255, 255, .06);
}
body[data-page="ai"], body[data-page="404"] .header__logo-img { display: none; }
body[data-page="ai"], body[data-page="404"] .header__logo-img--white { display: block; }
body[data-page="ai"], body[data-page="404"] .header__nav a {
  color: rgba(255, 255, 255, .8);
}
body[data-page="ai"], body[data-page="404"] .nav-ai {
  color: #C4B5FD !important;
}
body[data-page="ai"], body[data-page="404"] .nav-ai:hover {
  color: #DDD6FE !important;
}
body[data-page="ai"], body[data-page="404"] .header__nav a:hover {
  color: #fff;
}
body[data-page="ai"], body[data-page="404"] .header__nav a.active {
  color: var(--brand);
}
body[data-page="ai"], body[data-page="404"] .header__burger span {
  background: #fff;
}

@media (max-width: 1100px) {
  body[data-page="ai"], body[data-page="404"] .header__nav {
    background: var(--graphite);
  }
  body[data-page="ai"], body[data-page="404"] .header__nav a {
    color: rgba(255,255,255,.85);
    border-bottom-color: rgba(255,255,255,.1);
  }
  body[data-page="ai"], body[data-page="404"] .header__nav a:hover {
    color: #fff;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 56px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  background: var(--graphite);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-w);
  padding: 0 24px;
  margin: 0 auto;
}

.footer__logo img {
  width: auto;
  max-width: 130px;
  height: 24px;
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-text {
  max-width: 300px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__phone-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
}

.footer__phone {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  transition: color .2s;
}

.footer__phone-item:hover .footer__phone {
  color: var(--brand);
}

.footer__phone-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-title {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.footer__nav a {
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__fasie {
  max-width: var(--max-w);
  padding: 0 24px;
  margin: 40px auto 0;
  text-align: center;
}

.footer__fasie img {
  display: inline-block;
  max-height: 56px;
  opacity: .7;
  transition: opacity .2s;
}

.footer__fasie img:hover {
  opacity: 1;
}

.footer__ai-notice {
  max-width: var(--max-w);
  padding: 20px 24px;
  margin: 32px auto 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer__bottom {
  max-width: var(--max-w);
  padding: 20px 24px;
  margin: 32px auto 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__bottom a {
  color: rgba(255, 255, 255, .55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom a:hover {
  color: var(--white);
}

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

  .footer__brand-text {
    max-width: 100%;
  }
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s;
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 48px 56px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  transition: transform .3s;
  transform: translateY(20px);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
  transition: background .2s, color .2s;
}

.modal__close:hover {
  color: var(--graphite);
  background: var(--ice);
}

.modal__title {
  margin-bottom: 12px;
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 700;
  color: var(--graphite);
  text-align: center;
}

.modal__subtitle {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.modal__subtitle p + p {
  margin-top: 8px;
}

/* Login options */
.login-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.login-option {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 40px 24px;
  text-decoration: none;
  background: var(--ice);
  border-radius: var(--radius-card);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.login-option:hover {
  background: var(--ice-alt);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.login-option img {
  width: 80px;
  height: 80px;
}

.login-option__label {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 600;
  color: var(--graphite);
}

/* Contact form */
.form__group {
  margin-bottom: 16px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.5;
  color: var(--graphite);
  background: var(--ice);
  border: 1px solid #dce3eb;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 125, 85, .15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #999;
}

.form__textarea {
  min-height: 80px;
  resize: vertical;
}

.form__checkbox-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.form__checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form__checkbox-row a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand);
  border: none;
  border-radius: 12px;
  transition: background .2s, opacity .2s, transform .15s;
}

.form__submit:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.form__submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.form__success {
  padding: 20px 0;
  text-align: center;
}

.form__success h3 {
  margin-bottom: 8px;
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--graphite);
}

.form__success p {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ========================================
   Buttons
   ======================================== */
.btn--brand {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--brand);
  border: none;
  border-radius: var(--radius-pill);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn--brand:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(255, 125, 85, .3);
  transform: translateY(-2px);
}

.btn--ghost {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--graphite);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--graphite);
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s, transform .15s;
}

.btn--ghost:hover {
  color: var(--white);
  background: var(--graphite);
  transform: translateY(-1px);
}

/* ========================================
   Section Spacing
   ======================================== */
.section {
  padding: 80px 0;
}

.section--dark {
  color: var(--white);
  background: var(--graphite);
}

.section--ice {
  background: var(--ice);
}

.section-title {
  margin-bottom: 48px;
  font-family: var(--font-h);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--graphite);
  text-align: center;
}

.section--dark .section-title {
  color: var(--white);
}

/* ========================================
   Reveal Animation
   Master source. Per-page overrides may add
   hover behaviors, but should not redefine
   opacity/transform on the base class.
   ======================================== */
.reveal-item {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
  transform: translateY(24px);
}

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

