/* ============================================================
   LEA AND OTIS, Design System
   Scandi minimal. Full sans-serif. Sharp.
   Colours: white, cream #F3EDE6, terracotta #CC715F, teal #7FA9B1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* --- Custom Properties --- */
:root {
  --white:        #FFFFFF;
  --cream:        #F3EDE6;
  --cream-dark:   #E8DDD3;
  --terracotta:   #CC715F;
  --terracotta-lt:#E09A8A;
  --teal:         #7FA9B1;
  --teal-dk:      #5A8A94;
  --sage:         #B8C9B2;
  --sage-dk:      #6E9068;
  --sage-lt:      #D4E0D0;
  --charcoal:     #1E1E1E;
  --mid-grey:     #6B6B6B;
  --light-grey:   #D0C8C0;
  --rule:         #E4DDD6;

  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  --max-width:  1200px;
  --nav-height: 140px;
  --ease:       0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}
p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--mid-grey);
  max-width: 62ch;
}
strong { font-weight: 600; color: var(--charcoal); }

.label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section        { padding: var(--space-xl) 0; }
.section--sm    { padding: var(--space-lg) 0; }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--charcoal); }
.section--dark p { color: rgba(255,255,255,0.5); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Image placeholders --- */
.img-placeholder {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder span {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-grey);
}
.aspect-landscape { aspect-ratio: 4 / 3; }
.aspect-portrait  { aspect-ratio: 3 / 4; }
.aspect-square    { aspect-ratio: 1; }
.aspect-wide      { aspect-ratio: 16 / 6; }

/* --- Nav --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: height 0.35s ease, border-color 0.35s ease;
}
.site-nav.scrolled {
  height: 64px;
  border-bottom-color: var(--rule);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 112px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}
.site-nav.scrolled .nav-logo img {
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }

.nav-cta {
  background: var(--charcoal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  letter-spacing: 0.14em !important;
  transition: background var(--ease) !important;
}
.nav-cta:hover { background: var(--terracotta) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--charcoal); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--terracotta); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: var(--white); }
.btn-arrow::after { content: '→'; transition: transform var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* --- Cards --- */
.card { background: var(--white); }
.card-body { padding: var(--space-sm) 0; }
.card-label { margin-bottom: 0.4rem; }
.card-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.card-excerpt { font-size: 0.875rem; color: var(--mid-grey); line-height: 1.7; }
.card-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--ease);
}
.card-link:hover { color: var(--terracotta); }

/* --- Product card --- */
.product-card { cursor: pointer; transition: transform var(--ease); }
.product-card:hover { transform: translateY(-2px); }
.product-price { font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.product-tag { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.5rem; }

/* --- Forms --- */
.form-group { margin-bottom: 0.75rem; }
.form-group label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--mid-grey);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  border-radius: 0;
  transition: border-color var(--ease);
}
.form-group input:focus { border-color: var(--charcoal); }

.newsletter-inline { display: flex; }
.newsletter-inline input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  border-right: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
}
.newsletter-inline input:focus { border-color: var(--charcoal); }
.newsletter-inline button {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
  padding: 0 1.5rem;
  font-family: var(--font);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}
.newsletter-inline button:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* --- Chips / filters --- */
.chip {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  color: var(--mid-grey);
  transition: all var(--ease);
  cursor: pointer;
  background: transparent;
}
.chip:hover,
.chip.active { border-color: var(--charcoal); color: var(--charcoal); }
.chip--filled { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* --- Dots --- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.dot--terracotta { background: var(--terracotta); }
.dot--teal       { background: var(--teal); }
.dot--sage       { background: var(--sage); }

/* --- Divider --- */
hr { border: none; border-top: 1px solid var(--rule); margin: var(--space-lg) 0; }

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo img {
  height: 26px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-tagline { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 26ch; }
.footer-col h5 {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-sm);
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.55); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 0.4rem; } }

/* --- Utilities --- */
.text-terracotta { color: var(--terracotta); }
.text-teal       { color: var(--teal); }
.text-sage       { color: var(--sage-dk); }
.text-grey       { color: var(--mid-grey); }
.text-white      { color: var(--white); }
.text-center     { text-align: center; }
.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.page-top { padding-top: var(--nav-height); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
