/* Tutone Web - site styles */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-alternates-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-alternates-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--blue: #0078D4;
	--blue-dark: #005A9E;
	--blue-deep: #004E8C;
	--navy: #003B6F;
	--navy-deep: #002B52;
	--sky: #2899F5;
	--cyan: #50E6FF;
	--ink: #0B2540;
	--text: #3B4B5E;
	--link: #0067B8;
	--tint: #F3F8FD;
	--line: #D6E8F8;
	--line-strong: #B9D4EC;
	--radius: 12px;
	--wrap: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Manrope", "Inter", system-ui, sans-serif;
	--font-logo: "Montserrat Alternates", "Manrope", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); }
a:hover { color: #004E8C; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 10; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { color: var(--navy); box-shadow: 0 8px 20px rgba(0, 30, 60, .25); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- Header + hero ---------- */
.hero-band {
	color: #fff;
	background-color: var(--blue);
	background-image:
		radial-gradient(ellipse at 85% 10%, rgba(80, 230, 255, .45), rgba(80, 230, 255, 0) 55%),
		radial-gradient(ellipse at 0% 100%, rgba(0, 43, 82, .6), rgba(0, 43, 82, 0) 60%),
		linear-gradient(135deg, #004E8C 0%, #0078D4 50%, #2899F5 100%);
}
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__word { font-family: var(--font-logo); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; }
.brand__word span { font-weight: 300; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
.hero h1 { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 5.4vw, 58px); line-height: 1.07; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero__lead { font-size: 19px; color: #E6F3FF; max-width: 540px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 14px; }
.eyebrow--light { color: #C7E8FF; margin-bottom: 20px; }

.code-card { background: var(--navy); border-radius: var(--radius); padding: 26px; font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; color: #B9D4EC; box-shadow: 0 24px 48px rgba(0, 30, 60, .35); overflow-x: auto; }
.code-card b { color: var(--cyan); font-weight: 400; }
.code-card i { color: #FFD866; font-style: normal; }
.code-card .indent { padding-left: 20px; }
.code-card .muted { margin-top: 14px; color: #7FA6CB; }
.code-card__dots { display: flex; gap: 8px; margin-bottom: 18px; }
.code-card__dots span { width: 12px; height: 12px; border-radius: 50%; background: #1A5A94; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } }
.section__lead { font-size: 18px; max-width: 640px; margin-bottom: 48px; }
/* Soft "light wash" background for the white sections (replaces the old dot pattern) */
.section--dots {
	position: relative;
	background-color: #FFFFFF;
	background-image:
		radial-gradient(ellipse 60% 45% at 0% 0%, rgba(0, 120, 212, .09), rgba(0, 120, 212, 0) 70%),
		radial-gradient(ellipse 50% 40% at 100% 30%, rgba(80, 230, 255, .12), rgba(80, 230, 255, 0) 70%),
		radial-gradient(ellipse 55% 45% at 30% 100%, rgba(40, 153, 245, .07), rgba(40, 153, 245, 0) 70%),
		linear-gradient(180deg, #FFFFFF 0%, #F6FAFE 100%);
}
.section--dots::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, rgba(0, 120, 212, 0), rgba(0, 120, 212, .25), rgba(80, 230, 255, .35), rgba(0, 120, 212, 0));
}
.section--dots .card { background: #FFFFFF; border-color: #E2EDF8; box-shadow: 0 1px 2px rgba(0, 43, 82, .04), 0 12px 32px rgba(0, 90, 158, .08); transition: transform .2s ease, box-shadow .2s ease; }
.section--dots .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 43, 82, .05), 0 18px 40px rgba(0, 90, 158, .14); }
@media (prefers-reduced-motion: reduce) { .section--dots .card, .section--dots .card:hover { transition: none; transform: none; } }
.section--tint { background: var(--tint); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split .section__lead { margin-bottom: 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ColdFusion */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink); }
.checklist li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 18px 20px; font-size: 16px; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 32px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 90, 158, .08); display: flex; flex-direction: column; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF4FA; border-bottom: 1px solid var(--line); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #C5D3E2; }
.browser__bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #5A6B7E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__empty { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: #E3F0FB; color: #4A6A8A; font-size: 14px; }
.project__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__body p { font-size: 15px; }
.project__link { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.project__link:hover { text-decoration: underline; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--blue-dark); background: #E8F2FC; border-radius: 999px; padding: 4px 10px; }

/* Carousel */
.carousel { position: relative; background: #E3F0FB; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
.carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 10; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.carousel__slide figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 43, 82, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 30, 60, .2); opacity: .9; transition: opacity .15s ease, background-color .15s ease; }
.carousel__btn:hover { opacity: 1; background: #fff; }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 2px; background: rgba(0, 43, 82, .55); padding: 0 6px; border-radius: 999px; }
.carousel__dots button { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.carousel__dots button[aria-current="true"]::before { background: #fff; }

/* ---------- Contact ---------- */
.section--navy { background: var(--navy); color: #D6E8F8; }
.section--navy h2 { color: #fff; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: 17px; color: #fff; }
.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.contact__list a:hover { color: #fff; border-bottom-color: #fff; }

.form { background: #fff; border-radius: 14px; padding: 32px; display: grid; gap: 16px; color: var(--ink); box-shadow: 0 24px 48px rgba(0, 20, 40, .3); }
@media (max-width: 600px) { .form { padding: 22px; } }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: #5A6B7E; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 120, 212, .2); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__err { font-size: 13px; color: #B3261E; min-height: 0; }
.field__err:empty { display: none; }
.captcha { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.captcha .field { flex: 1 1 160px; }
.captcha__img { display: flex; align-items: center; gap: 6px; }
.captcha__img img { border-radius: 6px; border: 1px solid var(--line-strong); }
.captcha__refresh { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--blue-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.captcha__refresh:hover { background: var(--tint); }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.form__status.is-ok { background: #E7F6EC; color: #0A5C27; }
.form__status.is-error { background: #FDECEA; color: #8C1D18; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9FC3E3; text-align: center; font-size: 14px; padding: 26px 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.site-header { flex-wrap: nowrap; }
	.brand { gap: 8px; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__word { font-size: 21px; }
	.site-nav .btn--sm { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
	.hero { padding-top: 48px; padding-bottom: 80px; }
	.code-card { display: none; }
}
