/* ===========================================================================
   Swallowane Investment Portal — front-end styles (all scoped under .spip-*)
   =========================================================================== */
:root {
	--spip-green: #1f5d4c;
	--spip-green-dark: #16463a;
	--spip-gold: #c79a3e;
	--spip-ink: #1d2b26;
	--spip-muted: #6b7770;
	--spip-line: #e3e7e4;
	--spip-bg: #f6f8f6;
	--spip-radius: 14px;
}

.spip-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 18px 56px;
	color: var(--spip-ink);
	font-size: 16px;
	line-height: 1.6;
}
.spip-wrap *, .spip-form * { box-sizing: border-box; }

/* ---- Buttons ------------------------------------------------------------ */
.spip-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--spip-green);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	border: 2px solid var(--spip-green);
	cursor: pointer;
	transition: transform .08s ease, background .15s ease;
	font-size: 15px;
	line-height: 1.2;
}
.spip-btn:hover { background: var(--spip-green-dark); transform: translateY(-1px); }
.spip-btn-primary { background: var(--spip-gold); border-color: var(--spip-gold); color: #1d2b26 !important; width: 100%; text-align: center; padding: 14px; font-size: 16px; }
.spip-btn-primary:hover { background: #b3872f; border-color: #b3872f; }
.spip-btn-outline { background: transparent; color: var(--spip-green) !important; }
.spip-btn-outline:hover { background: var(--spip-green); color: #fff !important; }
.spip-btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff !important; width: 100%; text-align: center; }
.spip-btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.spip-wa-icon { font-size: 17px; }

/* ---- Notices ------------------------------------------------------------ */
.spip-note, .spip-muted { color: var(--spip-muted); }
.spip-gate {
	background: var(--spip-bg);
	border: 1px solid var(--spip-line);
	border-radius: var(--spip-radius);
	padding: 34px;
	text-align: center;
}
.spip-gate h3 { margin-top: 0; font-size: 22px; }
.spip-gate .spip-btn { margin: 6px 4px 0; }

.spip-alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.spip-alert h3 { margin: 0 0 6px; font-size: 18px; }
.spip-alert p { margin: 0; }
.spip-alert-success { background: #eaf5ef; border: 1px solid #bfe0cd; color: #155c3e; }
.spip-alert-error { background: #fdeceb; border: 1px solid #f3c3bf; color: #9a2820; }

/* ---- Forms -------------------------------------------------------------- */
.spip-form-card {
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--spip-line);
	border-radius: var(--spip-radius);
	padding: 34px;
	box-shadow: 0 10px 30px rgba(20, 50, 40, .06);
}
.spip-form-card.spip-form-wide { max-width: 900px; }
.spip-form-card h2 { margin-top: 0; font-size: 26px; }
.spip-form-intro { color: var(--spip-muted); margin-top: -4px; }

.spip-onb-head { text-align: center; border-bottom: 1px solid var(--spip-line); padding-bottom: 18px; margin-bottom: 22px; }
.spip-onb-head h2 { margin-bottom: 4px; }
.spip-onb-head p { color: var(--spip-muted); margin: 0; font-size: 14px; }

.spip-field { margin-bottom: 16px; }
.spip-field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.spip-field input[type=text],
.spip-field input[type=email],
.spip-field input[type=url],
.spip-field input[type=tel],
.spip-field input[type=password],
.spip-field input[type=number],
.spip-field select,
.spip-field textarea,
.spip-pw-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--spip-line);
	border-radius: 9px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--spip-ink);
}
.spip-field input:focus, .spip-field select:focus, .spip-field textarea:focus {
	outline: none;
	border-color: var(--spip-green);
	box-shadow: 0 0 0 3px rgba(31, 93, 76, .12);
}
.spip-field input[type=file] { width: 100%; font-size: 14px; padding: 8px 0; }
.spip-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.spip-sub { font-size: 13px; color: var(--spip-muted); margin: 0 0 8px; }
.spip-hint { display: block; font-size: 12.5px; color: var(--spip-muted); margin-top: 5px; line-height: 1.45; }

.spip-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; margin: 14px 0 18px; color: var(--spip-muted); }
.spip-check input { margin-top: 3px; }
.spip-form-foot { text-align: center; margin-top: 16px; font-size: 14px; }
.spip-form-foot a { color: var(--spip-green); }

