/*
 * ============================================================
 * TOORU — Shared Stylesheet
 * style.css
 *
 * Imported by every page on the site.
 * Edit here to change styles globally.
 *
 * Table of contents:
 *   1. Design tokens (CSS variables)
 *   2. Reset & base
 *   3. Layout
 *   4. Buttons
 *   5. Navigation
 *   6. Footer
 *   7. Utility classes
 *   8. Animations
 *   9. Mobile responsive
 * ============================================================
 */


/* ============================================================
   1. DESIGN TOKENS
   Brand colours, typography, shadows, and spacing.
   Change these to restyle the entire site.
   ============================================================ */
:root {
  /* Brand colours */
  --orange:       #F05A1A;   /* Primary brand orange */
  --orange-h:     #D94C10;   /* Orange hover state (darker) */
  --orange-pale:  #FFF3EE;   /* Orange tint background */
  --orange-mid:   #FFD8C2;   /* Orange border / divider */

  /* Neutrals */
  --white:  #FFFFFF;
  --off:    #FAFAF8;         /* Page background */
  --ink:    #1C1410;         /* Primary text */
  --ink-70: rgba(28,20,16,.70);   /* Secondary text */
  --ink-45: rgba(28,20,16,.45);   /* Muted text */
  --ink-12: rgba(28,20,16,.08);   /* Dividers */
  --border: rgba(28,20,16,.09);   /* Card borders */

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(28,20,16,.07);
  --shadow-md: 0 8px 28px rgba(28,20,16,.09);
  --shadow-lg: 0 22px 60px rgba(28,20,16,.11);

  /* Border radius */
  --r:    12px;   /* Default card radius */
  --r-sm: 8px;    /* Small elements (buttons, inputs) */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;   /* Headlines */
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;   /* Body text */

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}


/* ============================================================
   3. LAYOUT
   ============================================================ */

/* Centre content and constrain max width */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section spacing */
.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

/* Section header */
.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

/* Section eyebrow tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

.tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.tag-white { color: rgba(255,255,255,.6); }
.tag-white::before { background: rgba(255,255,255,.4); }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.12;
}

.display-xl { font-size: clamp(40px, 5.5vw, 72px); font-weight: 900; }
.display-lg { font-size: clamp(32px, 4vw, 52px);   font-weight: 700; }
.display-md { font-size: clamp(24px, 3vw, 38px);   font-weight: 700; }
.display-sm { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all .22s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn svg {
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary — orange fill */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 13px 26px;
  box-shadow: 0 3px 14px rgba(240,90,26,.28);
}

.btn-primary:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(240,90,26,.34);
}

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 12px 24px;
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}

/* White — for dark backgrounds */
.btn-white {
  background: var(--white);
  color: var(--orange);
  padding: 13px 26px;
}

.btn-white:hover {
  background: var(--orange-pale);
  transform: translateY(-2px);
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* Announcement banner */
.banner {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
}

.banner a {
  color: #FFB084;
  border-bottom: 1px solid rgba(255,176,132,.35);
}

/* Sticky nav bar */
nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.logo span { color: var(--orange); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-70);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: all .18s;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--off);
}

.nav-links a.active {
  color: var(--orange);
  font-weight: 600;
}

/* Nav right — CTA and language picker */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile hamburger — hidden on desktop */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--orange); }


/* ============================================================
   6. FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: var(--white);
}

/* Main footer — full with 4 columns */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
}

.footer-logo span { color: var(--orange); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin: 12px 0 24px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}

.footer-col ul a:hover { color: var(--white); }

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}

/* Simple footer — single row for inner pages */
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}

.footer-links a:hover { color: var(--white); }
.footer-links a.active { color: var(--orange); font-weight: 600; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}


/* ============================================================
   7. UTILITY CLASSES
   ============================================================ */

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.card-pad { padding: 28px 24px; }

/* Dividers */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}

/* Badges / pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-green  { background: #EAF7EF; color: #1A7A3C; border: 1px solid #C0E8D0; }
.badge-orange { background: var(--orange-pale); color: var(--orange); border: 1px solid var(--orange-mid); }
.badge-gray   { background: var(--off); color: var(--ink-45); border: 1px solid var(--border); }

/* Text utilities */
.text-orange { color: var(--orange); }
.text-muted  { color: var(--ink-45); }
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }

/* Spacing */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 56px; }


/* ============================================================
   8. ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fade-up .6s var(--ease) both; }
.animate-fade-in { animation: fade-in .4s ease both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }


/* ============================================================
   9. MOBILE RESPONSIVE
   Breakpoints:
     960px  — tablet landscape
     760px  — tablet portrait / large phone
     480px  — small phone
   ============================================================ */

/* Tablet */
@media (max-width: 960px) {
  .wrap { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Large phone */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }

  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }

  /* Nav */
  .nav-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .ham { display: flex; }

  /* Grids — all collapse to 1 column */
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-simple { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px; }

  /* Page hero */
  .page-hero { padding: 40px 0 32px; }
}

/* Small phone */
@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary,
  .btn-white { width: 100%; justify-content: center; }

  .grid-4 { grid-template-columns: 1fr; }
}
