/* lakshmi.be — colours taken from the "My Singing Bird" cover: deep teal, plum, warm paper. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #1f2a2e;
  --muted: #5a676b;
  --teal: #1d4f56;
  --teal-soft: #e3eeec;
  --plum: #84295f;
  --plum-dark: #661f49;
  --paper: #fbf9f4;
  --card: #ffffff;
  --line: #e5dfd2;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 8px 28px rgba(31, 42, 46, .08);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.6rem; }
h4, h5 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--plum); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; letter-spacing: .02em; color: var(--teal); }
.brand-sub { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul, .site-nav .mod-menu { display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav li { position: relative; }
/* Submenus open on hover/focus (desktop) or are always open (mobile), so mod_menu's toggle buttons are not needed. */
.site-nav .mod-menu__toggle-sub { display: none; }
.site-nav a, .site-nav .nav-header, .site-nav .separator { display: block; padding: .55rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { background: var(--teal-soft); color: var(--teal); }
.site-nav .current > a, .site-nav .active > a { color: var(--plum); }
.site-nav li > ul { position: absolute; left: 0; top: 100%; min-width: 240px; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; flex-direction: column; }
.site-nav li > ul a { border-radius: 8px; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.nav-toggle { display: none; align-items: center; gap: .55rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .95rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem; max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 16px 24px rgba(31, 42, 46, .08); }
  .nav-open .site-nav { display: block; }
  .site-nav > ul, .site-nav .mod-menu { flex-direction: column; }
  .site-nav a { border-radius: 8px; padding: .7rem .8rem; font-size: 1.05rem; }
  .site-nav li > ul { position: static; display: flex; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 1rem; min-width: 0; }
  .site-nav li > ul a { font-size: .98rem; color: var(--muted); }
}

/* Hero and page band */
.hero-image { height: clamp(260px, 42vw, 520px); background: #111 var(--hero) center 40% / cover no-repeat; }
.hero-card { position: relative; margin-top: clamp(-120px, -8vw, -48px); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem); }
.hero-card h1 { margin-bottom: .2em; }
.hero-card .lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.page-band { height: clamp(120px, 18vw, 220px); background: #444 var(--band) left 35% / cover no-repeat; position: relative; }
.page-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 79, 86, .05), rgba(29, 79, 86, .45)); }

