/* carlopepper.com – site stylesheet. Light theme only. No external resources. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --brown-900: #1b0f0d;
  --brown-800: #2c2018;
  --brown-700: #3e2723;
  --brown-600: #6b5533;
  --brown-500: #8b6f47;
  --gold-400: #d4a373;
  --gold-300: #e5be94;
  --cream-100: #faf8f5;
  --cream-200: #f5f1e8;
  --line: #e8ded0;
  --muted: #6b5b4d;
  --field: #8f7d68;
  --white: #fff;
  --ok: #2e6b2e;
  --error: #a32020;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --script: "Caveat", "Segoe Script", cursive;
  --radius: 12px;
  --radius-btn: 8px;
  --shadow: 0 4px 14px rgb(62 39 35 / 0.08);
  --shadow-hover: 0 10px 26px rgb(62 39 35 / 0.14);
  --header-h: 76px;
  --section-y: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown-800);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown-600); }
a:hover { color: var(--brown-800); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--brown-500); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-300); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-btn);
  background: var(--white); color: var(--brown-800); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--radius-btn);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold {
  color: var(--white);
  background: linear-gradient(135deg, var(--brown-500), var(--brown-600));
  box-shadow: 0 6px 16px rgb(62 39 35 / 0.22);
}
.btn-gold:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px rgb(62 39 35 / 0.3); }
.btn-outline { color: var(--white); border-color: rgb(255 255 255 / 0.85); background: rgb(27 15 13 / 0.2); }
.btn-outline:hover { color: var(--brown-800); background: var(--white); }
.btn-dark { color: var(--white); background: var(--brown-800); }
.btn-dark:hover { color: var(--white); background: var(--brown-700); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #4a3426, var(--brown-700));
  color: var(--cream-200);
  box-shadow: 0 2px 12px rgb(27 15 13 / 0.35);
}
.site-header .wrap { max-width: 1360px; }
.site-header a, .site-header .btn { white-space: nowrap; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 60px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-slogan { margin-top: 3px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--cream-200); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--white); border-bottom-color: var(--gold-400); }

.lang { display: inline-flex; border: 1px solid rgb(229 190 148 / 0.6); border-radius: var(--radius-btn); overflow: hidden; }
.lang a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--cream-200); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.lang a:hover { color: var(--white); background: rgb(255 255 255 / 0.08); }
.lang a[aria-current="true"] { color: var(--white); background: rgb(255 255 255 / 0.14); }
.flag-se {
  display: inline-block; width: 20px; height: 13px; border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 6px, #fecc02 6px, #fecc02 9px, transparent 9px),
    linear-gradient(180deg, transparent 5px, #fecc02 5px, #fecc02 8px, transparent 8px),
    #006aa7;
}

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  color: var(--cream-200); background: transparent;
  border: 1px solid rgb(229 190 148 / 0.6); border-radius: var(--radius-btn);
  font: 600 0.92rem var(--sans); cursor: pointer;
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 82vh, 760px);
  display: flex; color: var(--white); background: var(--brown-900);
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(27 15 13 / 0.94) 0%, rgb(27 15 13 / 0.82) 34%, rgb(27 15 13 / 0.25) 62%, rgb(27 15 13 / 0) 80%),
    linear-gradient(0deg, rgb(27 15 13 / 0.85) 0%, rgb(27 15 13 / 0) 30%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 40px; }
.hero-copy { max-width: 640px; }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.hero-tagline { margin: 12px 0 18px; font: 600 clamp(1.35rem, 2.5vw, 2rem)/1.25 var(--serif); color: var(--gold-300); }
.hero-text { font-size: 1.06rem; color: rgb(255 255 255 / 0.92); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.script { font-family: var(--script); font-weight: 600; line-height: 1.05; }
.hero-note {
  position: absolute; right: 24px; margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: var(--white);
  text-shadow: 0 2px 10px rgb(27 15 13 / 0.6); transform: rotate(-8deg);
}
.hero-note-1 { top: 48px; }
.hero-note-2 { bottom: 120px; }

.hero-features {
  display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 44px; list-style: none;
}
.hero-features li { display: flex; align-items: center; gap: 12px; max-width: 160px; font-size: 0.92rem; line-height: 1.3; }
.hero-features .icon { width: 34px; height: 34px; color: var(--gold-300); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--cream-200); }
.section-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 36px; }
.section-head h2, .about h2, .contact-grid h2 { font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1.15 var(--serif); color: var(--brown-800); }
.section-intro { margin: 0; color: var(--muted); }
.eyebrow { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown-600); }
.eyebrow-light { color: var(--gold-300); }

/* Cards */
.cards { display: grid; gap: 22px; list-style: none; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 1.12rem; font-weight: 700; color: var(--brown-800); }
.card p { color: var(--muted); }

.service { display: flex; flex-direction: column; text-align: center; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.badge {
  position: relative; display: grid; place-items: center;
  width: 66px; height: 66px; margin: -33px auto 0;
  color: var(--white); background: linear-gradient(135deg, var(--brown-500), var(--brown-600));
  border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 6px 14px rgb(62 39 35 / 0.25);
}
.badge .icon { width: 30px; height: 30px; }
.service .card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 22px 20px; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: 0.95rem; }
.more {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin-top: auto;
  font-weight: 700; color: var(--brown-600); text-decoration: none;
}
.more:hover { color: var(--brown-800); }
.more .icon { transition: transform 0.2s ease; }
.more:hover .icon { transform: translateX(3px); }

