/* Larsen Innovation Group - Main Stylesheet */

/* ============================================================================
   Google Fonts
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:wght@500;600;700&display=swap');

/* ============================================================================
   CSS Variables
   ========================================================================= */
:root {
  /* Colors */
  --colour-bg: #f5f7f4;
  --colour-card: #d3d8d0;
  --colour-sage: #aab5a1;
  --colour-text-main: #2f3432;
  --colour-text-muted: #5a5f5c;
  --colour-accent: #c57a3d;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.07);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: 'Lora', Georgia, "Times New Roman", serif;

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.3s ease-out;
}

/* ============================================================================
   Base Styles
   ========================================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--colour-text-main);
  background:
    radial-gradient(circle at 90% 10%, rgba(197, 122, 61, 0.03), transparent 40%),
    radial-gradient(circle at top left, #c7d1c1, var(--colour-bg) 40%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================================================
   Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
  font-weight: 600;
}

h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  margin-bottom: 8px;
  font-weight: 600;
}

h3 {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 6px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ============================================================================
   Links
   ========================================================================= */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================================
   Layout
   ========================================================================= */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   Header & Navigation
   ========================================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #3f4542;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: #f5f7f4;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand:hover .brand-mark {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.brand-tagline {
  font-size: 12px;
  color: var(--colour-text-muted);
}

nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav a {
  position: relative;
  padding-bottom: 2px;
  font-weight: 500;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--colour-accent);
  transition: width var(--transition-fast);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

nav a:hover {
  text-decoration: none;
}

/* ============================================================================
   Cards & Panels
   ========================================================================= */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 28px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-medium);
  border: 1px solid rgba(170, 181, 161, 0.15);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(170, 181, 161, 0.25);
  background: rgba(255, 255, 255, 0.95);
}

.section-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
  padding: 48px 40px 40px;
  margin-bottom: 40px;
  animation: slideUp 0.5s ease-out;
  border: 1px solid rgba(170, 181, 161, 0.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   Buttons
   ========================================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: #2f3432;
  color: #fdfdfd;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(47, 52, 50, 0.2);
}

.btn-primary:hover {
  background: #1f2221;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 52, 50, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  font-size: 13px;
  color: var(--colour-text-muted);
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--colour-text-main);
}

/* ============================================================================
   Pills & Tags
   ========================================================================= */
.pill {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(170, 181, 161, 0.3);
  font-size: 13px;
  display: inline-block;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(170, 181, 161, 0.45);
  transform: translateY(-1px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

/* ============================================================================
   Forms
   ========================================================================= */
label {
  font-size: 13px;
  margin-bottom: 3px;
  display: block;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(47, 52, 50, 0.3);
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--colour-accent);
  box-shadow: 0 0 0 3px rgba(197, 122, 61, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  background: #2f3432;
  color: #fdfdfd;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(47, 52, 50, 0.2);
}

button[type="submit"]:hover {
  background: #1f2221;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 52, 50, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* ============================================================================
   Footer
   ========================================================================= */
footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(47, 52, 50, 0.12);
  font-size: 11px;
  color: var(--colour-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============================================================================
   Utility Classes
   ========================================================================= */
.muted {
  color: var(--colour-text-muted);
}

.note {
  font-size: 12px;
  color: var(--colour-text-muted);
  margin-top: 10px;
  border-left: 2px solid rgba(47, 52, 50, 0.3);
  padding-left: 10px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: rgba(170, 181, 161, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(170, 181, 161, 0.2);
  font-size: 14px;
  color: var(--colour-text-main);
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ============================================================================
   Grid Layouts
   ========================================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-top: 12px;
}

/* ============================================================================
   Icons (using emoji as simple icons)
   ========================================================================= */
.icon {
  display: inline-block;
  font-style: normal;
  margin-right: 6px;
  filter: grayscale(0.2);
}

/* Icon decorations for cards */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--colour-accent) 0%, transparent 100%);
  border-radius: 16px 0 0 16px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.card {
  position: relative;
}

.card:hover::before {
  opacity: 0.6;
}

/* ============================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  nav {
    font-size: 13px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 20px 12px 40px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  nav {
    gap: 14px;
    font-size: 12px;
  }
}

/* ============================================================================
   Print Styles
   ========================================================================= */
@media print {
  body {
    background: white;
  }

  nav, footer {
    display: none;
  }

  .card, .section-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
