/* Degitally Media — website styles */
:root {
  --navy: #002C46;
  --navy-2: #0B3B5A;
  --navy-3: #1E4A68;
  --orange: #F63D0C;      /* logo orange: decoration only */
  --accent: #CC3208;      /* buttons and links (readable) */
  --accent-dark: #A82A06;
  --accent-light: #FF7A50; /* on navy backgrounds */
  --peach: #FFE6DC;
  --ground: #F7F6F2;
  --white: #FFFFFF;
  --line: #E4E1D8;
  --muted: #4A5565;
  --muted-on-navy: #C3CAD6;
  --radius: 18px;
  --max: 1240px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--ground); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1px; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 680px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 16px; z-index: 99; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: #D6D2C6; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--accent-light); color: var(--navy); }
.btn-light:hover { background: #FF9C7A; color: var(--navy); }
.btn-ghost { color: var(--white); border-color: #2A5574; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-lg { font-size: 17px; padding: 16px 26px; }

/* Header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--navy); text-decoration: none; }
.main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 48px; height: 48px; cursor: pointer; color: var(--navy); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 32px 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--peach); color: var(--accent-dark); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -2px; }
.hero .lead { font-size: 20px; margin-top: 24px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px; }
.stat b { display: block; font-size: 32px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }
.flow-card { flex: 1 1 420px; min-width: 0; background: var(--navy); border-radius: 24px; padding: 32px; color: var(--muted-on-navy); }
.flow-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.flow-card-head p { color: var(--white); font-weight: 600; font-size: 18px; }
.tag-sample { font-size: 12px; color: #FF9C7A; border: 1px solid #8A3A1F; padding: 3px 10px; border-radius: 999px; }
.flow-steps { display: flex; flex-direction: column; gap: 12px; }
.flow-step { display: flex; align-items: center; gap: 16px; background: var(--navy-2); border-radius: 14px; padding: 16px; }
.flow-step .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-light); }
.flow-step div { flex: 1; }
.flow-step strong { color: var(--white); display: block; }
.flow-step small { font-size: 14px; color: #B8C8D8; }
.flow-step .val { color: var(--white); font-weight: 600; white-space: nowrap; }

/* Client logos */
.logos { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.logos-title { text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 24px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.logo-cell { height: 72px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; }
.logo-cell img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-cell img:hover { filter: none; opacity: 1; }
.logo-cell .name-only { font-weight: 600; color: var(--muted); text-align: center; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--navy); text-decoration: none; }
a.card:hover { border-color: var(--navy); color: var(--navy); }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { color: var(--muted); }
.card .ico { color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.badge { font-size: 12px; font-weight: 600; background: var(--peach); color: var(--accent-dark); padding: 3px 10px; border-radius: 999px; }
.badge-grey { background: #F1EFE9; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { border-top: 3px solid var(--navy); padding-top: 20px; }
.step b { color: var(--accent); font-size: 20px; }
.step h3 { margin: 8px 0; font-size: 22px; font-weight: 600; }
.step p { color: var(--muted); }

.industry { min-height: 300px; border-radius: 20px; padding: 32px; }
.industry h3 { font-size: 25px; }
.industry p { flex: 1; }
.industry .more { font-weight: 600; color: var(--accent); }
.industry-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
a.industry-dark:hover { color: var(--white); border-color: var(--navy-2); }
.industry-dark p { color: var(--muted-on-navy); }
.industry-dark .ico, .industry-dark .more { color: #FF9C7A; }
.industry-dashed { background: var(--ground); border-style: dashed; border-color: #C9C4B6; }

.case { padding: 0; overflow: hidden; }
.case-img { height: 200px; background: #E8E4D9; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 500; }
.case-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-nums { display: flex; gap: 28px; }
.case-nums b { display: block; font-size: 30px; color: var(--accent); font-weight: 700; }
.case-nums span { font-size: 14px; color: var(--muted); }

/* Squrefit */
.sq { background: var(--navy); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; color: var(--muted-on-navy); }
.sq-copy { flex: 1 1 460px; min-width: 0; }
.sq .eyebrow { color: #FF9C7A; }
.sq h2 { color: var(--white); }
.sq-copy > p { font-size: 18px; margin-top: 20px; }
.sq-feats { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sq-feats div { background: var(--navy-2); border-radius: 16px; padding: 22px; }
.sq-feats strong { display: block; color: var(--white); margin-bottom: 6px; }
.sq-feats span { font-size: 14px; color: #B8C8D8; }
.sq-end { background: var(--navy); border-radius: 24px; padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.sq-end-copy { flex: 1 1 520px; min-width: 0; display: flex; align-items: center; gap: 22px; }
.sq-end-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.sq-end small { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #FF9C7A; }
.sq-end h2 { font-size: 26px; font-weight: 600; color: var(--white); line-height: 1.3; }
.sq-end p { color: var(--muted-on-navy); margin-top: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Testimonials */
.testimonials { background: var(--peach); }
.quote { margin: 0; background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 19px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; background: #E8E4D9; flex-shrink: 0; object-fit: cover; }
.avatar-initial { display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-weight: 600; font-size: 20px; }
.stars { color: #E8A317; font-size: 20px; letter-spacing: 2px; }
.quote strong { display: block; }
.quote small { color: var(--muted); font-size: 14px; }

/* Blog cards */
.post-card { padding: 0; overflow: hidden; }
.post-cover { aspect-ratio: 16 / 9; background: #E9EEF2; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-meta b { color: var(--accent-dark); font-weight: 600; }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card p { flex: 1; font-size: 15px; }
.post-card .more { font-weight: 600; color: var(--accent); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 400px; min-width: 0; }
.contact-copy h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; letter-spacing: -1.2px; }
.contact-copy .lead { margin: 20px 0 32px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list a, .contact-list p { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); text-decoration: none; }
.contact-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.form-card { flex: 1 1 460px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C4B6; border-radius: 10px; min-height: 48px; background: var(--white); color: var(--navy); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid #FFD2C2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: #5F6878; }
.flash { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.flash-ok { background: #E3F4EA; color: #146C3A; border: 1px solid #B9E2C8; }
.flash-err { background: #FDECE7; color: #9B2A0B; border: 1px solid #F3C3B4; }

/* Location */
.location { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.location-copy { flex: 1 1 380px; min-width: 0; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.location-copy h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; }
.location-copy address { font-style: normal; font-size: 17px; }
.location-map { flex: 1 1 480px; min-width: 0; min-height: 380px; background: #E9EEF2; }
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-on-navy); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--white); font-weight: 600; font-size: 15px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer a { color: var(--muted-on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid p { font-size: 15px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1A4563; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.socials { display: flex; gap: 16px; }

/* Blog pages */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -1.5px; }
.page-head .lead { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { padding: 9px 16px; min-height: 40px; border-radius: 999px; border: 1px solid #D6D2C6; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); background: var(--white); border: 1px dashed #C9C4B6; border-radius: 20px; }
.article { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
.article .back { font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 24px; }
.article h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -1.2px; margin: 12px 0 18px; }
.article-cover { border-radius: 20px; overflow: hidden; margin: 28px 0 36px; }
.article-cover img { width: 100%; }
.prose { font-size: 18px; line-height: 1.75; color: #1F2A37; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; color: var(--navy); }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; color: var(--navy); }
.prose li { margin-bottom: .4em; }
.article-cta { margin-top: 48px; background: var(--navy); color: var(--muted-on-navy); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.article-cta strong { color: var(--white); font-size: 20px; display: block; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 999px; background: #1E8E4E; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 60; }
.wa-float:hover { background: #17733F; color: var(--white); }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .sq, .sq-end, .location-copy, .form-card { padding: 28px; }
  .sq-feats { grid-template-columns: 1fr; }
  .flow-step .val { display: none; }
  .hero { padding-top: 48px; }
}
