/* Quinta Alto Lota / Manta Rota - Joomla 6 template 2.0 */
:root {
    --accent: #173f67;
    --accent-dark: #0d2a45;
    --blue: #2c6697;
    --sand: #e9d9bc;
    --gold: #b58a42;
    --ink: #26343d;
    --muted: #66737b;
    --line: #e2e7ea;
    --soft: #f5f2eb;
    --white: #fff;
    --container: 1180px;
    --logo-width: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--accent); color: #fff; padding: 10px 15px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Header / Joomla menu */
.site-header { position: relative; z-index: 20; width: 100%; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.nav-wrap { width: 100%; max-width: none; min-height: 96px; margin: 0; padding: 0 3vw; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--accent); flex-shrink: 0; }
.brand-symbol { width: var(--logo-width); height: var(--logo-width); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 25px; letter-spacing: -.02em; }
.brand-copy small { font-size: 9px; letter-spacing: .2em; margin-top: 7px; }
.main-nav { margin-left: auto; }
.main-nav > ul, .main-nav ul.mod-menu { display: flex; align-items: center; gap: 29px; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; padding: 0; position: relative; }
.main-nav a { display: block; font-size: 14px; font-weight: 600; text-decoration: none; color: #1f2e3b; white-space: nowrap; padding: 8px 0; }
.main-nav a:hover, .main-nav .current > a, .main-nav .active > a { color: var(--blue); }
.main-nav .parent > a::after { content: '⌄'; margin-left: 7px; font-size: 12px; }
.main-nav .mod-menu__sub { position: absolute; top: 100%; left: -15px; min-width: 210px; display: none; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.12); padding: 10px 0; }
.main-nav .parent:hover > .mod-menu__sub, .main-nav .deeper:hover > .mod-menu__sub { display: block; }
.main-nav .mod-menu__sub li a { padding: 9px 16px; }
.utility-nav { flex-shrink: 0; }
.utility-nav ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.utility-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 12px; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--accent); margin: 5px; }

/* Generic Joomla module styling */
.moduletable { margin-bottom: 25px; }
.moduletable > h2, .moduletable > h3 { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.breadcrumbs-wrap { padding-top: 20px; }
.breadcrumbs-wrap .mod-breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs-wrap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs-wrap li:not(:last-child)::after { content: '›'; margin-left: 6px; color: #9aa3a8; }

/* Optional hero module: use a Custom HTML module here for full control */
.hero-module-wrap { width: 100%; }
.hero-module-wrap .moduletable { margin: 0; }
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #567789 0%, #87a3ac 40%, #e2c38f 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,30,50,.52), rgba(0,30,50,.08) 70%); }
.hero-content { position: relative; z-index: 2; padding: 100px 0; }
.eyebrow, .section-label { font-size: 13px; font-weight: 700; letter-spacing: .11em; margin: 0 0 13px; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(52px, 6vw, 88px); line-height: .96; margin: 0 0 25px; max-width: 700px; }
.hero h1 em, h2 em { font-style: italic; }
.hero-text { font-size: 18px; line-height: 1.55; margin: 0 0 30px; max-width: 720px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 3px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .03em; transition: .2s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,.75); color: #fff; background: rgba(0,0,0,.08); }
.btn-dark { background: var(--accent); color: #fff; }


/* Full-width banner module directly below the header */
.fullwidth-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.fullwidth-banner > .moduletable {
    margin: 0;
    padding: 0;
}
.fullwidth-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.fullwidth-banner .mod-menu,
.fullwidth-banner .custom {
    width: 100%;
}

/* Joomla content */
.content-top, .content-bottom { padding-top: 35px; }
.content-bottom { padding-bottom: 45px; }
.page-layout { display: grid; grid-template-columns: 1fr; gap: 55px; padding-top: 55px; padding-bottom: 55px; }
.page-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.component-area { min-width: 0; }
.component-area h1, .component-area h2, .component-area h3 { color: var(--accent); }
.component-area h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; font-weight: 500; }
.component-area h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.component-area img { max-width: 100%; }
.component-area .blog, .component-area .com-content { width: 100%; }
.component-area .blog-items { display: grid; gap: 40px; }
.component-area .blog-item { padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.component-area .item-title { margin-top: 0; }
.component-area .item-title a { text-decoration: none; }
.component-area .readmore a { display: inline-block; color: var(--accent); font-weight: 700; text-decoration: none; margin-top: 10px; }
.component-area .pagination { display: flex; justify-content: center; margin-top: 35px; }
.component-area .pagination ul { display: flex; list-style: none; gap: 7px; padding: 0; }
.component-area .pagination a, .component-area .pagination span { display: inline-block; border: 1px solid var(--line); padding: 7px 11px; text-decoration: none; }
.sidebar { min-width: 0; }
.sidebar .moduletable { padding: 22px; background: var(--soft); border: 1px solid var(--line); }
.sidebar .moduletable > h3 { margin-top: 0; font-size: 23px; }

/* Common module layouts */
.content-top .moduletable, .content-bottom .moduletable { margin-bottom: 40px; }
.alert { padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); background: #fafafa; }

/* Footer */
.site-footer { background: #0c253b; color: #cad5dc; padding: 45px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.footer-brand small { margin-top: 4px; font-size: 10px; letter-spacing: .12em; }
.footer-copy { margin: 10px 0 0; font-size: 13px; }
.footer-column .moduletable { margin-bottom: 15px; }
.footer-column h3 { color: #fff; margin-top: 0; font-family: Georgia, serif; font-weight: 500; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin: 5px 0; }
.footer-column a { color: #cad5dc; text-decoration: none; }
.footer-column a:hover { color: #fff; }

/* Error / component pages */
.component-only { padding: 70px 0; }
.error-content { min-height: 70vh; padding: 70px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-logo { width: 140px; margin-bottom: 25px; }
.error-content h1 { font-family: Georgia, serif; font-size: clamp(45px, 6vw, 72px); font-weight: 500; color: var(--accent); margin: 0 0 15px; }
.error-content p:not(.section-label) { color: var(--muted); font-size: 17px; margin-bottom: 25px; }

@media (max-width: 1100px) {
    .main-nav > ul, .main-nav ul.mod-menu { gap: 15px; }
    .brand-copy strong { font-size: 21px; }
}

@media (max-width: 900px) {
    .nav-wrap { min-height: 82px; padding-left: 4vw; padding-right: 4vw; }
    .brand-copy strong { font-size: 20px; }
    .brand-copy small { font-size: 8px; }
    .main-nav { display: none; position: absolute; top: 78px; left: 4%; right: 4%; background: #fff; padding: 18px; border-radius: 3px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
    .main-nav.open { display: block; }
    .main-nav > ul, .main-nav ul.mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav li:last-child { border-bottom: 0; }
    .main-nav a { padding: 11px 2px; }
    .main-nav .mod-menu__sub { position: static; box-shadow: none; padding: 0 0 5px 15px; display: block; }
    .menu-toggle { display: block; }
    .utility-nav { display: none; }
    .page-layout.has-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .nav-wrap { min-height: 74px; padding-left: 4vw; padding-right: 4vw; }
    .brand-symbol { width: 64px; height: 64px; }
    .brand-copy strong { font-size: 18px; }
    .brand-copy small { font-size: 7px; letter-spacing: .13em; }
    .main-nav { top: 72px; }
    .hero { min-height: 540px; }
    .hero-content { padding: 75px 0; }
    .hero h1 { font-size: 45px; }
    .hero-text { font-size: 16px; }
    .page-layout { padding-top: 35px; padding-bottom: 35px; }
    .footer-grid { grid-template-columns: 1fr; }
}
