/* Blog (/blog/) and apartment pages. Uses the Fresca page colour variables (.h2o-fresca). */

/* ---------- breadcrumb ---------- */
.h2o-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12.5px; }
.h2o-crumbs li { color: var(--fr-sub); font-size: 12.5px !important; }
.h2o-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.h2o-crumbs a { color: var(--fr-aqua); text-decoration: none; }

/* ---------- blog index ---------- */
.h2o-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.h2o-blog-card { display: flex; flex-direction: column; border: 1px solid var(--fr-line); border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.035); text-decoration: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.h2o-blog-card:hover { transform: translateY(-4px); border-color: rgba(61,184,245,.5); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.h2o-blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0b1424; }
.h2o-blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.h2o-blog-card:hover .h2o-blog-card__img img { transform: scale(1.05); }
.h2o-blog-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h2o-blog-card__tag { font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 10.5px !important; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fr-green) !important; }
.h2o-blog-card h2, .h2o-blog-card h3 { font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 19px !important; font-weight: 600 !important;
  line-height: 1.3 !important; letter-spacing: .01em !important; text-transform: none !important; color: #fff; }
.h2o-blog-card p { font-size: 14px !important; line-height: 1.6 !important; }
.h2o-blog-card__more { margin-top: auto; padding-top: 6px; font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 11px !important;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fr-blue) !important; }
.h2o-blog-card--feature { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; }
.h2o-blog-card--feature .h2o-blog-card__img { aspect-ratio: auto; min-height: 320px; }
.h2o-blog-card--feature .h2o-blog-card__body { padding: clamp(26px, 3vw, 44px); justify-content: center; }
.h2o-blog-card--feature h2 { font-size: clamp(22px, 2.4vw, 30px) !important; }

/* ---------- article ---------- */
.h2o-post__hero { padding-bottom: clamp(36px, 5vh, 56px); }
.h2o-post__hero h1 { font-size: clamp(32px, 4.4vw, 58px) !important; line-height: 1.05 !important; max-width: 20ch; }
.h2o-post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 13px !important; color: var(--fr-sub); }
.h2o-post__meta span { font-size: 13px !important; }
.h2o-post__cover { margin-top: 36px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(61,184,245,.2); box-shadow: 0 28px 90px rgba(0,0,0,.4); }
.h2o-post__cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

.h2o-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.h2o-post__body { max-width: 760px; }
.h2o-post__body > * + * { margin-top: 20px !important; }
.h2o-post__body h2 { margin-top: 48px !important; font-size: clamp(24px, 2.4vw, 32px) !important; text-transform: none !important;
  letter-spacing: .01em !important; font-weight: 400 !important; line-height: 1.2 !important; }
.h2o-post__body h3 { margin-top: 30px !important; font-size: 17px !important; color: var(--fr-aqua); }
.h2o-post__body p, .h2o-post__body li { font-size: 16.5px !important; line-height: 1.8 !important; color: rgba(239,247,251,.82); }
.h2o-post__body strong { color: #fff; font-weight: 600; }
.h2o-post__body a { color: var(--fr-aqua); text-decoration: underline; text-underline-offset: 3px; }
.h2o-post__body ul, .h2o-post__body ol { padding-left: 22px; display: grid; gap: 10px; }
.h2o-post__lead { font-size: 19px !important; line-height: 1.7 !important; color: #fff !important; font-weight: 300; }
.h2o-post__body figure { margin: 34px 0 0; }
.h2o-post__body figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--fr-line); }
.h2o-post__body figcaption { margin-top: 10px; font-size: 13px; color: var(--fr-sub); }
.h2o-post__callout { padding: 20px 22px; border-left: 3px solid var(--fr-green); border-radius: 0 12px 12px 0; background: rgba(46,184,122,.08); }
.h2o-post__callout--warn { border-left-color: var(--fr-hot); background: rgba(239,106,92,.08); }
.h2o-post__callout p { font-size: 15.5px !important; }
.h2o-post__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.h2o-post__table th, .h2o-post__table td { padding: 12px 12px; border-bottom: 1px solid var(--fr-line); text-align: left; vertical-align: top;
  color: rgba(239,247,251,.82); font-size: 14.5px; line-height: 1.55; }