/* ---- Password reveal ---------------------------------------------------- */
.spip-pw-wrap { position: relative; display: block; }
.spip-pw-wrap .spip-pw-input { padding-right: 70px; }
.spip-pw-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	background: var(--spip-bg);
	border: 1px solid var(--spip-line);
	border-radius: 7px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--spip-green);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.spip-pw-toggle:hover { background: #fff; }

/* ---- Role chooser ------------------------------------------------------- */
.spip-roles { border: 0; padding: 0; margin: 0 0 16px; }
.spip-roles legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.spip-role-opt {
	display: flex; align-items: flex-start; gap: 11px;
	border: 1px solid var(--spip-line); border-radius: 11px;
	padding: 13px; margin-bottom: 9px; cursor: pointer;
}
.spip-role-opt:hover { border-color: var(--spip-green); }
.spip-role-opt input { margin-top: 3px; }
.spip-role-opt strong { display: block; }
.spip-role-opt small { color: var(--spip-muted); }

/* ---- Stepped onboarding sections --------------------------------------- */
.spip-step {
	background: var(--spip-bg);
	border: 1px solid var(--spip-line);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 22px;
}
.spip-step > h3 {
	margin: 0 0 16px;
	font-size: 18px;
	display: flex; align-items: center; gap: 10px;
}
.spip-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--spip-green); color: #fff;
	font-size: 13px; font-weight: 700; flex: none;
}
.spip-step-note { font-size: 13px; color: var(--spip-muted); margin: -6px 0 14px; }

.spip-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.spip-choice {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid var(--spip-line);
	border-radius: 9px; padding: 11px; cursor: pointer; font-size: 14px;
}
.spip-choice:hover { border-color: var(--spip-green); }
.spip-choice input { flex: none; }
.spip-inline-radios { display: flex; gap: 20px; flex-wrap: wrap; }
.spip-inline-radios label { display: flex; align-items: center; gap: 7px; font-size: 14px; }

.spip-legal-note {
	background: #fdf6e6; border: 1px solid #ecd9a6;
	border-radius: 10px; padding: 14px 16px;
	font-size: 13px; color: #6a5418; line-height: 1.55;
}
.spip-hidden { display: none !important; }

/* ---- Financial projections table --------------------------------------- */
.spip-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spip-proj-table, .spip-proj-display {
	width: 100%; border-collapse: collapse; background: #fff; font-size: 14px;
}
.spip-proj-table th, .spip-proj-display th {
	background: var(--spip-green); color: #fff; text-align: left;
	padding: 9px 11px; font-size: 13px;
}
.spip-proj-table td, .spip-proj-display td {
	border: 1px solid var(--spip-line); padding: 6px;
}
.spip-proj-table input { width: 100%; min-width: 110px; border: 1px solid var(--spip-line); border-radius: 7px; padding: 8px; font-size: 14px; }
.spip-proj-display td { padding: 9px 11px; }
.spip-proj-display tr:nth-child(even) { background: var(--spip-bg); }
.spip-proj-table td:last-child {
	width: 48px;
	text-align: center;
	padding: 4px;
}
.spip-row-remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	max-width: 28px !important;
	padding: 0 !important;
	margin: 0 auto !important;
	background: #fff !important;
	color: #9aa39e !important;
	border: 1px solid var(--spip-line) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer !important;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.spip-row-remove:hover {
	background: #fdeceb !important;
	border-color: #e2a39d !important;
	color: #9a2820 !important;
}
#spip-add-year { margin-top: 12px; }

/* ---- Resend verification ----------------------------------------------- */
.spip-resend { margin-top: 16px; border-top: 1px solid var(--spip-line); padding-top: 12px; }
.spip-resend summary { cursor: pointer; font-size: 14px; color: var(--spip-green); font-weight: 600; }
.spip-resend .spip-form { margin-top: 12px; }

/* ---- Project grid ------------------------------------------------------- */
.spip-projects-head { margin-bottom: 24px; }
.spip-projects-head h2 { margin: 0 0 4px; font-size: 28px; }
.spip-projects-head p { color: var(--spip-muted); margin: 0; }

