/* Nest Student: shared base styles.
   Tokens copied from Brand Pack v2 / 05 Styles / nest-brand.css. No other colours are used. */

@font-face { font-family: "Fraunces"; src: url("../../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --nest-petrol: #173F47;
  --nest-sand: #F3EBDD;
  --nest-sea-glass: #A9C6C4;
  --nest-clay: #D9774B;
  --nest-deep-clay: #A9512A;
  --nest-cream: #FFFDF8;
  --nest-muted: #47616A;
  --nest-line: #E2D6C2;

  --nest-font-heading: "Fraunces", Georgia, serif;
  --nest-font-body: "DM Sans", Arial, sans-serif;
  --nest-text-display: 3.5rem;
  --nest-text-h1: 2rem;
  --nest-text-h2: 1.25rem;
  --nest-text-body: 1rem;
  --nest-text-label: 0.6875rem;

  --nest-radius-card: 16px;
  --nest-radius-arch: 120px;
  --nest-radius-pill: 999px;
  --nest-space-1: 8px; --nest-space-2: 16px; --nest-space-3: 24px; --nest-space-4: 32px; --nest-space-6: 48px; --nest-space-8: 64px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--nest-sand); color: var(--nest-petrol);
  font-family: var(--nest-font-body); font-size: var(--nest-text-body); line-height: 1.5;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, .nest-display { font-family: var(--nest-font-heading); font-weight: 600; line-height: 1.08; margin: 0; font-variation-settings: "SOFT" 50, "WONK" 0; }
p { margin: 0; }
a { color: var(--nest-deep-clay); }
.nest-label { font-size: var(--nest-text-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--nest-petrol); color: var(--nest-sand); padding: 10px 16px; border-radius: var(--nest-radius-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Focus: always visible for keyboard users */
:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--nest-sand); }

/* Buttons: fully rounded pills */
.nest-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--nest-font-body); padding: 15px 26px; min-height: 48px;
  border-radius: var(--nest-radius-pill); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.nest-button:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.nest-button--primary { background: var(--nest-petrol); color: var(--nest-sand); }
.nest-button--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(23, 63, 71, .6); }
.nest-button--secondary { background: transparent; color: var(--nest-petrol); box-shadow: inset 0 0 0 1.5px var(--nest-petrol); }
.nest-button--secondary:hover { background: var(--nest-petrol); color: var(--nest-sand); }
.nest-button--light { background: var(--nest-sand); color: var(--nest-petrol); }
.nest-button--light:hover { background: var(--nest-cream); transform: translateY(-2px); }
.nest-button--ghost-light { background: transparent; color: var(--nest-sand); box-shadow: inset 0 0 0 1.5px var(--nest-sand); }
.nest-button--ghost-light:hover { background: var(--nest-sand); color: var(--nest-petrol); }
.on-dark .nest-button:focus-visible { outline-color: var(--nest-sand); }

/* Header */
.site-header { position: relative; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand-logo { display: block; flex: 0 0 auto; }
.brand-logo img { width: 190px; height: auto; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: inherit; text-decoration: none; font-weight: 500; font-size: .975rem; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.nav-list a:hover { background-size: 100% 1.5px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-button {
  display: none; align-items: center; gap: 8px; background: transparent; border: 0; color: inherit;
  font: 600 1rem/1 var(--nest-font-body); padding: 12px 14px; border-radius: var(--nest-radius-pill); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px currentColor; min-height: 44px;
}
.menu-button .bars { width: 18px; height: 12px; position: relative; }
.menu-button .bars::before, .menu-button .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-button .bars::before { top: 1px; }
.menu-button .bars::after { top: 9px; }
.menu-button[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: inherit; display: none; padding: 8px var(--gutter) 24px; box-shadow: 0 16px 24px -16px rgba(23, 63, 71, .35); }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 18%, transparent); background: none; }
  .header-actions .nest-button { display: none; }
  .site-nav .nav-cta { display: inline-flex; margin-top: 20px; }
  .brand-logo img { width: 160px; }
}
@media (min-width: 1101px) { .site-nav .nav-cta { display: none; } }

/* Search (front end only) */
.search-form label { display: block; }
.search-form select {
  appearance: none; -webkit-appearance: none; width: 100%; border: 0; background: transparent; color: var(--nest-petrol);
  font: 500 1rem/1.3 var(--nest-font-body); padding: 2px 28px 2px 0; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 20px;
}
.search-form select:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 4px; }
.search-status { font-size: .9375rem; min-height: 1.5em; }

/* Inline line icons inherit colour */
.icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Roof arch motif: always a stroke with round ends, never filled */
.arch { fill: none; stroke-linecap: round; }

/* Reveal: content is ALWAYS visible by default. The fade only plays once JS sees it come into view,
   so screenshots and no-JS visitors see a complete page. */
@keyframes nest-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nest-fade { from { opacity: 0; } to { opacity: 1; } }
[data-reveal].is-in { animation: nest-fade-up .8s var(--ease) both; animation-delay: var(--d, 0s); }

/* Mockup marker */
.mock-note { font-size: .8125rem; }

/* Footer */
.site-footer { background: var(--nest-petrol); color: var(--nest-sand); }
.site-footer a { color: var(--nest-sand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo { width: 150px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
