/* =========================================================================
   OFFICE BUDDY — Brand tokens + base
   Colors pulled straight from the logo: navy #0C2B43 · azure #00A3EF
   Type: Poppins (display, friendly/rounded) · Inter (body) · Nunito (accents)
   ========================================================================= */

:root {
  /* --- Brand --- */
  --navy:        #0C2B43;   /* "Office" — headings, dark surfaces */
  --navy-2:      #12395A;
  --blue:        #00A3EF;   /* "Buddy" — primary accent */
  --blue-deep:   #0784C2;   /* hover / press */
  --blue-tint:   #CBEBFB;   /* chip fills, hover bg */
  --blue-wash:   #EAF7FE;   /* section backgrounds */
  --sky:         #7FD3F7;   /* accents on dark */

  --wood:        #D8C3A2;   /* ash desk warmth */
  --wood-wash:   #F6F0E6;

  --ink:         #1C2B36;   /* body text */
  --ink-2:       #566573;   /* secondary */
  --ink-3:       #8A97A2;   /* muted */

  --white:       #FFFFFF;
  --paper:       #F7FAFC;   /* page bg, cool white */
  --line:        #E4EAEF;   /* hairline */
  --line-2:      #D2DBE2;

  --success:     #23A26D;
  --warning:     #E0A32E;

  /* --- Radii (rounded, matching the logo letterforms) --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* --- Shadows: soft daylight --- */
  --sh-xs: 0 1px 2px rgba(12,43,67,0.05);
  --sh-sm: 0 4px 14px rgba(12,43,67,0.07);
  --sh-md: 0 12px 30px rgba(12,43,67,0.10);
  --sh-lg: 0 24px 60px rgba(12,43,67,0.14);
  --sh-blue: 0 12px 30px rgba(0,163,239,0.30);

  /* --- Spacing --- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px; --s32: 128px;

  --container: 1200px;
  --container-wide: 1360px;

  /* --- Type --- */
  --f-display: 'Poppins', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-accent:  'Nunito', 'Poppins', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: var(--blue-tint); color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p  { margin: 0; }

/* --- Layout helpers --- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--s6); }
.wrap-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--s6); }
.section { padding: var(--s24) 0; }
.eyebrow {
  font-family: var(--f-accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--blue); }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* --- Buttons --- */
.btn { position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 600; font-size: 16px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(150deg, rgba(255,255,255,0.32) 0%, rgba(120,205,248,0.28) 40%, rgba(0,145,220,0.34) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 24px rgba(0,90,150,0.22), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -6px 14px rgba(0,80,130,0.18);
  text-shadow: 0 1px 2px rgba(0,70,115,0.25);
}
.btn--primary::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 1px; height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-radius: var(--r-pill); pointer-events: none;
}
.btn--primary > * { position: relative; }
.ob-header .btn--primary::before,
.space-card .btn--primary::before,
.item-cta .btn--primary::before,
.spaces .btn--primary::before,
.book-card .btn--primary::before,
.book-form .btn--primary::before { display: none; }
.btn--primary:hover { background: linear-gradient(150deg, rgba(255,255,255,0.4) 0%, rgba(120,205,248,0.36) 40%, rgba(0,145,220,0.44) 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,90,150,0.3), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -6px 14px rgba(0,80,130,0.18); }

/* Stronger glass for light backgrounds — visible on white (cards, item pages, book form, header, spaces) */
.ob-header .btn--primary,
.space-card .btn--primary,
.item-cta .btn--primary,
.spaces .btn--primary,
.book-card .btn--primary,
.book-form .btn--primary {
  background: rgba(0,163,239,0.14);
  border: 1px solid rgba(0,163,239,0.35);
  color: var(--blue-deep);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.ob-header .btn--primary:hover,
.space-card .btn--primary:hover,
.item-cta .btn--primary:hover,
.spaces .btn--primary:hover,
.book-card .btn--primary:hover,
.book-form .btn--primary:hover {
  background: rgba(0,163,239,0.28);
  border-color: rgba(0,163,239,0.65);
  color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 20px rgba(0,163,239,0.28);
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-wash); transform: translateY(-2px); }
.btn--lg { height: 60px; padding: 0 34px; font-size: 18px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================================
   HEADER
   ========================================================================= */
.ob-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s6);
  padding: 0 var(--s8);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ob-header.is-scrolled { border-bottom-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.62); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 24px rgba(12,43,67,0.08); }