.button, .btn, button.validate, input[type="submit"] { display: inline-flex; align-items: center; gap: .5em; padding: .75rem 1.4rem; border-radius: 999px; border: 1px solid var(--plum); background: var(--plum); color: #fff; font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover, .btn:hover, button.validate:hover, input[type="submit"]:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; text-decoration: none; }
.button.secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.button.secondary:hover { background: var(--teal); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Main */
.site-main { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.is-inner .content { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 3.5rem); margin-top: clamp(-90px, -7vw, -40px); position: relative; }
.content > :first-child, .content .page-header:first-child h1, .content .page-header:first-child h2 { margin-top: 0; }
.content .item-page, .content .com-content-article { max-width: 46rem; margin-inline: auto; }
.content .item-page img, .content .com-content-article img { border-radius: 10px; }
.content p[style*="center"] img, .content img.center { display: block; margin-inline: auto; }
.page-header h1, .page-header h2, .content h1 { margin-bottom: .6em; }

/* Home cards */
.home-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.home-grid .card { grid-column: span 12; min-width: 0; }
@media (min-width: 860px) {
  .home-grid .card.wide { grid-column: span 7; }
  .home-grid .card.narrow { grid-column: span 5; }
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
/* mod_custom wraps module content in its own div. */
.card > :first-child, .card .mod-custom > :first-child { margin-top: 0; }
.card > :last-child, .card .mod-custom > :last-child { margin-bottom: 0; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 0; }
.card-title { margin-top: 0; }
.card .eyebrow, .eyebrow { display: block; font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--plum); margin-bottom: .6rem; font-weight: 600; }
.card img { border-radius: 10px; }
.card.feature .mod-custom { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 640px) { .card.feature .mod-custom { grid-template-columns: minmax(160px, 38%) minmax(0, 1fr); } }
.card.feature figure { margin: 0; }
.card.agenda ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.card.agenda li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.card.agenda li:last-child { border-bottom: 0; }

/* Blog / category views */
.blog-items { display: grid; gap: 1.5rem; }
.blog-items.columns-2, .view-category .blog-items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.blog-item { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.blog-item .page-header h2 { font-size: 1.7rem; margin-top: 0; }
.blog-item .page-header h2 a { color: var(--teal); text-decoration: none; }
.blog-item .page-header h2 a:hover { color: var(--plum); }
.category-desc { margin-bottom: 2rem; color: var(--muted); }
.readmore a, a.btn.btn-secondary { font-weight: 600; }
.pagination, .com-content-category-blog__navigation { margin-top: 2rem; }
.pagination ul, ul.pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }

/* Video embeds */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; margin: 0 0 1em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Videos whose owner does not allow embedding: thumbnail that opens YouTube. */
.video-link { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; margin: 0 0 1em; color: #fff; text-decoration: none; }
.video-link img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .8; transition: opacity .2s; }
.video-link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--plum); color: #fff; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.video-link:hover img { opacity: 1; }
.video-link:hover { color: #fff; }

/* Contact: details left, form right; Joomla's labels and duplicate headings hidden. */
.com-contact__container > h2, .com-contact .contact-position, .com-contact__form legend, .com-contact__address dt { display: none; }
.com-contact__thumbnail img { max-width: 220px; }
.com-contact__address { display: flex; flex-wrap: wrap; gap: 0 .35em; margin: 1rem 0 0; }
.com-contact__address dd { margin: 0; }
.com-contact__address dd:has(.contact-street), .com-contact__address dd:has(.contact-country), .com-contact__address dd:has(.contact-mobile) { flex-basis: 100%; }
.com-contact__address dd:has(.contact-postcode) { order: 1; }
.com-contact__address dd:has(.contact-suburb) { order: 2; }
.com-contact__address dd:has(.contact-country) { order: 3; }
.com-contact__address dd:has(.contact-mobile) { order: 4; margin-top: .75rem; font-weight: 600; }
@media (min-width: 860px) {
  .com-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .com-contact > .page-header { grid-column: 1 / -1; }
  .com-contact > .com-contact__container { grid-column: 1; grid-row: 2 / span 2; }
  .com-contact > h2, .com-contact > .com-contact__form { grid-column: 2; }
  .com-contact > h2 { margin-top: 0; }
}
.com-contact h2, .contact h2 { font-size: 1.6rem; }
.com-contact__container, .contact-address { margin-bottom: 2rem; }
.com-contact .contact-image img, .com-contact__thumbnail img { border-radius: 12px; max-width: 260px; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--teal); margin-bottom: .75rem; }
.control-group { margin-bottom: 1.1rem; }
.control-label label, label { display: inline-block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.star, .form-control-feedback, .invalid-feedback { color: var(--plum); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], select, textarea, .form-control {
  width: 100%; max-width: 40rem; padding: .75rem .9rem; border: 1px solid #cfc8b8; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 10rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(132, 41, 95, .25); border-color: var(--plum); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--plum); margin-right: .4rem; vertical-align: -2px; }
.form-check { display: flex; align-items: flex-start; gap: .4rem; }

/* Messages */
#system-message-container joomla-alert, .alert { display: block; padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; background: var(--teal-soft); border: 1px solid #c4dad6; }
.alert-danger, joomla-alert[type="danger"], joomla-alert[type="error"] { background: #fbecef; border-color: #eec5cf; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Footer */
.site-footer { background: var(--teal); color: #e7f0ee; padding-top: clamp(2.5rem, 5vw, 4rem); }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3, .site-footer .card-title { color: #fff; font-size: 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.site-footer .card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: #c9dcd8; }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero-image, .page-band, .nav-toggle { display: none; }
  .is-inner .content { box-shadow: none; margin: 0; padding: 0; }
}
