/* ============================================================
   Dalmau Law Group - custom styles
   Complements Tailwind (loaded via CDN in each page's <head>).
   Edit colors in the tailwind.config block inside each HTML file.
   ============================================================ */

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", system-ui, sans-serif;
	color: #12233a;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: rgba(176, 141, 74, 0.25);
}

/* ---------- Layout helpers ---------- */
.container-site {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 80rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-site {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

/* ---------- Typographic components ---------- */
.eyebrow {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: #b08d4a;
}

.rule-gold {
	height: 1px;
	width: 4rem;
	background: #b08d4a;
}

.headline-serif {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: #0a1626;
}

.prose-institutional {
	font-size: 15px;
	line-height: 1.85;
	color: #54657a;
}

/* ---------- Buttons ---------- */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid #b08d4a;
	background: #b08d4a;
	padding: 0.875rem 1.75rem;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #ffffff;
	transition: all 0.3s;
}
.btn-primary:hover {
	background: #8f7139;
	border-color: #8f7139;
}

.btn-outline-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	padding: 0.875rem 1.75rem;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #ffffff;
	transition: all 0.3s;
}
.btn-outline-light:hover {
	border-color: #b08d4a;
	color: #b08d4a;
}

.btn-outline-navy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid rgba(18, 35, 58, 0.3);
	background: transparent;
	padding: 0.875rem 1.75rem;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #0a1626;
	transition: all 0.3s;
}
.btn-outline-navy:hover {
	border-color: #b08d4a;
	color: #8f7139;
}

/* ---------- Forms ---------- */
.input-institutional {
	width: 100%;
	border: 1px solid #c7d2e0;
	background: #ffffff;
	padding: 0.75rem 1rem;
	font-size: 14px;
	color: #0a1626;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}
.input-institutional::placeholder {
	color: rgba(84, 101, 122, 0.5);
}
.input-institutional:focus {
	border-color: #b08d4a;
	outline: none;
	box-shadow: 0 0 0 1px rgba(176, 141, 74, 0.4);
}

.label-institutional {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #1d2f44;
}

/* ---------- Legal note ---------- */
.legal-note {
	border-left: 2px solid rgba(176, 141, 74, 0.6);
	background: #f7f4ee;
	padding: 1rem 1.25rem;
	font-size: 12.5px;
	font-style: italic;
	line-height: 1.7;
	color: #54657a;
}

/* ---------- Scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Hero slow zoom ---------- */
@keyframes heroDrift {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}
.hero-drift {
	animation: heroDrift 24s ease-in-out infinite alternate;
}

/* ---------- Desktop dropdown (pure CSS hover) ---------- */
.nav-dropdown {
	visibility: hidden;
	opacity: 0;
	transition:
		opacity 0.2s,
		visibility 0.2s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
	visibility: visible;
	opacity: 1;
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
	display: none;
}
.faq-item[data-open="true"] .faq-answer {
	display: block;
}
.faq-item[data-open="true"] .faq-chevron {
	transform: rotate(180deg);
}
.faq-chevron {
	transition: transform 0.25s;
}
