/*
Theme Name: Orto Sênior
Theme URI: https://ortosenior.com.br
Author: Orto Sênior
Description: Tema customizado para aluguel de equipamentos ortopédicos em Florianópolis. Sem page builder.
Version: 1.0
Text Domain: ortosenior
*/

/* ===== Design tokens ===== */
:root {
	--ink: #2b2b2b;
	--ink-soft: #5a5f5d;
	--teal: #1f8a7a;
	--teal-bright: #36ab9b;
	--teal-deep: #146058;
	--red: #c53d3d;
	--bg: #f6f9f8;
	--surface: #ffffff;
	--sand: #f1efea;
	--line: #dfe6e3;
	--radius: 14px;
	--shadow: 0 8px 24px -12px rgba(20, 60, 54, 0.18);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.eyebrow {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--teal-deep);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Signature micro-motif: vertebrae dots, echoing the logo's spine icon.
   Deliberately NOT a horizontal row of same-size dots — that pattern reads
   universally as carousel/slider pagination, which this is not. */
.dots {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}
.dots span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--red);
	display: block;
}
.dots span:nth-child(2) { width: 4px; height: 4px; }
.dots span:nth-child(3) { width: 3px; height: 3px; }

.dots.divider {
	display: block;
	flex-direction: row;
	width: 64px;
	height: 3px;
	margin: 48px auto;
	padding: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--red), var(--teal-bright));
}
.dots.divider span { display: none; }

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-whatsapp {
	background: var(--teal);
	color: #fff;
	box-shadow: var(--shadow);
}
.btn-whatsapp:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(246, 249, 248, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img { height: 42px; width: auto; }
.site-branding .name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--ink);
	line-height: 1.1;
}
.site-branding .tagline {
	font-size: 0.72rem;
	color: var(--ink-soft);
	letter-spacing: 0.03em;
}
.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.primary-nav a:hover { color: var(--teal-deep); }
.header-cta .btn { padding: 11px 20px; font-size: 0.9rem; }
@media (min-width: 900px) {
	.primary-nav { display: block; }
}

/* ===== Hero ===== */
.hero {
	padding: 56px 0 40px;
}
.hero-grid {
	display: grid;
	gap: 32px;
	align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
	margin-top: 28px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.92rem;
	color: var(--ink-soft);
}
.hero-trust .stars { color: var(--teal-bright); font-size: 1.1rem; letter-spacing: 1px; }
.hero-trust strong { color: var(--ink); }
.hero-visual {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--sand);
	box-shadow: var(--shadow);
	aspect-ratio: 4/3;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}
/* Fotos novas (geradas, 4:3 nativo, boa resolução): preenchem o quadro
   inteiro, sem moldura/padding — cover em vez de contain. */
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .hero-visual { margin-right: 0; } }
@media (min-width: 900px) {
	.hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ===== Item grid ===== */
.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-alt { background: var(--sand); }

.item-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
@media (min-width: 640px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }

.item-card {
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 10px -6px rgba(20,60,54,0.15);
	border: 1px solid var(--line);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-card .thumb { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.item-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.item-card .area { font-size: 0.8rem; color: var(--teal-deep); font-weight: 700; margin-bottom: 10px; }
.item-card .btn { margin-top: auto; padding: 10px 16px; font-size: 0.85rem; width: 100%; justify-content: center; }

/* ===== Steps (real 3-step process, numbering justified) ===== */
.steps { display: grid; gap: 24px; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 0; }
.step .num {
	font-family: var(--font-display);
	font-size: 2.4rem;
	color: var(--teal-bright);
	opacity: 0.55;
	line-height: 1;
	margin-bottom: 10px;
	display: block;
}
.step h3 { margin-bottom: 6px; }

/* ===== Reviews ===== */
.reviews-summary {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.reviews-summary .score {
	font-family: var(--font-display);
	font-size: 2.6rem;
	font-weight: 600;
	color: var(--ink);
}
.reviews-summary .stars { color: var(--teal-bright); font-size: 1.3rem; letter-spacing: 2px; }
.reviews-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
}
@media (min-width: 780px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}
.review-card .stars { color: var(--teal-bright); font-size: 0.95rem; margin-bottom: 10px; display: block; }
.review-card p { font-size: 0.95rem; color: var(--ink); }
.review-card .author { font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); margin-top: 10px; }

/* ===== Single item page ===== */
.item-hero { padding: 40px 0 20px; }
.item-hero-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .item-hero-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.item-hero-visual {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--sand);
	box-shadow: var(--shadow);
	aspect-ratio: 4/3;
	max-width: 480px;
}
/* Fotos novas (geradas, 4:3 nativo, boa resolução): preenchem o quadro
   inteiro, sem moldura/padding — cover em vez de contain. */
.item-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-hero-copy .eyebrow { margin-bottom: 14px; }
.item-hero-copy h1 { margin-bottom: 14px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: underline; }
.item-body { max-width: 68ch; }
.item-body h2 { margin-top: 1.4em; }
.whatsapp-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin-top: 24px;
	box-shadow: 0 2px 10px -6px rgba(20,60,54,0.12);
}
.whatsapp-box p { margin-bottom: 16px; font-size: 0.95rem; }
.related-items { margin-top: 8px; }

/* ===== CTA band ===== */
.cta-band {
	background: linear-gradient(135deg, var(--teal-deep), var(--teal));
	color: #fff;
	padding: 56px 0;
	text-align: center;
	border-radius: var(--radius);
	margin: 0 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-whatsapp { background: #fff; color: var(--teal-deep); }
.cta-band .btn-whatsapp:hover { background: var(--sand); }

/* ===== Footer ===== */
.site-footer {
	background: var(--ink);
	color: #e7ebe9;
	padding: 48px 0 24px;
	margin-top: 56px;
}
.site-footer a { color: #e7ebe9; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-grid { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .name { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.footer-brand p { color: #b7bdba; font-size: 0.9rem; margin-top: 10px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 20px;
	font-size: 0.82rem;
	color: #8b928f;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
}

/* ===== Sticky mobile WhatsApp bar ===== */
.mobile-whatsapp-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 60;
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	box-shadow: 0 -6px 18px -10px rgba(0,0,0,0.25);
}
.mobile-whatsapp-bar .btn { width: 100%; justify-content: center; }
@media (min-width: 900px) { .mobile-whatsapp-bar { display: none; } }
body { padding-bottom: 78px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
