/*
Theme Name: DSPA
Theme URI: https://deccanschoolofplanningandarchitecture.com
Author: Deccan School of Planning and Architecture
Description: Custom block theme for Deccan School of Planning and Architecture, Hyderabad.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dspa
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }
main .entry-content > .alignfull:first-child { margin-top: 0; }
img { max-width: 100%; height: auto; }
a:hover { color: #0A4238; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background .15s ease; }
.wp-block-button__link:hover { background: #0A4238; color: #fff; }
.dspa-btn-outline .wp-block-button__link { background: transparent; color: #15171A; border: 1.5px solid #15171A; padding: 14px 25px; }
.dspa-btn-outline .wp-block-button__link:hover { background: #15171A; color: #fff; }
.dspa-btn-light .wp-block-button__link { background: #fff; color: #0E5A4B; }
.dspa-btn-light .wp-block-button__link:hover { background: #E8F2EF; color: #0E5A4B; }
.dspa-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 14px 25px; }
.dspa-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.dspa-topbar { background: #15171A; color: #E9E7E1; font-size: 13px; padding-top: 10px; padding-bottom: 10px; }
.dspa-topbar p { margin: 0; }
.dspa-topbar a { color: #E9E7E1; }
.dspa-topbar a:hover { color: #fff; }
.dspa-header { background: #F4F3EF; border-bottom: 1px solid #D9D6CE; padding-top: 16px; padding-bottom: 16px; }
.dspa-brand { gap: 14px; }
.dspa-brand .wp-block-site-logo img { width: 52px; height: auto; }
.dspa-logo-box { width: 48px; height: 48px; border: 2px solid #15171A; display: flex; align-items: center; justify-content: center; font-family: Archivo, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 1px; margin: 0 !important; flex-shrink: 0; }
.dspa-brand-name { font-family: Archivo, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.15; margin: 0; }
.dspa-brand-name a { color: #15171A; text-decoration: none; }
.dspa-brand-sub { font-size: 12px; color: #55585E; margin: 3px 0 0; line-height: 1.3; }
.dspa-nav { font-size: 15px; font-weight: 500; }
.dspa-nav .wp-block-navigation-item__content { color: #15171A; text-decoration: none; padding: 4px 0; }
.dspa-nav .wp-block-navigation-item__content:hover,
.dspa-nav .current-menu-item > .wp-block-navigation-item__content { color: #0E5A4B; }
.dspa-nav .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -2px 0 #0E5A4B; }
.dspa-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }

/* ---------- Section helpers ---------- */
.dspa-sec { padding-top: 88px; padding-bottom: 88px; }
.dspa-sec-tight { padding-top: 64px; padding-bottom: 64px; }
.dspa-white { background: #fff; border-top: 1px solid #D9D6CE; border-bottom: 1px solid #D9D6CE; }
.dspa-dark { background: #15171A; color: #F4F3EF; }
.dspa-dark h1, .dspa-dark h2, .dspa-dark h3 { color: #F4F3EF; }
.dspa-dark p { color: #C9CBCF; }
.dspa-dark a { color: #7FC4B3; }
.dspa-dark .dspa-kicker { color: #7FC4B3; }
.dspa-greenband { background: #0E5A4B; color: #fff; }
.dspa-greenband h1, .dspa-greenband h2 { color: #fff; }
.dspa-greenband p { color: #D3EAE3; }
.dspa-greenband a { color: #fff; }
.dspa-pagehead { background-color: #ECEAE4; background-image: linear-gradient(#DEDAD0 1px, transparent 1px), linear-gradient(90deg, #DEDAD0 1px, transparent 1px); background-size: 32px 32px; border-bottom: 1px solid #D9D6CE; padding-top: 72px; padding-bottom: 64px; }
.dspa-crumb { font-size: 14px; color: #55585E; margin: 0; }
.dspa-crumb a { color: inherit; }
.dspa-kicker { font-size: 13px !important; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #0E5A4B; margin-bottom: 0 !important; }
.dspa-kicker + h1, .dspa-kicker + h2 { margin-top: 12px !important; }
.dspa-lead { font-size: 18px; line-height: 1.65; color: #43464C; max-width: 680px; }
.dspa-muted { color: #55585E; font-size: 15px; }
.dspa-body p, p.dspa-body { color: #43464C; }

/* ---------- Cards & grids ---------- */
.dspa-card { background: #fff; border: 1px solid #D9D6CE; padding: 26px 28px; }
.dspa-card h3 { margin: 0; }
.dspa-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #43464C; }
.dspa-card-stone { background: #F4F3EF; }
.dspa-tiles { gap: 1px !important; background: #D9D6CE; border: 1px solid #D9D6CE; }
.dspa-tiles > * { background: #F4F3EF; padding: 28px; margin: 0 !important; }
.dspa-tiles > * p { margin: 8px 0 0; font-size: 15px; color: #43464C; line-height: 1.6; }
.dspa-placeholder { background: #DCD9D0; min-height: 260px; display: flex; align-items: flex-end; padding: 14px; color: #55585E; font-size: 13px; }
.dspa-placeholder p { margin: 0; background: #F4F3EF; padding: 6px 10px; }
.dspa-dark .dspa-placeholder { background: #2A2D31; color: #8C9096; }
.dspa-dark .dspa-placeholder p { background: transparent; color: #8C9096; padding: 0; }
.dspa-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dspa-photo { margin: 0; }
.dspa-person .dspa-photo img { height: 260px; object-position: center 20%; }
.dspa-person-name { font-weight: 600; font-size: 17px; margin: 14px 0 0 !important; }
.dspa-person-role { font-size: 14px; color: #55585E; margin: 2px 0 0 !important; }

/* ---------- Facts strip ---------- */
.dspa-facts { background: #fff; border-top: 1px solid #D9D6CE; border-bottom: 1px solid #D9D6CE; }
.dspa-facts .wp-block-columns { gap: 0; margin: 0; }
.dspa-facts .wp-block-column { padding: 26px 22px; border-right: 1px solid #E6E3DC; }
.dspa-facts .wp-block-column:last-child { border-right: 0; }
.dspa-fact-big { font-family: Archivo, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2; margin: 0; }
.dspa-fact-small { font-size: 14px; color: #55585E; margin: 4px 0 0 !important; }
.dspa-stat-num { font-family: Archivo, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.1; color: #0E5A4B; margin: 0; }

/* ---------- Year rows / timelines ---------- */
.dspa-rows { border-top: 2px solid #15171A; gap: 0 !important; }
.dspa-row { border-bottom: 1px solid #D9D6CE; padding: 24px 0; margin: 0 !important; gap: 12px 40px; }
.dspa-row .dspa-row-year { font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; margin: 0; color: #15171A; }
.dspa-row-title { font-weight: 600; font-size: 18px; margin: 0; }
.dspa-row p { margin: 6px 0 0; }

/* ---------- Downloads ---------- */
.dspa-dl a { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; border: 1px solid #D9D6CE; padding: 18px 22px; color: #15171A; text-decoration: none; font-weight: 600; }
.dspa-dl a::after { content: "PDF ↓"; color: #0E5A4B; font-size: 13px; white-space: nowrap; }
.dspa-dl a:hover { border-color: #0E5A4B; }
.dspa-dl { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.dspa-dl li { margin: 0; }

/* ---------- Quote ---------- */
.dspa-quote { font-family: Archivo, sans-serif; font-weight: 500; font-size: 22px; line-height: 1.45; }

/* ---------- Maps ---------- */
.dspa-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.dspa-footer .dspa-map iframe { height: 200px; }

/* ---------- Footer ---------- */
.dspa-footer { background: #15171A; color: #C9CBCF; font-size: 15px; padding-top: 64px; padding-bottom: 28px; }
.dspa-footer h3, .dspa-footer .dspa-foot-title { color: #fff; font-family: Archivo, sans-serif; font-size: 20px; margin: 0; }
.dspa-footer .dspa-foot-head { color: #fff; font-weight: 600; font-size: 15px; margin: 0 0 10px; font-family: Inter, sans-serif; }
.dspa-footer a { color: #C9CBCF; text-decoration: none; }
.dspa-footer a:hover { color: #fff; text-decoration: underline; }
.dspa-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dspa-footer p { margin: 12px 0 0; line-height: 1.7; }
.dspa-copy { border-top: 1px solid #2E3135; margin-top: 40px !important; padding-top: 18px; font-size: 13px; color: #A9ACB1; }

/* ---------- Forms (for form plugins) ---------- */
.dspa-formbox { background: #fff; border: 1px solid #D9D6CE; padding: 36px; }
.dspa-formbox input, .dspa-formbox select, .dspa-formbox textarea { border: 1px solid #BFBBB1; padding: 12px 14px; font: inherit; width: 100%; box-sizing: border-box; border-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .dspa-sec { padding-top: 56px; padding-bottom: 56px; }
  .dspa-pagehead { padding-top: 48px; padding-bottom: 44px; }
  .dspa-facts .wp-block-column { border-right: 0; border-bottom: 1px solid #E6E3DC; }
  .dspa-topbar .wp-block-group { justify-content: flex-start !important; }
  .dspa-brand-name { font-size: 16px; }
}