.h2o-post__table th { color: #fff; font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.h2o-post__table-wrap { overflow-x: auto; }
.h2o-post__sources { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--fr-line); }
.h2o-post__sources h2 { margin-top: 0 !important; font-size: 15px !important; font-family: var(--h-display, 'Josefin Sans', sans-serif);
  letter-spacing: .14em !important; text-transform: uppercase !important; font-weight: 700 !important; color: var(--fr-blue) !important; }
.h2o-post__sources li { font-size: 13.5px !important; line-height: 1.6 !important; }

.h2o-post__aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.h2o-post__aside .h2o-fresca__cta-card h2 { font-size: 20px !important; }
.h2o-post__aside .h2o-fresca__btn { width: 100%; }
.h2o-post__related { padding: 22px; border: 1px solid var(--fr-line); border-radius: 16px; background: rgba(255,255,255,.03); }
.h2o-post__related ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.h2o-post__related a { color: #fff; text-decoration: none; font-size: 14px; line-height: 1.45; }
.h2o-post__related a:hover { color: var(--fr-aqua); }

/* ---------- apartment pages ---------- */
.h2o-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h2o-areas > div { padding: 26px; border: 1px solid var(--fr-line); border-radius: 16px; background: rgba(255,255,255,.035); }
.h2o-areas h3 { margin-bottom: 12px; color: var(--fr-aqua); }
.h2o-areas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h2o-areas li { padding: 6px 12px; border: 1px solid var(--fr-line); border-radius: 999px; font-size: 13px !important; line-height: 1.3 !important; }
.h2o-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h2o-cards3 article { padding: 26px; border: 1px solid var(--fr-line); border-radius: 16px; background: rgba(255,255,255,.04); border-top: 2px solid var(--fr-blue); }
.h2o-cards3 article h3 { margin-bottom: 8px; }
.h2o-cards3 article p { font-size: 14px; line-height: 1.65; }
.h2o-cards3--warn article { border-top-color: var(--fr-hot); }
.h2o-cards3--ok article { border-top-color: var(--fr-green); }
.h2o-origin-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.h2o-origin-strip div { padding: 22px 24px; border: 1px solid rgba(61,184,245,.35); border-radius: 14px; background: rgba(61,184,245,.06); }
.h2o-origin-strip strong { display: block; font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fr-blue); margin-bottom: 6px; }
.h2o-origin-strip span { font-size: 14px; color: var(--fr-sub); line-height: 1.55; display: block; }
.h2o-local { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h2o-local div { padding: 22px 24px; border: 1px solid var(--fr-line); border-radius: 14px; background: rgba(255,255,255,.03); }
.h2o-local p { font-size: 15.5px !important; line-height: 1.85 !important; }
.h2o-steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.h2o-steps li { counter-increment: s; position: relative; padding: 26px 24px 24px; border: 1px solid var(--fr-line); border-radius: 16px;
  background: rgba(255,255,255,.035); font-size: 14px !important; }
.h2o-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--h-display, 'Josefin Sans', sans-serif);
  font-size: 28px; font-weight: 300; color: var(--fr-blue); }
.h2o-steps li strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 600; }
.h2o-figure { margin: 0; }
.h2o-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(61,184,245,.2); }
.h2o-figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--fr-sub); }

@media (max-width: 1024px) {
  .h2o-blog-grid { grid-template-columns: 1fr 1fr; }
  .h2o-blog-card--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .h2o-post__layout { grid-template-columns: 1fr; }
  .h2o-post__aside { position: static; }
  .h2o-cards3, .h2o-origin-strip, .h2o-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h2o-blog-grid, .h2o-areas, .h2o-cards3, .h2o-origin-strip, .h2o-local, .h2o-steps { grid-template-columns: 1fr; }
  .h2o-blog-card--feature { grid-column: span 1; }
  .h2o-blog-card--feature .h2o-blog-card__img { min-height: 220px; }
  .h2o-post__body p, .h2o-post__body li { font-size: 16px !important; }
}