.spip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}
.spip-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--spip-line);
	border-radius: var(--spip-radius); overflow: hidden;
	text-decoration: none !important; color: inherit;
	opacity: 0; transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease, box-shadow .15s ease;
}
.spip-card.spip-in { opacity: 1; transform: translateY(0); }
.spip-card:hover { box-shadow: 0 14px 32px rgba(20, 50, 40, .12); }
.spip-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--spip-bg); }
.spip-card-img img { width: 100%; height: 100%; object-fit: cover; }
.spip-card-img--empty { background: linear-gradient(135deg, #1f5d4c, #2c7a63); }
.spip-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.spip-card-body h3 { margin: 0; font-size: 19px; }
.spip-card-tag { margin: 0; color: var(--spip-muted); font-size: 14px; }
.spip-badge {
	align-self: flex-start; background: #eaf5ef; color: var(--spip-green);
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.spip-card-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.spip-card-meta li { padding: 2px 0; }
.spip-card-link { margin-top: 8px; color: var(--spip-gold); font-weight: 700; font-size: 14px; }

/* ---- Single project ----------------------------------------------------- */
.spip-single-hero { margin-bottom: 22px; }
.spip-single-cover { border-radius: var(--spip-radius); overflow: hidden; margin-bottom: 18px; }
.spip-single-cover img { width: 100%; height: auto; display: block; }
.spip-single-headline h1 { margin: 0; font-size: 32px; }
.spip-single-tag { font-size: 18px; color: var(--spip-muted); margin: 6px 0 2px; }
.spip-single-loc { color: var(--spip-gold); font-weight: 600; margin: 0; }

.spip-figures {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px; margin-bottom: 28px;
}
.spip-figure {
	background: var(--spip-bg); border: 1px solid var(--spip-line);
	border-radius: 11px; padding: 14px;
}
.spip-figure-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--spip-muted); }
.spip-figure-val { display: block; font-size: 18px; font-weight: 700; margin-top: 4px; }

.spip-single-cols { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.spip-section { margin-bottom: 26px; }
.spip-section h2 { font-size: 21px; border-bottom: 2px solid var(--spip-line); padding-bottom: 8px; margin-bottom: 12px; }
.spip-rte p { margin: 0 0 10px; }

.spip-readiness { background: var(--spip-bg); border: 1px solid var(--spip-line); border-radius: 12px; padding: 20px; }
.spip-readiness h2 { border: 0; padding: 0; }
.spip-readiness-by { color: var(--spip-gold); font-weight: 600; font-size: 13px; margin: -6px 0 12px; }
.spip-score { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.spip-score-bar { flex: 1; height: 12px; background: #dfe6e2; border-radius: 999px; overflow: hidden; }
.spip-score-bar span { display: block; height: 100%; background: var(--spip-gold); }

.spip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.spip-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }

.spip-docs { list-style: none; margin: 0; padding: 0; }
.spip-docs li {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 10px 0; border-bottom: 1px solid var(--spip-line); font-size: 14px;
}
.spip-doc-name { font-weight: 600; }

.spip-single-side { display: flex; flex-direction: column; gap: 18px; }
.spip-side-card { background: #fff; border: 1px solid var(--spip-line); border-radius: 12px; padding: 18px; }
.spip-side-card h3 { margin: 0 0 10px; font-size: 17px; }
.spip-owner-photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.spip-owner-name { font-weight: 700; margin: 0 0 6px; }
.spip-facts { list-style: none; margin: 0; padding: 0; }
.spip-facts li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--spip-line); font-size: 14px; }
.spip-cta-card { background: var(--spip-green); color: #fff; }
.spip-cta-card h3, .spip-cta-card p { color: #fff; }
.spip-back { margin-top: 10px; }
.spip-back a { color: var(--spip-green); font-weight: 600; }

/* ---- Dashboard / tables ------------------------------------------------- */
.spip-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.spip-dash-head h2 { margin: 0; }
.spip-dash-head p { margin: 4px 0 0; color: var(--spip-muted); }
.spip-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--spip-line); border-radius: 10px; overflow: hidden; }
.spip-table th { background: var(--spip-green); color: #fff; text-align: left; padding: 12px 14px; font-size: 14px; }
.spip-table td { padding: 12px 14px; border-top: 1px solid var(--spip-line); font-size: 14px; }
.spip-status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.spip-status-live { background: #eaf5ef; color: #155c3e; }
.spip-status-pending { background: #fdf6e6; color: #8a6d1e; }
.spip-status-draft { background: #fdeceb; color: #9a2820; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
	.spip-single-cols { grid-template-columns: 1fr; }
	.spip-grid-2, .spip-choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.spip-form-card { padding: 22px; }
	.spip-single-headline h1 { font-size: 25px; }
	.spip-table thead { display: none; }
	.spip-table tr { display: block; border-top: 1px solid var(--spip-line); }
	.spip-table td { display: flex; justify-content: space-between; gap: 14px; border: 0; }
	.spip-table td::before { content: attr(data-label); font-weight: 700; }
}
