/* Botwinick & Botwinick, CPAs PC — site styles (layered on Bootstrap 5.3) */

@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --brand: #90b457;
    --brand-dark: #76983f;
    --ink: #112117;
    --paper: #f2f2f2;
    --text: #000;
    --muted: #555;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Montserrat", system-ui, sans-serif;
    --bs-body-font-family: var(--sans);
    --bs-link-color-rgb: 118, 152, 63;
    --bs-link-hover-color-rgb: 17, 33, 23;
}

body { background: var(--paper); color: var(--text); font-family: var(--sans); }
h1, h2, h3, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Buttons */
.btn-brand {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
    border-radius: 0; font-size: .875rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 1rem 3rem;
}
.btn-brand i { margin-right: .35rem; }

/* Top navigation bar */
.topbar { background: var(--ink); position: sticky; top: 0; z-index: 1030; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 2.5rem; }
.topbar a { color: #fff; text-decoration: none; font-size: .875rem; letter-spacing: 1px; text-transform: uppercase; }
.topbar a:hover, .topbar a:focus { color: var(--brand); }
.topbar-links { display: flex; gap: .75rem; color: #fff; font-size: .875rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: .875rem; letter-spacing: 1px; text-transform: uppercase; padding: .75rem 0; }
.nav-toggle i { font-size: 1.4rem; vertical-align: middle; }

.nav-menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; display: inline-block; }
.nav-menu > li > a { display: block; padding: 15px 14px; line-height: 20px; }
.nav-menu > li:first-child > a { padding-left: 0; }
.nav-menu > li.active > a { color: var(--brand); }
.sub-toggle { display: none; }

@media (min-width: 992px) {
    .sub-menu {
        position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .15); padding: .5rem 0;
        visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    }
    .sub-menu .sub-menu { left: 100%; top: -.5rem; }
    .nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
    .sub-menu li { position: relative; }
    .sub-menu a { display: block; color: #333; text-transform: none; letter-spacing: 0; padding: .5rem 1.25rem; font-size: .875rem; }
    .sub-menu a:hover, .sub-menu a:focus, .sub-menu li.active > a { color: var(--brand-dark); background: var(--paper); }
    .sub-menu .has-sub > a::after { content: "\203A"; float: right; margin-left: 1rem; }
    .nav-menu > .has-sub > a::after { content: ""; display: inline-block; margin-left: .35rem; vertical-align: .2em; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
}

@media (max-width: 991.98px) {
    .topbar-inner { padding: 0 16px; flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .main-nav { order: 3; flex-basis: 100%; }
    .nav-menu { display: none; padding-bottom: 1rem; max-height: calc(100vh - 50px); overflow-y: auto; }
    .nav-menu.open { display: block; }
    .nav-menu li { display: block; position: relative; }
    .nav-menu > li > a, .sub-menu a { display: block; padding: .65rem 3rem .65rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .sub-menu { display: none; padding-left: 1rem; }
    .sub-menu a { text-transform: none; letter-spacing: 0; }
    li.open > .sub-menu { display: block; }
    .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 2.75rem; height: 2.6rem; background: none; border: 0; color: #fff; }
    li.open > .sub-toggle i { transform: rotate(180deg); }
}

/* Logo header */
.site-header { background: #fff; padding: 1.5rem 2.5rem; }
.site-header .container-fluid { padding: 0; }
.logo img { width: 360px; max-width: 100%; }
.header-phone { text-align: right; line-height: 1.2; }
.header-phone .label { display: block; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); }
.header-phone a { color: var(--brand); font-size: 1.15rem; text-decoration: none; letter-spacing: 1px; }
@media (max-width: 575.98px) {
    .site-header { padding: 1rem 16px; }
    .site-header .container-fluid { justify-content: center !important; }
    .header-phone { text-align: center; }
}

/* Framed image panels (hero, service tiles, parallax, inner banners) */
.framed { position: relative; background: center / cover no-repeat; color: #fff; }
.framed::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.framed::after { content: ""; position: absolute; inset: 1.5rem; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; }
.framed > * { position: relative; z-index: 1; }

.hero { min-height: 614px; display: flex; align-items: flex-end; background-image: url(../img/hero.jpg); }
.hero-inner { padding: 0 4.5rem 5rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.15; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 767.98px) {
    .hero { min-height: 460px; }
    .hero-inner { padding: 0 2.5rem 3.5rem; }
}

/* Centered content blocks */
.section { padding: 6rem 16px; }
.section-narrow { max-width: 760px; margin: 0 auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); margin-bottom: 1.25rem; }
.section h2::after { content: ""; display: block; width: 80px; height: 2px; background: var(--brand); margin: 1.25rem auto 0; }
.lead-text { font-size: 1.25rem; line-height: 1.5; margin-bottom: 2rem; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { min-height: 328px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-decoration: none; transition: transform .25s; }
.tile:hover { transform: scale(1.015); color: #fff; }
.tile:hover::before { background: rgba(17, 33, 23, .55); }
.tile .tile-title { font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; }
.tile .tile-sub { font-size: .875rem; letter-spacing: 3px; text-transform: uppercase; margin-top: .5rem; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
@media (max-width: 767.98px) {
    .tiles { grid-template-columns: 1fr; }
    .tiles .tile:last-child:nth-child(odd) { width: 100%; }
    .tile { min-height: 240px; }
}

/* Parallax quote band */
.band { background-image: url(../img/parallax.jpg); background-attachment: fixed; padding: 6rem 16px; text-align: center; }
.band::before { background: rgba(0, 0, 0, .55); }
.band .eyebrow { font-size: .875rem; letter-spacing: 3px; text-transform: uppercase; color: var(--brand); }
.band .carousel-item p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); max-width: 820px; margin: 1rem auto 0; }
@media (hover: none) { .band { background-attachment: scroll; } }

/* Contact icon row */
.icon-row { display: flex; justify-content: center; gap: 3rem; margin: 2rem 0; flex-wrap: wrap; }
.icon-row a { color: var(--ink); text-decoration: none; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.icon-row i { font-size: 2.5rem; color: var(--brand); transition: transform .2s; }
.icon-row a:hover i { transform: translateY(-3px); }

/* Inner pages */
.page-banner { background: url(../img/hero.jpg) center 35% / cover; position: relative; min-height: 280px; display: flex; align-items: center; color: #fff; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.page-banner::after { content: ""; position: absolute; inset: 1.5rem; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; }
.page-banner-frame { position: relative; padding: 0 4.5rem; }
.page-banner h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 767.98px) { .page-banner { min-height: 200px; } .page-banner-frame { padding: 0 2.5rem; } }
.crumbs { padding: 1.25rem 2.5rem; font-size: .9rem; }
.crumbs a { color: var(--brand-dark); text-decoration: none; }
.page-body { padding: 0 2.5rem 4rem; }
@media (max-width: 767.98px) { .crumbs, .page-body { padding-left: 16px; padding-right: 16px; } }
.content { font-size: 1.05rem; line-height: 1.7; }
.content > h2:first-child, .content > h1:first-child { margin-top: 0; }
.content .lead { font-size: 1.2rem; }
.content .callout { background: #fff; border-left: 4px solid var(--brand); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.sidebar .section-links .list-group-item { padding: 0; }
.sidebar .section-links a { display: block; padding: .65rem 1.25rem; color: var(--ink); text-decoration: none; font-size: .9rem; }
.sidebar .section-links a:hover, .sidebar .section-links .active a { background: var(--paper); color: var(--brand-dark); }
.sidebar .section-links .list-group-item.active { background: none; border-color: var(--bs-list-group-border-color); }
.side-tabs { border-bottom: 0; }
.side-tabs .nav-link { border-radius: 0; border: 0; background: var(--ink); color: #fff; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; padding: .85rem .5rem; }
.side-tabs .nav-link.active { background: var(--brand); color: #fff; }
.sidebar h2.h5 { font-family: var(--serif); }
.content h2 { font-size: 1.9rem; color: var(--ink); margin: 2rem 0 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.content ul { padding-left: 1.25rem; }
.content li { margin-bottom: .35rem; }
.content .page-photo { float: right; width: 260px; margin: 0 0 1rem 1.5rem; }
@media (max-width: 767.98px) {
    .content { padding: 1.5rem; }
    .content .page-photo { float: none; width: 100%; margin: 0 0 1rem; }
}
.sidebar .card { border: 0; border-radius: 0; margin-bottom: 1.5rem; }
.sidebar .card-header { background: var(--ink); color: #fff; border-radius: 0; font-size: .875rem; letter-spacing: 1px; text-transform: uppercase; padding: .85rem 1.25rem; }
.sidebar .btn-brand { padding: .75rem 1rem; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; list-style: none; padding: 0 !important; }
.link-grid a { display: block; height: 100%; padding: 1.25rem; background: var(--paper); color: var(--ink); text-decoration: none; border-left: 3px solid var(--brand); }
.link-grid a:hover { background: var(--ink); color: #fff; }
.link-grid strong { display: block; margin-bottom: .25rem; }
.link-grid span { font-size: .9rem; }
.embed-frame { width: 100%; min-height: 900px; border: 0; background: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 4rem 16px 3rem; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: 2px; text-transform: uppercase; }
.footer-address, .footer-address a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-social a { color: #fff; font-size: 1.4rem; }
.footer-social a:hover { color: var(--brand); }
.footer-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-links li + li::before { content: "\2022"; margin-right: 1rem; color: var(--brand); }
.footer-links a { color: #fff; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

/* Floating side buttons */
.side-buttons { position: fixed; right: 16px; bottom: 16px; z-index: 1020; display: flex; flex-direction: column; gap: 6px; }
.side-buttons a { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 1.15rem; text-decoration: none; }
.side-buttons a:hover { background: var(--ink); }

/* Modals and forms */
.modal-content { border-radius: 0; }
.modal-header { background: #f8f9fa; }
.modal-title { font-size: 1.5rem; }
.form-control { border-radius: 0; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(144, 180, 87, .25); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: #2e6b1f; }
.form-status.err { color: #b00020; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .tile, .icon-row i { transition: none; }
}