/* ---------- language switcher + Sinhala / Tamil typography ---------- */
.h2o-langs { margin: 0 0 14px !important; font-size: 13px !important; color: var(--fr-sub); }
.h2o-langs a { color: var(--fr-aqua); text-decoration: none; padding: 2px 2px; }
.h2o-langs a[aria-current="page"] { color: #fff; font-weight: 600; border-bottom: 1px solid var(--fr-blue); }
.h2o-lang-si, .h2o-lang-si p, .h2o-lang-si li, .h2o-lang-si h1, .h2o-lang-si h2, .h2o-lang-si h3, .h2o-lang-si summary,
.h2o-lang-si .h2o-fresca__btn, .h2o-lang-si .h2o-fresca__eyebrow, .h2o-lang-si .h2o-fresca__sub {
  font-family: 'Noto Sans Sinhala', 'Iskoola Pota', 'Sinhala Sangam MN', var(--h-sans, Inter), sans-serif !important; }
.h2o-lang-ta, .h2o-lang-ta p, .h2o-lang-ta li, .h2o-lang-ta h1, .h2o-lang-ta h2, .h2o-lang-ta h3, .h2o-lang-ta summary,
.h2o-lang-ta .h2o-fresca__btn, .h2o-lang-ta .h2o-fresca__eyebrow, .h2o-lang-ta .h2o-fresca__sub {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil Sangam MN', var(--h-sans, Inter), sans-serif !important; }
.h2o-lang-si h1, .h2o-lang-ta h1 { font-size: clamp(32px, 4.4vw, 58px) !important; line-height: 1.25 !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.h2o-lang-si h2, .h2o-lang-ta h2 { font-size: clamp(22px, 2.5vw, 34px) !important; line-height: 1.35 !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.h2o-lang-si .h2o-fresca__eyebrow, .h2o-lang-ta .h2o-fresca__eyebrow,
.h2o-lang-si .h2o-fresca__btn, .h2o-lang-ta .h2o-fresca__btn { letter-spacing: .02em !important; font-size: 13px !important; line-height: 1.5 !important; }
.h2o-lang-ta h1 { font-size: clamp(28px, 3.6vw, 48px) !important; }
.h2o-lang-si p, .h2o-lang-si li, .h2o-lang-ta p, .h2o-lang-ta li { line-height: 1.9 !important; }

/* ---------- project enquiry form ---------- */
.h2o-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.h2o-form__full { grid-column: 1 / -1; }
.h2o-form label { display: block; margin-bottom: 6px; font-family: var(--h-display, 'Josefin Sans', sans-serif); font-size: 11px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr-aqua); }
.h2o-form input, .h2o-form select, .h2o-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--fr-line); border-radius: 10px;
  background: rgba(255,255,255,.05); color: #fff; font: 400 15px var(--h-sans, Inter, system-ui, sans-serif); }
.h2o-form select option { color: #031018; }
.h2o-form input:focus, .h2o-form select:focus, .h2o-form textarea:focus { outline: none; border-color: var(--fr-blue); box-shadow: 0 0 0 3px rgba(61,184,245,.18); }
.h2o-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--fr-sub); }
.h2o-form__consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.h2o-form__consent a { color: var(--fr-aqua); }
.h2o-form button { cursor: pointer; border: 0; }
.h2o-form__done { padding: 14px 18px; border-left: 3px solid var(--fr-green); background: rgba(46,184,122,.1); font-size: 14px !important; }
.h2o-form-wrap { padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(61,184,245,.35); border-radius: 20px;
  background: radial-gradient(circle at 15% 0%, rgba(61,184,245,.14), transparent 50%), rgba(255,255,255,.03); }
.h2o-trust { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 28px; margin-top: 24px; list-style: none; padding: 0; }
.h2o-trust li { position: relative; padding-left: 26px; font-size: 14.5px !important; }
.h2o-trust li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--fr-green); font-weight: 700; }
.h2o-trust li strong { color: #fff; font-weight: 600; }
@media (max-width: 640px) { .h2o-form, .h2o-trust { grid-template-columns: 1fr; } }