.ob-header__logo { display: flex; align-items: center; }
.ob-header__logo img { height: 30px; width: auto; }
.ob-header__nav { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.ob-header__nav > a,
.ob-navitem > a {
  font-family: var(--f-display); font-weight: 500; font-size: 15.5px;
  color: var(--navy); padding: 9px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.ob-header__nav > a:hover,
.ob-navitem > a:hover { background: var(--blue-wash); color: var(--blue-deep); }
.ob-header__nav > a.is-active,
.ob-navitem.is-active > a { color: var(--blue-deep); }

/* Spaces dropdown */
.ob-navitem { position: relative; display: flex; align-items: center; }
.ob-navitem__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: -4px;
  background: transparent; border: none; cursor: pointer; color: var(--navy);
  border-radius: var(--r-pill);
  transition: background 0.15s var(--ease), transform 0.2s var(--ease);
}
.ob-navitem__arrow:hover { background: var(--blue-wash); }
.ob-navitem__arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.ob-navitem.is-open .ob-navitem__arrow svg { transform: rotate(180deg); }
.ob-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px) scale(0.98);
  transform-origin: top center;
  min-width: 320px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--s3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.ob-navitem.is-open .ob-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.ob-navitem--has-menu { padding-bottom: 2px; }
.ob-dropdown::after {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.ob-dropdown::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.ob-dropdown__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r-md);
  transition: background 0.14s var(--ease);
}
.ob-dropdown__item:hover { background: var(--blue-wash); }
.ob-dropdown__thumb { width: 56px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: var(--sh-xs); }
.ob-dropdown__t { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.2; }
.ob-dropdown__s { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ob-dropdown__all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 12px 14px; border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  color: var(--blue-deep); background: var(--blue-wash);
}
.ob-dropdown__all:hover { background: var(--blue-tint); }

.ob-header__book { margin-left: var(--s3); }
.ob-header__burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--navy); border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.ob-header__burger span, .ob-header__burger span::before, .ob-header__burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative;
}
.ob-header__burger span::before { position: absolute; top: -6px; }
.ob-header__burger span::after { position: absolute; top: 6px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.ob-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: var(--s20) 0 var(--s8); }
.ob-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s10); }
.ob-footer__logo { height: 34px; margin-bottom: var(--s4); }
.ob-footer__brand p { max-width: 260px; line-height: 1.6; font-size: 15px; }
.ob-footer__social { display: flex; gap: 10px; margin-top: var(--s5); }
.ob-footer__social a {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.ob-footer__social a:hover { background: var(--blue); transform: translateY(-2px); }
.ob-footer__social svg { width: 19px; height: 19px; }
.ob-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--f-accent); font-weight: 800; margin-bottom: var(--s5); }
.ob-footer__col a { display: block; color: rgba(255,255,255,0.8); padding: 6px 0; font-size: 15px; }
.ob-footer__col a:hover { color: var(--sky); }
.ob-footer__contact div { margin-bottom: var(--s4); font-size: 15px; }
.ob-footer__contact strong { display: block; color: var(--sky); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; font-family: var(--f-accent); }
.ob-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s16); padding-top: var(--s6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13.5px; color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .ob-header { padding: 0 var(--s5); }
  .ob-header__nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: var(--s5); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-120%); transition: transform 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .ob-header__nav.is-open { transform: translateY(0); }
  .ob-header__nav > a, .ob-navitem > a { padding: 14px; font-size: 18px; }
  .ob-navitem { flex-wrap: wrap; }
  .ob-navitem > a { flex: 1; }
  .ob-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; min-width: 0; width: 100%; padding: 0 0 8px 0;
    display: none;
  }
  .ob-navitem.is-open .ob-dropdown { display: block; transform: none; }
  .ob-dropdown::before { display: none; }
  .ob-header__book { margin: var(--s3) 0 0; }
  .ob-header__book .btn { width: 100%; }
  .ob-header__burger { display: inline-flex; }
  .ob-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
}
@media (max-width: 560px) {
  .ob-footer__grid { grid-template-columns: 1fr; }
}
