/* ============================================================
   Mad Connected, LLC — site styles
   Design tokens live in :root. Change colors/fonts here.
   ============================================================ */

:root {
  --cream:        #f5eee6;   /* main background */
  --cream-deep:   #f0e6da;   /* tinted statement sections */
  --cream-card:   #f8f2ea;   /* cards on tinted panels */
  --ink:          #221d1a;   /* near-black text */
  --ink-soft:     #4c443f;   /* body text */
  --maroon:       #7d2440;   /* buttons, accents */
  --maroon-bright:#8e2c44;   /* eyebrow text, dots */
  --line:         #cbb9a6;   /* hairline rules */

  --serif: "Playfair Display", "Georgia", serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

section { scroll-margin-top: 90px; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.container.narrow { width: min(760px, 92vw); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maroon-bright);
  margin-bottom: 1.1rem;
}

.eyebrow.underlined { padding-bottom: 0.7rem; position: relative; }
.eyebrow.underlined::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3.2em; height: 1px; background: var(--maroon);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
}

.display em { font-style: italic; font-weight: 400; }

.dot { color: var(--maroon-bright); }

.center { text-align: center; }
.center.eyebrow::after { left: 50%; transform: translateX(-50%); }

.section-sub {
  margin-top: 1.2rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--maroon);
  margin: 1.6rem 0;
}
.rule-center { margin-inline: auto; }
.rule.small { width: 34px; height: 1px; margin: 0.9rem auto; }

.thin-rule {
  border: none; border-top: 1px solid var(--maroon);
  opacity: 0.55; margin: 2.2rem auto 2.6rem; width: 100%;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 2.2em;
  border: 1px solid var(--maroon);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-solid { background: var(--maroon); color: #f7efe7; }
.btn-solid:hover { background: #641d34; border-color: #641d34; }

.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #f7efe7; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

.header-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.7rem;
}

.brand img {
  height: 46px; width: auto;
}

.main-nav { display: flex; align-items: center; gap: 2.1rem; }

.main-nav a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.main-nav a:not(.btn):hover { color: var(--maroon-bright); }

.nav-cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 34px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */

.hero { padding-block: 4.5rem 5.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.1;
  color: var(--ink);
}

.hero h1 em { font-weight: 400; }

.hero .lede { max-width: 34em; margin-bottom: 0.4rem; }

.hero .accent { color: var(--maroon-bright); margin-bottom: 1.8rem; }
.hero .accent strong { font-weight: 500; }

.hero-media img { width: 100%; }

/* ---------- statement panels ---------- */

.statement {
  text-align: center;
  padding-block: 6.5rem;
}

.statement.tinted {
  background:
    radial-gradient(ellipse at 20% 15%, color-mix(in srgb, #ffffff 45%, transparent), transparent 55%),
    var(--cream-deep);
}

.statement .display { font-size: clamp(2.3rem, 5vw, 4rem); }

.statement .rule-center { margin-top: 2.2rem; }

/* ---------- services ---------- */

.services {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.service-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--cream-card);
  padding: 2rem 1.1rem;
  text-align: center;
}

.service-icon svg {
  width: 44px; height: 44px;
  margin-inline: auto;
  display: block;
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

.service-card p { font-size: 0.82rem; line-height: 1.65; }

.services-footer {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.pull-quote { display: flex; gap: 0.9rem; align-items: flex-start; }

.quote-mark {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--maroon);
}

.pull-quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.services-cta {
  display: flex; align-items: center; gap: 1.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.logo-mark {
  height: 64px; width: auto;
}

.services-cta-copy .eyebrow { margin-bottom: 0.3rem; line-height: 1.7; }
.services-cta-copy p { font-size: 0.92rem; }

/* ---------- portfolio ---------- */

.portfolio { padding-block: 5.5rem; }

.work-grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.6rem;
}

.work-item {
  padding-top: 0;
}

.work-thumb {
  aspect-ratio: 5 / 2.2;
  background: var(--cream-deep);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.work-item h3 {
  margin-top: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}

.work-tags {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: center;
}

.about-media img { width: 100%; border-radius: 6px; }

.about-copy p + p { margin-top: 1.1rem; }

.about-copy .display { margin-bottom: 1.4rem; }

.about-keyword {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--maroon-bright);
  margin-top: 1.3rem !important;
}

.stats {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1.6rem;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.stat-words {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.3;
}

.stat-label {
  margin-top: 0.7rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon-bright);
}

/* ---------- clients ---------- */

.clients { padding-block: 5.5rem; }

.client-columns {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.client-columns ul {
  list-style: none;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.client-columns ul:first-child { border-left: none; padding-left: 0; }

.client-columns li {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  padding-block: 0.35rem;
}

.clients-more {
  margin-top: 2.5rem;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--maroon-bright);
}

/* ---------- collage ---------- */

.collage img { width: 100%; }

/* ---------- collaborate ---------- */

.collaborate {
  background: var(--cream-deep);
  padding-block: 5.5rem;
}

.collab-grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.collab-col {
  text-align: center;
  padding-inline: 2.4rem;
  border-left: 1px solid var(--line);
}

.collab-col:first-child { border-left: none; }

.collab-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--maroon-bright);
  margin-bottom: 1.2rem;
}

.collab-col h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}

.collab-tags {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon-bright);
  line-height: 2;
  margin-bottom: 1.1rem;
}

.collab-col > p:last-child { font-size: 0.92rem; }

/* ---------- contact ---------- */

.contact { padding-block: 5.5rem 6rem; }

.center-block { margin-inline: auto; margin-bottom: 1.6rem; height: 74px; width: auto; }

#contact-form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.req { color: var(--maroon-bright); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.45em 0.1em;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--maroon);
}

.form-actions {
  margin-top: 1rem;
  display: flex; gap: 1.2rem; align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.form-success {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--maroon-bright);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  text-align: center;
}

.footer-logo {
  height: 60px; width: auto;
  margin-inline: auto;
}

.social {
  margin-top: 1.4rem;
  display: flex; gap: 1.3rem; justify-content: center;
}

.social svg {
  width: 22px; height: 22px;
  fill: var(--ink);
  transition: fill 0.2s ease;
}

.social a:hover svg { fill: var(--maroon-bright); }

.footer-contact { margin-top: 1.2rem; }

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.footer-contact a:hover { color: var(--maroon-bright); }

.footer-legal {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .services-footer { grid-template-columns: 1fr; }
  .services-cta { justify-content: flex-start; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem; }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
    padding-block: 0.6rem 1.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.8rem 0; }
  .nav-cta { margin: 0.8rem 0 0; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding-block: 3rem 3.5rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { max-width: 440px; }
  .statement { padding-block: 4.5rem; }

  .collab-grid { grid-template-columns: 1fr; gap: 3rem; }
  .collab-col { border-left: none; padding-inline: 0; }

  .client-columns { grid-template-columns: 1fr; gap: 0; }
  .client-columns ul { border-left: none; padding-left: 0; }
  .clients-more { text-align: center; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
}
