/* Magic Corner Ventures — site styles
   Palette taken from the company logo. */
/* Self-hosted fonts (latin subset, variable weight) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/lexend-latin.woff2") format("woff2"); }

:root {
  --ink: #1f3f46;
  --ink-2: #2a525a;
  --muted: #5b7378;
  --line: #dde6e8;
  --bg: #ffffff;
  --bg-soft: #f4f8f9;
  --orange: #f89d10;
  --red: #e53a5a;
  --blue: #488de3;
  --blue-text: #2a69bd; /* darker blue for small text, WCAG AA */
  --sky: #6fc9ee;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 63, 70, .06), 0 8px 24px rgba(31, 63, 70, .07);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-text); }
h1, h2, h3 {
  font-family: "Lexend", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink-2); color: #fff; box-shadow: 0 6px 18px rgba(42, 82, 90, .25); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--blue-text); }
.nav-links .btn { padding: 10px 20px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(111, 201, 238, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 90%, rgba(229, 58, 90, .10), transparent 60%),
    var(--bg-soft);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }
.hero h1 span { color: var(--ink-2); }
.hero .grad {
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: absolute; right: -60px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); z-index: 1; }
.pill { position: absolute; width: 150px; height: 470px; border-radius: 999px; transform: rotate(45deg); opacity: .92; }
.pill-a { left: 70px; top: 40px; background: linear-gradient(to top, var(--orange), var(--red) 65%); }
.pill-b { opacity: .85; left: 250px; top: 10px; background: linear-gradient(to top, var(--blue), var(--sky)); }

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 620px; }
.stat strong { display: block; font-family: "Lexend", sans-serif; font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.stat span { font-size: .9rem; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-points { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.about-points li { display: flex; gap: 16px; padding: 20px 22px; background: var(--bg-soft); border-radius: var(--radius); }
.dot { flex: 0 0 12px; height: 12px; margin-top: 7px; border-radius: 50%; }
.about-points strong { display: block; color: var(--ink); }
.about-points span { color: var(--muted); font-size: .97rem; }

/* Divisions */
.divisions { background: var(--bg-soft); }
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.div-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.div-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.div-card.auto::before { background: linear-gradient(90deg, var(--orange), var(--red)); }
.div-card.craft::before { background: linear-gradient(90deg, var(--red), var(--blue)); }
.div-card.home::before { background: linear-gradient(90deg, var(--blue), var(--sky)); }
.div-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.div-icon svg { width: 26px; height: 26px; }
.auto .div-icon { background: rgba(248, 157, 16, .14); color: #c97a00; }
.craft .div-icon { background: rgba(229, 58, 90, .12); color: var(--red); }
.home .div-icon { background: rgba(72, 141, 227, .13); color: var(--blue); }
.div-card p { color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { font-size: .82rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* Brands */
.brand-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1000px; margin: 0 auto; }
.brand-grid .brand-tile { flex: 0 0 calc((100% - 72px) / 5); }
.brand-tile {
  height: 120px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 18px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-tile img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.brand-tile.tall img { max-height: 92px; }
.brand-tile.red { background: #d0202e; border-color: #d0202e; }
.brand-tile.dark { background: #20282c; border-color: #20282c; }
.also { margin-top: 30px; text-align: center; color: var(--muted); font-size: .95rem; }
.tm-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: .78rem; }

/* How we work */
.how { background: var(--ink); color: #dfe9eb; }
.how h2, .how h3 { color: #fff; }
.how .eyebrow { color: var(--sky); }
.how .lead { color: #b9cdd1; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.how-card { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.how-card .num { font-family: "Lexend", sans-serif; font-weight: 600; font-size: .9rem; color: var(--sky); margin-bottom: 14px; display: block; }
.how-card p { color: #b9cdd1; font-size: .96rem; margin: 0; }

/* Partner CTA */
.partner-box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(111, 201, 238, .35), transparent 70%),
    radial-gradient(400px 300px at 0% 100%, rgba(248, 157, 16, .18), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--line);
}
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.partner-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.partner-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: start; }
.info-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.info-row small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.info-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.info-row a:hover { color: var(--blue); }

form.contact-form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid #cfdadc; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(72, 141, 227, .15); }
.hidden { position: absolute; left: -9999px; }
.form-note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-grid img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-grid p { color: var(--muted); font-size: .92rem; margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Legal / simple pages */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page p, .page li { color: #3d5a60; }
.page .updated { color: var(--muted); font-size: .92rem; }
.thanks { text-align: center; padding: 140px 0; }
.thanks .lead { margin: 0 auto 30px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-art { opacity: .35; right: -180px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .div-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .about-grid, .contact-grid, .partner-box { grid-template-columns: 1fr; gap: 36px; }
  .partner-box { padding: 36px 28px; }
  .nav-toggle { display: block; }
  .brand-grid .brand-tile { flex-basis: calc((100% - 36px) / 3); }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { display: inline-flex; margin-top: 8px; padding: 12px 22px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 72px 0 80px; }
  .hero-art { display: none; }
  .stats { gap: 26px; }
  .how-grid { grid-template-columns: 1fr; }
  form.contact-form { grid-template-columns: 1fr; padding: 24px; }
  .brand-grid { gap: 12px; }
  .brand-grid .brand-tile { flex-basis: calc((100% - 12px) / 2); }
  .brand-tile { height: 100px; padding: 14px; }
  .brand-tile img { max-height: 60px; }
  .brand img { height: 38px; }
}
