/* SD Motivation theme – brand: teal #4fbec4 / deep teal #00828d and pink #f81e61 (from the logo). */

:root {
	--teal: #4fbec4;
	--teal-deep: #00828d;
	--pink: #f81e61;
	--pink-text: #d4124f;
	--bg: #f7fbfb;
	--fg: #081319;
	--card: #ffffff;
	--secondary: #e0f3f4;
	--secondary-fg: #06262f;
	--muted: #ecf3f4;
	--alt: #f0f6f7;
	--muted-fg: #505d64;
	--border: #e2e8f0;
	--destructive: #d4000f;
	--shadow-soft: 0 10px 30px -12px rgba(0, 130, 141, 0.3);
	--shadow-lift: 0 22px 45px -18px rgba(0, 130, 141, 0.45);
	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
.sdm, .sdm *, .sdm *::before, .sdm *::after { box-sizing: border-box; }
section[id] { scroll-margin-top: 5rem; }
.admin-bar section[id] { scroll-margin-top: 7rem; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 1rem; top: 1rem; z-index: 100000; background: #fff; color: var(--fg);
	padding: .75rem 1rem; border-radius: .5rem; box-shadow: var(--shadow-lift);
}

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; box-sizing: border-box; }
.container--narrow { max-width: 48rem; }