.plain { padding: 26px; }
.plain h3 { margin-bottom: 10px; }
.plain p { margin: 0; font-size: 0.95rem; }
.with-icon > .icon { width: 38px; height: 38px; margin-bottom: 14px; color: var(--brown-500); }
.section-alt .center { margin: 32px 0 0; }

.product img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product .card-body { position: relative; padding: 12px 14px 16px; }
.product .card-body { padding-top: 16px; }
.product h3 { padding-right: 22px; font-size: 0.9rem; line-height: 1.3; overflow-wrap: break-word; }
.product p { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.4; }
.round {
  position: absolute; top: -18px; right: 10px;
  display: grid; place-items: center; width: 36px; height: 36px;
  color: var(--white); background: var(--brown-800); border: 2px solid var(--white); border-radius: 50%;
  box-shadow: 0 4px 10px rgb(27 15 13 / 0.25);
  transition: background-color 0.2s ease;
}
.round:hover { color: var(--white); background: var(--brown-500); }
.round .icon { width: 18px; height: 18px; }

/* About */
.about {
  display: grid; grid-template-columns: 1.1fr 1.25fr 0.9fr; align-items: stretch;
  background: var(--cream-100); border-top: 1px solid var(--line);
}
.about-media { position: relative; min-height: 420px; }
.about-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.about-note {
  position: absolute; left: 10%; bottom: 14%; margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--white);
  text-shadow: 0 2px 10px rgb(27 15 13 / 0.65); transform: rotate(-6deg);
}
.about-copy { padding: 56px 36px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--brown-800); }
.about-copy .btn { margin-top: 8px; }
.values { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 48px 32px; list-style: none; border-left: 1px solid var(--line); }
.values li { display: flex; gap: 16px; }
.values .icon { width: 38px; height: 38px; color: var(--brown-700); }
.values h3 { font-size: 1.02rem; font-weight: 700; }
.values p { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }

/* CTA band */
.cta-band { padding: 52px 0; color: var(--cream-200); background: linear-gradient(120deg, var(--brown-900), var(--brown-700)); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { margin-bottom: 10px; font: 700 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--serif); color: var(--white); }
.cta-band p { margin: 0; max-width: 640px; color: rgb(245 241 232 / 0.9); }
.cta-band .btn { flex: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-grid h2 { margin-bottom: 14px; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; list-style: none; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--brown-500); }
.contact-list .label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; }

.contact-form { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 1rem/1.4 var(--sans); color: var(--brown-800); background: var(--white);
  border: 1px solid var(--field); border-radius: var(--radius-btn);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--brown-600); }
.hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.privacy-note { font-size: 0.88rem; color: var(--muted); }
.form-status { margin: 14px 0 0; min-height: 1.6em; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* Strip */
.strip { padding: 22px 0; background: var(--cream-200); border-top: 1px solid var(--line); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.strip li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; font-size: 0.92rem; font-weight: 500; }
.strip li + li { border-left: 1px solid var(--line); }
.strip .icon { width: 26px; height: 26px; color: var(--brown-600); }

/* Footer */
.site-footer { color: rgb(245 241 232 / 0.85); background: var(--brown-800); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { margin-bottom: 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.03em; color: var(--white); }
.site-footer h2 { margin-bottom: 12px; font: 600 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); }
.site-footer ul { display: grid; gap: 8px; list-style: none; }
.site-footer a { color: var(--gold-300); }
.site-footer a:hover { color: var(--white); }
.site-footer p, .site-footer address, .site-footer li { font-size: 0.92rem; line-height: 1.7; }
.footer-base { padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgb(245 241 232 / 0.15); }
.footer-base p { margin: 0; font-size: 0.85rem; }

/* Text pages */
.prose { max-width: 800px; padding-top: 48px; padding-bottom: 72px; }
.prose h1 { margin-bottom: 8px; font: 700 clamp(1.9rem, 3.4vw, 2.6rem)/1.2 var(--serif); }
.prose h2 { margin: 2rem 0 0.6rem; font: 700 1.3rem/1.3 var(--serif); }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .btn { margin: 8px 6px 0; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px 24px 24px; background: var(--brown-800);
    box-shadow: 0 12px 24px rgb(27 15 13 / 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { width: 100%; padding: 4px 0; border-bottom: 1px solid rgb(245 241 232 / 0.1); }
  .lang { align-self: flex-start; }
}

@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-6 { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; }
  .about-media img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .about-copy { padding: 32px 24px 8px; }
  .values { border-left: 0; padding: 24px 24px 48px; }
  .hero-note { display: none; }
}

@media (max-width: 860px) {
  .section-head, .contact-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .strip li:nth-child(3) { border-left: 0; }
}

@media (max-width: 640px) {
  :root { --section-y: 48px; --header-h: 68px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 48px; height: 38px; }
  .brand-name { font-size: 1.1rem; }
  .brand-slogan { font-size: 0.6rem; }
  .nav-toggle span { display: none; }
  .site-nav { padding: 8px 16px 20px; }
  .hero { min-height: 0; }
  .hero h1 { white-space: normal; font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero::before { background: linear-gradient(180deg, rgb(27 15 13 / 0.78) 0%, rgb(27 15 13 / 0.88) 100%); }
  .hero-inner { padding-top: 40px; padding-bottom: 32px; }
  .hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .actions .btn { flex: 1 1 auto; }
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .cards-6 { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 20px; }
  .strip ul { grid-template-columns: 1fr; }
  .strip li { justify-content: flex-start; }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn-gold:hover { transform: none; }
}
