/* ================= Tokens ================= */
:root {
  --ink: #0b1624;
  --navy: #0f1f33;
  --navy-2: #182d47;
  --accent: #4d8fcc;
  --accent-dark: #2f6fae;
  --accent-light: #a8cdef;
  --paper: #ffffff;
  --tint: #f2f6fa;
  --line: #dde5ed;
  --text: #1d2935;
  --muted: #627180;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(11, 22, 36, 0.12);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ================= Base ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans); color: var(--text); background: var(--paper);
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased;
  top: 0 !important; /* keep Google Translate from shifting the page */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); margin-top: 1.2rem; }
.muted a { color: var(--accent-dark); font-weight: 600; }

.label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 1rem; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 12px; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: .9rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent-light); }
.btn-small { padding: .7rem 1.3rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ================= Top bar ================= */
.topbar { background: var(--navy); color: #b7c5d4; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 40px; }
.lang { display: flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--white); }
.lang svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; cursor: pointer; font-family: var(--sans); font-size: .8rem; font-weight: 600; padding-right: .2rem; }
.lang select option { color: var(--ink); }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(11,22,36,.06); }
.nav-wrap { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: .22em; }
.main-nav { display: flex; gap: .4rem; margin: 0 auto; padding: .35rem; background: var(--tint); border-radius: 14px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 10px; transition: background .3s, color .3s; }
.main-nav a:hover { background: var(--white); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ================= Hero ================= */
.hero { padding: 5.5rem 0 3rem; background: radial-gradient(1000px 500px at 50% -10%, #e3eef9, transparent 70%); overflow: hidden; }
.hero-head { text-align: center; max-width: 900px; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.8rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; margin: 1.6rem auto 2.4rem; }
.hero-actions { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }

.collage {
  position: relative; margin-top: 4rem;
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.2rem; height: min(560px, 60vw);
}
.collage figure { overflow: hidden; border-radius: var(--radius); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage figure:hover img { transform: scale(1.05); }
.c-main { grid-row: 1 / 3; }
.c-float {
  position: absolute; left: 28px; bottom: 28px; background: var(--white); border-radius: 16px;
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.c-float strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.c-float span { font-size: .84rem; color: var(--muted); }

.ticker { margin-top: 3rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { display: flex; align-items: center; padding-right: 2.5rem; font-weight: 700; font-size: .95rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.ticker-track span::after { content: "✳"; color: var(--accent); margin-left: 2.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= Sections ================= */
.section { padding: 7rem 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #b7c5d4; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h2 em { color: var(--accent-light); }
.section-dark .label { color: var(--accent-light); }
.head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 3.5rem; }
.head-split > p { max-width: 420px; color: var(--muted); }

/* ================= Products: tabbed showcase ================= */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 100px; }
.tab {
  display: flex; align-items: center; justify-content: space-between; text-align: left;
  background: none; border: 0; border-radius: 12px; padding: .9rem 1.1rem; cursor: pointer;
  font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--muted);
  transition: background .3s, color .3s;
}
.tab::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: .3s; color: var(--accent); }
.tab:hover { background: var(--tint); color: var(--ink); }
.tab.active { background: var(--navy); color: var(--white); }
.tab.active::after { opacity: 1; transform: none; color: var(--accent-light); }
.tab-custom { margin-top: .5rem; border: 1.5px dashed var(--line); }

.panels { position: relative; }
.panel { display: none; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.panel.active { display: grid; grid-template-columns: 1.15fr 1fr; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.panel-body { padding: 2.8rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.panel-body h3 { font-size: 2rem; margin-bottom: .8rem; }
.panel-body p { color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2rem; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .84rem; font-weight: 600; }
.link-arrow { align-self: flex-start; font-weight: 700; color: var(--accent-dark); text-decoration: none; border-bottom: 2px solid var(--accent-light); padding-bottom: .2rem; }
.link-arrow::after { content: " →"; transition: margin .3s; }
.link-arrow:hover::after { margin-left: .3rem; }
.panel-custom { background: var(--navy); }
.panel-custom h3 { color: var(--white); }
.panel-custom p { color: #b7c5d4; }
.panel-custom .tags li { background: rgba(255,255,255,.08); border-color: transparent; color: #d6e1ec; }
.panel-custom .link-arrow { color: var(--accent-light); border-color: var(--accent); }

/* ================= Why: bento ================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1.2rem; }
.tile { position: relative; border-radius: var(--radius); background: var(--white); padding: 1.8rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.tile p { color: var(--muted); font-size: .93rem; }
.tile-icon { position: absolute; top: 1.6rem; left: 1.8rem; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: 1 / -1; }
.tile-img { padding: 0; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-img:hover img { transform: scale(1.05); }
.tile-overlay { position: relative; padding: 1.8rem; background: linear-gradient(transparent, rgba(11,22,36,.92) 70%); }
.tile-wide .tile-overlay { background: linear-gradient(90deg, rgba(11,22,36,.92), rgba(11,22,36,.5) 55%, transparent); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tile-overlay h3 { color: var(--white); font-size: 1.5rem; }
.tile-overlay p { color: #d0dbe6; max-width: 520px; }
.tile-dark { background: var(--navy); }
.tile-dark h3 { color: var(--white); }
.tile-dark p { color: #9fb0c2; }
.tile-dark .tile-icon { background: rgba(255,255,255,.08); }
.tile-dark .tile-icon svg { stroke: var(--accent-light); }
.tile-accent { background: var(--accent); }
.tile-accent h3 { color: var(--white); }
.tile-accent p { color: #e6f0fa; }
.tile-accent .tile-icon { background: rgba(255,255,255,.18); }
.tile-accent .tile-icon svg { stroke: var(--white); }

/* ================= Customisation: accordion ================= */
.custom-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.custom-media { position: relative; }
.custom-media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); }
.custom-note { position: absolute; right: -20px; bottom: 40px; max-width: 230px; background: var(--navy); color: #b7c5d4; padding: 1.3rem 1.5rem; border-radius: 16px; box-shadow: var(--shadow); }
.custom-note strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.custom-wrap h2 { margin-bottom: 2rem; }
.accordion details, .faq details { border-bottom: 1px solid var(--line); }
.accordion summary, .faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.accordion summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.accordion summary::after, .faq summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--accent-dark); font-size: 1.2rem; font-weight: 500; transition: transform .3s, background .3s, color .3s;
}
.accordion details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.accordion details p, .faq details p { color: var(--muted); padding: 0 3rem 1.4rem 0; }

/* ================= Process: rows ================= */
.steps { list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.steps li {
  display: grid; grid-template-columns: 120px 1fr 1.4fr; align-items: center; gap: 2rem;
  padding: 1.8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); transition: padding .4s var(--ease), background .4s;
}
.steps li:hover { padding-left: 1.2rem; background: rgba(255,255,255,.03); }
.step-no { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent-light); line-height: 1; }
.steps h3 { margin: 0; font-size: 1.5rem; }
.steps p { color: #9fb0c2; }

/* ================= FAQ ================= */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }

/* ================= Contact: split card ================= */
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.contact-side {
  position: relative; padding: clamp(2rem, 4vw, 3.5rem); color: #b7c5d4;
  background: linear-gradient(160deg, rgba(15,31,51,.96), rgba(24,45,71,.9)), url("../images/craft.jpg") center / cover;
}
.contact-side .label { color: var(--accent-light); }
.contact-side h2 { color: var(--white); margin-bottom: 1rem; }
.contact-side h2 em { color: var(--accent-light); }
.company { margin-top: 2.4rem; display: grid; gap: .3rem; }
.company dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-top: 1.1rem; }
.company dd { color: var(--white); font-weight: 600; line-height: 1.6; }

.contact-form { padding: clamp(2rem, 4vw, 3.5rem); }
.contact-form h3 { font-size: 1.8rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: .45rem; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint);
  font-family: var(--sans); font-size: .97rem; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.contact-form select { cursor: pointer; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(77,143,204,.15); }
.form-error { color: #b42318; font-size: .9rem; margin-top: 1rem; text-align: center; }
.form-success { text-align: center; padding: 3rem 0; }
.form-success p { color: var(--muted); }
.success-icon { width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ================= Footer ================= */
.site-footer { background: var(--ink); color: #8e9cab; padding: 4.5rem 0 2rem; font-size: .92rem; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 3rem; align-items: start; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer-top a, .copyright a { text-decoration: none; color: #c7d3df; transition: color .3s; }
.footer-top a:hover, .copyright a:hover { color: var(--accent-light); }
.footer-top address { font-style: normal; line-height: 1.7; }
.wordmark {
  font-weight: 800; letter-spacing: .08em; line-height: .9; text-align: center; margin: 3.5rem 0 2rem;
  font-size: clamp(4rem, 17vw, 15rem);
  background: linear-gradient(180deg, rgba(168,205,239,.35), rgba(168,205,239,.04));
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.8rem; font-size: .82rem; }

/* Google Translate: hide its default UI */
.skiptranslate iframe, body > .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .main-nav a { padding: .5rem .7rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 240px 1fr; }
  .panel.active { grid-template-columns: 1fr; }
  .panel img { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; margin: 0; border-radius: 0;
    flex-direction: column; background: var(--white); padding: .8rem 16px 1.4rem;
    box-shadow: 0 20px 30px rgba(0,0,0,.08); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 5rem 0; }
  .head-split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .showcase { grid-template-columns: 1fr; }
  .tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; background: var(--tint); }
  .tab::after { display: none; }
  .tab-custom { margin-top: 0; }
  .custom-wrap, .faq-wrap, .contact-card { grid-template-columns: 1fr; gap: 3rem; }
  .contact-card { gap: 0; }
  .custom-note { right: 16px; }
  .steps li { grid-template-columns: 70px 1fr; gap: .4rem 1.4rem; }
  .steps li p { grid-column: 2; }
  .step-no { grid-row: span 2; font-size: 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 640px) {
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .hero { padding-top: 3.5rem; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px; height: auto; gap: .8rem; margin-top: 2.8rem; }
  .c-main { grid-column: 1 / 3; grid-row: 1; }
  .c-top { grid-row: 2; }
  .c-bottom { grid-row: 2; }
  .c-float { left: 12px; bottom: 172px; padding: .8rem 1.1rem; }
  .c-float strong { font-size: 1.2rem; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { min-height: 200px; padding-top: 5rem; }
  .tile-img { min-height: 280px; padding-top: 0; }
  .tile-big, .tile-wide { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .panel-body { padding: 2rem 1.5rem; }
  .accordion details p, .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}
