/* ============================================================
   MAIN.CSS — Reset, variables, typography, layout, navbar, FAB
   ============================================================ */

/* -------- Variables -------- */
:root {
  /* Corbi colors */
  --color-primary:       #D46509;
  --color-primary-dark:  #A84F06;
  --color-primary-soft:  #E89554;
  --color-dark:          #1F1F1F;
  --color-dark-2:        #2A2A2A;
  --color-cream:         #FAF8F5;
  --color-cream-2:       #F4EDE3;
  --color-white:         #FFFFFF;
  --color-text:          #1F1F1F;
  --color-text-muted:    #6B6B6B;
  --color-border:        #ECE7E0;

  /* Typography */
  --font-display: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Wix Madefor Text', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --container-padding: 32px;
  --section-padding-y: 120px;
  --navbar-height: 76px;

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-md: 0 10px 30px rgba(34, 34, 59, 0.08);
  --shadow-lg: 0 20px 60px rgba(34, 34, 59, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
input, textarea { font: inherit; }

/* -------- Typography -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  font-weight: 700;
}

p {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-top: 16px;
}

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

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary  { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-white    { background: var(--color-white); color: var(--color-primary); }
.btn-outline  { background: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.btn-dark     { background: var(--color-dark); color: var(--color-white); }
.btn-dark:hover { background: #11111e; }

.btn-pill {
  display: inline-block;
  background: var(--color-cream-2);
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  margin-top: 14px;
}

/* -------- Navbar -------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .25s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(31, 31, 31, 0.06);
}

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

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}
.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* -------- Language toggle -------- */
.lang-toggle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* -------- Mobile menu button -------- */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------- Floating Action Button (chat) -------- */
.fab-chat {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(232, 119, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform .2s ease, background .2s ease;
}
.fab-chat:hover { background: var(--color-primary-dark); transform: scale(1.08); }
.fab-chat svg { width: 26px; height: 26px; }

/* -------- Image placeholders -------- */
.image-placeholder {
  background: linear-gradient(135deg, #E8E4DC 0%, #DAD4C8 100%);
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px dashed rgba(34, 34, 59, 0.18);
}

/* -------- Responsive (basics — mobile polish later) -------- */
@media (max-width: 900px) {
  :root {
    --section-padding-y: 80px;
    --container-padding: 20px;
  }
  .navbar-nav { display: none; }
  .menu-btn { display: flex; }

  .navbar-nav.is-open {
    display: block;
    position: absolute;
    inset: var(--navbar-height) 0 auto 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 20px var(--container-padding);
  }
  .navbar-nav.is-open ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
