﻿/* Larsen Innovation Group - Main Stylesheet */

/* ============================================================================
   Google Fonts
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap');

/* ============================================================================
   CSS Variables
   ========================================================================= */
:root {
  /* Colors */
  --colour-bg: #f2efe7;
  --colour-card: #f9f6f0;
  --colour-sage: #9aa58e;
  --colour-text-main: #1f2622;
  --colour-text-muted: #4f5751;
  --colour-accent: #b36a3c;
  --colour-accent-strong: #8b4a28;

  /* 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.08);

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: 'Fraunces', Georgia, "Times New Roman", serif;

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.35s 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 10% 20%, rgba(179, 106, 60, 0.08), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(154, 165, 142, 0.2), transparent 45%),
    linear-gradient(180deg, #f7f3ea 0%, var(--colour-bg) 60%);
  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(28px, 3.6vw, 38px);
  margin-bottom: 8px;
  font-weight: 600;
}

h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 10px;
  font-weight: 600;
}

h3 {
  font-size: clamp(18px, 2vw, 20px);
  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: 1140px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  animation: fadeIn 0.5s 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;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2c352f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: #f4f1e8;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.brand:hover .brand-mark {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.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);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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;
}

.phone-link {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(154, 165, 142, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.phone-link:hover {
  background: rgba(154, 165, 142, 0.35);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================================
   Cards & Panels
   ========================================================================= */
.card {
  background: rgba(249, 246, 240, 0.9);
  border-radius: 20px;
  padding: 32px 28px 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  border: 1px solid rgba(154, 165, 142, 0.2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(154, 165, 142, 0.35);
  background: rgba(249, 246, 240, 0.98);
}

.section-card {
  background: rgba(249, 246, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 48px 40px 40px;
  margin-bottom: 40px;
  animation: slideUp 0.5s ease-out;
  border: 1px solid rgba(154, 165, 142, 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: 12px 22px;
  border-radius: 999px;
  background: #2c352f;
  color: #fdfdfd;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 16px rgba(44, 53, 47, 0.25);
}

.btn-primary:hover {
  background: #1e241f;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 53, 47, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--colour-accent);
  color: #fff7f0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 16px rgba(179, 106, 60, 0.28);
}

.btn-secondary:hover {
  background: var(--colour-accent-strong);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 74, 40, 0.35);
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(154, 165, 142, 0.2);
  color: #f4f1e8;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(154, 165, 142, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 16px rgba(20, 25, 22, 0.2);
}

.btn-tertiary:hover {
  background: rgba(154, 165, 142, 0.35);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 25, 22, 0.3);
}

.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(154, 165, 142, 0.3);
  font-size: 13px;
  display: inline-block;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(154, 165, 142, 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(179, 106, 60, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #2c352f;
  color: #fdfdfd;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(44, 53, 47, 0.2);
}

button[type="submit"]:hover {
  background: #1e241f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 53, 47, 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;
}

.small-note {
  font-size: 12px;
  color: var(--colour-text-muted);
  margin-top: 10px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.clean-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--colour-accent);
  font-weight: 600;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: rgba(154, 165, 142, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(154, 165, 142, 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.05fr) minmax(0, 0.95fr);
  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);
}

.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;
  }

  .header-right {
    width: 100%;
    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;
  }
}