:where(.sdm) img { max-width: 100%; height: auto; }
.sdm a { color: inherit; }
.sdm h1, .sdm h2, .sdm h3, .sdm p, .sdm ul, .sdm figure, .sdm blockquote, .sdm address { margin: 0; }
.sdm ul { list-style: none; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; padding: .75rem 1.5rem;
	font: 600 .875rem/1.25rem var(--font); text-decoration: none !important; cursor: pointer;
	border: 1px solid transparent;
	transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.btn-primary { background: var(--teal-deep); color: #fff !important; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-outline { background: var(--card); color: var(--fg) !important; border-color: var(--border); }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--teal-deep); color: var(--teal-deep) !important; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid rgba(226, 232, 240, .6);
	background: rgba(247, 251, 251, .85);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
.site-header .brand-logo { height: var(--sdm-logo-h, 40px); width: auto; max-width: none; display: block; }
@media (max-width: 639px) { .site-header .brand-logo { height: min(var(--sdm-logo-h, 40px), 34px); } }
.main-nav ul { display: none; gap: 2rem; font-size: .875rem; font-weight: 500; }
.main-nav a { color: var(--muted-fg); text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: var(--teal-deep); }
.nav-toggle { display: block; background: none; border: 0; padding: .5rem; border-radius: .375rem; cursor: pointer; }
.nav-toggle span { display: block; width: 1.5rem; height: 2px; background: var(--fg); }
.nav-toggle span + span { margin-top: .375rem; }
.mobile-nav { border-top: 1px solid var(--border); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: flex; flex-direction: column; padding-top: .75rem; padding-bottom: .75rem; }
.mobile-nav a { display: block; padding: .75rem 0; font-weight: 500; text-decoration: none; }
@media (max-width: 639px) { .brand-name--hide-mobile { display: none; } }
@media (min-width: 768px) {
	.main-nav ul { display: flex; }
	.nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding-top: 6rem; padding-bottom: 6rem; }
.pill {
	display: inline-block; margin-bottom: 1.5rem; padding: .375rem 1rem; border-radius: 999px;
	background: var(--secondary); color: var(--secondary-fg);
	font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 { max-width: 56rem; font-size: 2.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--pink); }
.hero-sub { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: var(--muted-fg); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) {
	.hero-inner { padding-top: 8rem; padding-bottom: 8rem; }
	.hero h1 { font-size: 3.75rem; }
	.hero-sub { font-size: 1.25rem; }
	.hero-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
	.hero-inner { padding-top: 10rem; padding-bottom: 10rem; }
	.hero h1 { font-size: 4.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--alt { background: var(--alt); }
.section-title { margin-bottom: 3rem; text-align: center; }
.kicker { font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-text); }
.section-title h2 { margin-top: .75rem; font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
@media (min-width: 640px) { .section-title h2 { font-size: 3rem; } }

.card { background: var(--card); border-radius: 1.75rem; box-shadow: var(--shadow-soft); }

/* ---------- Projects ---------- */
.grid-projects { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-projects { grid-template-columns: repeat(3, 1fr); } }
.grid-projects > .reveal { display: flex; }
.project-card { display: flex; flex-direction: column; width: 100%; padding: 1.5rem; transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.project-media {
	display: flex; align-items: center; justify-content: center;
	height: 10rem; padding: 1rem; border-radius: 1.5rem; background: var(--muted);
}
.project-media img.project-img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 1.25rem; }
.project-media .sdm-initials { width: 6rem; height: 6rem; border-radius: 1.25rem; font-size: 1.875rem; }
.project-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.project-desc { margin-top: .5rem; flex: 1; color: var(--muted-fg); }
.project-link {
	margin-top: 1.5rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
	font-weight: 600; color: var(--teal-deep) !important; text-decoration: none; transition: color .2s;
}
.project-link:hover { color: var(--pink-text) !important; }
.project-link .arrow { transition: transform .2s; }
.project-card:hover .arrow { transform: translateX(4px); }

.sdm-initials {
	display: flex; align-items: center; justify-content: center;
	background: var(--teal-deep); color: #fff; font-weight: 700;
}

/* ---------- Testimonials ---------- */
.columns-testimonials { columns: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .columns-testimonials { columns: 2; } }
@media (min-width: 1024px) { .columns-testimonials { columns: 3; } }
.testimonial-wrap { margin-bottom: 1.5rem; break-inside: avoid; }
.testimonial { padding: 1.5rem; border: 1px solid var(--border); transition: box-shadow .3s; }
.testimonial:hover { box-shadow: var(--shadow-lift); }
.stars { display: flex; gap: 2px; color: var(--pink); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial blockquote { margin-top: 1rem; line-height: 1.625; }
.testimonial figcaption { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.testimonial .avatar { width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; flex: none; font-size: .875rem; }
.who { display: flex; flex-direction: column; }
.who-name { font-weight: 600; }
.who-role { font-size: .875rem; color: var(--muted-fg); }

/* ---------- Contact ---------- */
.grid-contact { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid-contact { grid-template-columns: repeat(2, 1fr); } }
.grid-contact > .reveal { display: flex; flex-direction: column; }
.grid-contact > .reveal > * { flex: 1; }

.contact-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
.contact-form[hidden], .form-success[hidden], .field-error[hidden] { display: none; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field textarea {
	display: block; width: 100%; margin-top: .375rem; padding: .75rem 1rem;
	border: 1px solid var(--border); border-radius: 1.25rem; background: var(--bg); color: var(--fg);
	font: 400 .875rem/1.5 var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal-deep); box-shadow: 0 0 0 2px rgba(0, 130, 141, .3); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field-error { margin-top: .25rem; font-size: .875rem; color: var(--destructive); }
.form-error { margin-top: 0; }
.sdm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 2rem; text-align: center; }
.form-success .tick {
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
	width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--teal-deep); color: #fff; font-size: 1.5rem;
}
.form-success h3 { font-size: 1.25rem; font-weight: 700; }
.form-success p { margin-top: .5rem; color: var(--muted-fg); }
.form-success .btn { margin-top: 1.5rem; }

.info-card {
	height: 100%; padding: 2rem; border-radius: 1.75rem; color: #fff;
	background: var(--teal-deep); box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) { .info-card { padding: 2.5rem; } }
.info-card h3 { font-size: 1.5rem; font-weight: 700; }
.info-card address { margin-top: 1.5rem; font-style: normal; line-height: 1.625; opacity: .95; }
.info-row { margin-top: 1.5rem; }
.info-row + .info-row { margin-top: .5rem; }
.info-row a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.info-row a:hover { opacity: .8; }
.info-cta { margin-top: 2.5rem; font-size: 1.125rem; font-weight: 500; opacity: .95; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--muted-fg); }
.footer-inner ul { display: flex; gap: 1.5rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--teal-deep); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

/* ---------- Generic pages / blog ---------- */
.sdm-page { padding-top: 4rem; padding-bottom: 4rem; }
.page-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 1.5rem; }
.entry-meta { color: var(--muted-fg); font-size: .875rem; margin: 0 0 1rem; }
.entry-content { line-height: 1.7; }
.entry-content img { max-width: 100%; height: auto; }
.list-item { margin-bottom: 2.5rem; }
.list-item h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.list-item h2 a { text-decoration: none; color: inherit; }
.not-found { text-align: center; }
.not-found .btn { margin-top: 1rem; }

/* ---------- Scroll animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .project-card, .testimonial { transition: none; }
}
