/*
  Tixo Vending — Base Styles
  Palette from styling.txt:
  - Dark: #181836
  - Yellow: #FFD03D
  - Light: #E6E9E5
  Fonts: Inter (text), Jaldi (logo/head accents)
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/Inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Jaldi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Jaldi-Bold.woff2') format('woff2');
}

:root {
  --color-dark: #181836;
  --color-yellow: #FFD03D;
  --color-light: #E6E9E5;
  --color-bg: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light);
  transition: box-shadow .2s ease;
}
header.scrolled { box-shadow: var(--shadow-sm); }

nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.logo img { height: 42px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 20px; padding: 0; margin: 0; }
.nav-links a { padding: 10px 12px; border-radius: 8px; font-weight: 600; }

.btn-primary { background: var(--color-yellow); color: var(--color-dark); padding: 10px 16px; border-radius: 10px; font-weight: 700; border: 2px solid var(--color-yellow); transition: transform .1s ease, box-shadow .2s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-secondary { border: 2px solid var(--color-yellow); color: var(--color-dark); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.btn-secondary:hover { background: var(--color-yellow); }

.mobile-menu-toggle { display: none; width: 36px; height: 28px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { width: 100%; height: 3px; background: var(--color-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
#hero { padding: 96px 0 72px; }
#hero .hero-content h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
#hero .hero-content p { font-size: 1.125rem; max-width: 52ch; margin-bottom: 20px; }

/* Process / Services */
#services { padding: 72px 0; }
.section-title { font-size: 2rem; margin: 0 0 28px; }
.process-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-step { background: #fff; border: 1px solid var(--color-light); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.step-number { width: 36px; height: 36px; border-radius: 50%; background: var(--color-yellow); color: var(--color-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }

/* About */
.bg-light { background: var(--color-light); }
#about { padding: 72px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.placeholder-img { height: 260px; border-radius: 14px; border: 1px solid var(--color-light); display: grid; place-items: center; background: #fff url('../assets/tixo-logo-vertical_dark.svg') center/120px no-repeat; color: var(--color-dark); font-family: 'Jaldi', system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; }

/* FAQ */
#faq { padding: 72px 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--color-light); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; }
.faq-answer { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease; color: rgba(24,24,54,.9); }
.faq-item.open .faq-answer { padding: 0 18px 16px; max-height: 300px; }
.faq-item .icon { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--color-yellow); color: var(--color-dark); font-weight: 900; }

/* Contact */
#contact { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-details { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.contact-details a { text-decoration: underline; }

form#contact-form { background: #fff; border: 1px solid var(--color-light); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.form-group { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 600; }
input, textarea { font: inherit; padding: 12px 12px; border: 1px solid var(--color-light); border-radius: 10px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, textarea:focus { border-color: var(--color-yellow); box-shadow: 0 0 0 3px rgba(255,208,61,.25); }
button { font: inherit; cursor: pointer; }

/* Footer */
footer { background: var(--color-dark); color: var(--color-light); padding: 32px 0 12px; margin-top: 48px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(230,233,229,.15); }
.footer-logo img { height: 30px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-socials .social-link { color: var(--color-yellow); font-weight: 700; }
.footer-bottom { text-align: center; font-size: .9rem; opacity: .85; padding-top: 10px; }

/* Reveal animations (insliding) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; position: absolute; right: 0; top: 80px; background: #fff; border: 1px solid var(--color-light); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; min-width: 220px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .mobile-menu-toggle { display: flex; }
}
