/* Lamacs Embroidery — temporary one-page site
   Kept deliberately small: hero, bump hats link, contact.
   The fuller design lives on the full-one-pager branch for the
   upcoming site build.
   Brand motif: the logo's two interlocking half-squares (blue L
   bottom-left, orange L top-right) with angled bar ends. */

:root {
  --blue: #0B63B6;
  --blue-dark: #084A89;
  --blue-soft: #E8F1FB;
  --blue-tint: #F2F7FC;
  --blue-line: #D3E3F3;
  --orange: #F7931E;
  --orange-btn: #E07B0B;        /* deeper orange so white text reads (3:1) */
  --orange-btn-hover: #C8650A;
  --orange-text: #B45F06;
  --orange-soft: #FDEBD3;
  --navy: #0B1F33;
  --ink-muted: #4A5B6C;
  --line: #E4E9EF;
  --white: #FFFFFF;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-wide: "Michroma", "Lexend", sans-serif;

  --cut: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Type */

h1,
h2 {
  font-family: var(--font-wide);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.25; }

/* Hero heading: one phrase per line, sized so "Custom embroidery,"
   always fits the copy column. */
.hero-title { font-size: clamp(1.6rem, 3.35vw, 2.6rem); line-height: 1.16; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .hl { color: var(--blue); }

.num { font-family: var(--font-wide); font-weight: 400; letter-spacing: 0.03em; }

/* Section label: Michroma with a tiny two-tone half-square mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-wide);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background:
    linear-gradient(var(--white), var(--white)) left bottom / 4px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) left bottom / 100% 4px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right top / 4px 55% no-repeat,
    linear-gradient(var(--orange), var(--orange)) right top / 55% 4px no-repeat;
}
.eyebrow-peach { color: #FFD8A8; }
.eyebrow-brand { color: var(--orange-text); }
.eyebrow-brand::before {
  background:
    linear-gradient(var(--blue), var(--blue)) left bottom / 4px 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) left bottom / 100% 4px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right top / 4px 55% no-repeat,
    linear-gradient(var(--orange), var(--orange)) right top / 55% 4px no-repeat;
}

.lead { font-size: 19px; line-height: 1.6; max-width: 30em; color: var(--ink-muted); }

/* Angled corners, cut like the ends of the logo's bars */
.cut,
.btn,
.tile {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* Buttons: each keeps its own color and goes one step deeper on hover */

.btn {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:hover .icon-phone { transform: rotate(-6deg); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--orange); }

.btn-sm { --cut: 9px; min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-soft { background: var(--blue-soft); color: var(--navy); }
.btn-soft:hover { background: var(--blue-line); color: var(--navy); }
.btn-orange { background: var(--orange-btn); color: var(--white); }
.btn-orange:hover { background: var(--orange-btn-hover); color: var(--white); }

.tile {
  --cut: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
}
.tile-orange { background: var(--orange); color: var(--navy); }
.tile-soft { background: var(--blue-soft); color: var(--blue); transition: background-color .3s var(--ease), color .3s var(--ease); }

/* Logo brackets around the hero photo */

.frame {
  --bk: 8px;
  --bk-gap: 14px;
  --bk-size: 30%;
  position: relative;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: var(--bk-size);
  height: var(--bk-size);
  pointer-events: none;
  clip-path: polygon(0 var(--bk), var(--bk) 0, var(--bk) calc(100% - var(--bk)), 100% calc(100% - var(--bk)), calc(100% - var(--bk)) 100%, 0 100%);
  transition: width .6s var(--ease), height .6s var(--ease), transform .6s var(--ease);
}
.frame::before {
  left: calc(var(--bk-gap) * -1);
  bottom: calc(var(--bk-gap) * -1);
  background: var(--blue);
}
.frame::after {
  right: calc(var(--bk-gap) * -1);
  top: calc(var(--bk-gap) * -1);
  background: var(--orange);
  transform: rotate(180deg);
}
.frame:hover { --bk-size: 38%; }
.frame:hover::before { transform: translate(-3px, 3px); }
.frame:hover::after { transform: rotate(180deg) translate(-3px, 3px); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);   /* solid: the logo file has a white, not transparent, background */
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 62%, var(--orange) 62% 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}
.logo { display: flex; }
.logo img { height: 66px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */

.hero { background: var(--blue-tint); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-block: 88px 184px;   /* room for the products bar overlapping below */
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-media > img { width: 100%; height: 460px; object-fit: cover; border-radius: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.badge-icon {
  --cut: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--orange-soft);
  color: var(--orange-text);
}
.badge-icon .icon { stroke-width: 2.4; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Products: a bar overlapping the bottom of the hero */

.products { position: relative; z-index: 3; }
.products-bar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: -104px;
  padding: 32px 36px;
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 24px 60px rgba(11, 31, 51, 0.12);
}
.products-head { display: flex; flex-direction: column; gap: 10px; }
.products-head h2 { font-size: 1.2rem; line-height: 1.3; }
.product-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 6px 8px;
  font-weight: 500;
  font-size: 15px;
  border-left: 1px solid var(--line);
}
.product .tile { --cut: 9px; width: 48px; height: 48px; }
.product:hover .tile { background: var(--blue-line); color: var(--blue-dark); }

/* Bump hats strip */

.bump { border-bottom: 1px solid var(--line); }
.bump-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 36px;
}
.products + .bump .bump-inner { padding-block: 56px 44px; }
.bump-logo { width: 240px; height: auto; }
.bump-inner p { flex: 1 1 280px; color: var(--ink-muted); }

/* Contact */

.contact { background: var(--blue); color: var(--white); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
  padding-block: 72px;
}
.contact-head { display: flex; flex-direction: column; gap: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.contact-list a:hover { color: var(--blue-soft); }

/* Footer */

.site-footer { background: var(--navy); color: #A9B9C9; font-size: 14px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px;
}
.footer-inner strong { font-family: var(--font-wide); font-weight: 400; font-size: 13px; letter-spacing: 0.12em; color: var(--white); }

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Narrow screens */

@media (max-width: 1100px) {
  .products-bar { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .product:nth-child(3n+1) { border-left: 0; }
  .header-inner { min-height: 76px; }
  .logo img { height: 50px; }
  .header-catalog { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 152px; }
  /* "Custom embroidery," is ~12.6em wide in Michroma; scale to the column */
  .hero-title { font-size: min(2.6rem, calc((100vw - 48px) / 13.2)); }
  .hero-media > img { height: 320px; }
}

@media (max-width: 640px) {
  .header-actions .btn-blue .num { display: none; }
  .header-actions .btn-blue { padding: 0 14px; }
  .contact-inner { padding-block: 56px; }
  .products-bar { padding: 24px 20px; margin-top: -96px; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { border-left: 0; flex-direction: row; text-align: left; gap: 12px; padding: 0; }
  .frame { --bk: 6px; --bk-gap: 10px; }
}
