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

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: 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: #ffffff;
  --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);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

.header__logo-img {
  height: 28px;
  max-width: 140px;
  width: auto;
}

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

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

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

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

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

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

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

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

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

.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);
}

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

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

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

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

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

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

/* --- Navbar dark variant (AI page) --- */
body[data-page="ai"] .header {
  background: rgba(26, 30, 46, .85);
  border-bottom-color: rgba(255, 255, 255, .06);
}
body[data-page="ai"] .header__logo-img { display: none; }
body[data-page="ai"] .header__logo-img--white { display: block; }
body[data-page="ai"] .header__nav a {
  color: rgba(255, 255, 255, .8);
}
body[data-page="ai"] .header__nav a:hover {
  color: #fff;
}
body[data-page="ai"] .header__nav a.active {
  color: var(--brand);
}
body[data-page="ai"] .header__burger span {
  background: #fff;
}
@media (max-width: 900px) {
  body[data-page="ai"] .header__nav {
    background: var(--graphite);
  }
  body[data-page="ai"] .header__nav a {
    color: rgba(255,255,255,.85);
    border-bottom-color: rgba(255,255,255,.1);
  }
  body[data-page="ai"] .header__nav a:hover {
    color: #fff;
  }
}

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

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

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

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

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

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

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

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

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

.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);
  margin: 40px auto 0;
  padding: 0 24px;
  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);
  margin: 32px auto 0;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  border-top: 1px solid rgba(255, 255, 255, .08);
  line-height: 1.7;
}

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

.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;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

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

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

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

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

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

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

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

.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;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  border-radius: var(--radius-card);
  background: var(--ice);
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}

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

.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;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-b);
  color: var(--graphite);
  background: var(--ice);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.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;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.form__checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  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 {
  opacity: .45;
  cursor: not-allowed;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* ========================================
   Reveal Animation
   ======================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

