/* ==========================================================================
   Portsmouth Barristers' Chambers - Andrew Parsons
   Shared stylesheet
   ========================================================================== */

/* --- Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Garamond, "EB Garamond", Georgia, "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.5;
    color: #222;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0033a0;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #00207a;
}

/* --- Layout containers -------------------------------------------------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 30px 0 50px 0;
}

/* --- Site header & navigation ------------------------------------------ */
.site-header {
    border-bottom: 3px solid #0033a0;
    padding: 20px 0 10px 0;
    text-align: center;
}

.site-header .logo {
    margin: 0 auto 10px auto;
    max-width: 125px;
}

.site-header .brand {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 18pt;
    margin: 5px 0;
    line-height: 1.2;
}

.site-header .brand-sub {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 13pt;
    margin: 5px 0;
}

.site-nav {
    background-color: #0033a0;
    margin-top: 15px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 12px 14px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-size: 10.5pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus {
    background-color: #00207a;
    color: #ffffff;
}

.site-nav a.active {
    background-color: #00207a;
    border-bottom-color: #ffd100;
}

/* --- Typography (content) ---------------------------------------------- */
h1.page-title,
h2.page-title {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 20pt;
    margin: 10px 0 20px 0;
    text-align: center;
}

h2.section-title,
h3.section-title {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 14pt;
    text-decoration: underline;
    margin: 30px 0 12px 0;
}

.tagline {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-style: italic;
    font-weight: bold;
    font-size: 13pt;
    text-align: center;
    margin: 10px 0 25px 0;
}

.specialties {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 13pt;
    text-align: center;
    margin: 10px 0;
}

p {
    margin: 10px 0;
    text-align: justify;
}

.intro-line {
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
    margin: 8px 0;
}

ul.content-list {
    padding-left: 20px;
    margin: 15px 0;
}

ul.content-list li {
    margin-bottom: 10px;
    text-align: justify;
}

.case-title {
    font-weight: bold;
    text-decoration: underline;
}

.contact-highlight {
    color: #0033a0;
    font-weight: bold;
}

/* --- Fees table -------------------------------------------------------- */
table.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #444;
}

table.fees-table th,
table.fees-table td {
    border: 1px solid #444;
    padding: 10px 12px;
    text-align: left;
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-size: 11pt;
    vertical-align: top;
}

table.fees-table th {
    background-color: #0033a0;
    color: #ffffff;
    font-weight: bold;
}

table.fees-table tr:nth-child(even) td {
    background-color: #f4f6fb;
}

/* --- Services summary block ------------------------------------------- */
.services-summary {
    text-align: center;
    margin: 30px 0;
}

.service-block {
    margin: 25px 0;
    padding: 18px;
    background-color: #f4f6fb;
    border-left: 4px solid #0033a0;
}

.service-header {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    font-size: 14pt;
    margin: 0 0 8px 0;
    text-align: center;
}

.service-description {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-size: 11pt;
    text-align: center;
    margin: 0;
}

/* --- Portrait / photo section ----------------------------------------- */
.portrait {
    text-align: center;
    margin: 30px 0;
}

.portrait img {
    display: inline-block;
    max-width: 300px;
    border: 1px solid #ccc;
    padding: 4px;
    background-color: #ffffff;
}

/* Modifier: plain image with no border/padding (e.g. logos inside a portrait block) */
.portrait.no-frame img {
    border: none;
    padding: 0;
    background-color: transparent;
}

.portrait .caption {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Download / call-to-action buttons -------------------------------- */
.download-link {
    display: inline-block;
    margin: 15px 0;
    padding: 12px 20px;
    background-color: #0033a0;
    color: #ffffff !important;
    text-decoration: none;
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-weight: bold;
    font-size: 12pt;
    border-radius: 4px;
}

.download-link:hover,
.download-link:focus {
    background-color: #00207a;
}

/* --- Regulator block --------------------------------------------------- */
.regulator {
    text-align: center;
    margin: 40px 0 20px 0;
}

.regulator img {
    display: inline-block;
    max-width: 180px;
    margin-bottom: 10px;
}

.regulator .regulator-text {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-weight: bold;
    color: #0033a0;
}

/* --- Find Out More / LinkedIn ---------------------------------------- */
.linkedin-block {
    text-align: center;
    margin: 40px 0;
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: #0a66c2;
    color: #ffffff !important;
    text-decoration: none;
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    font-weight: bold;
    font-size: 13pt;
    border-radius: 4px;
}

.linkedin-button:hover,
.linkedin-button:focus {
    background-color: #084d93;
}

.linkedin-button svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
    background-color: #f4f6fb;
    border-top: 3px solid #0033a0;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 10.5pt;
}

.site-footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer .footer-col {
    flex: 1 1 220px;
}

.site-footer h3 {
    font-family: "Century Gothic", "Apple Gothic", "URW Gothic L", "Avant Garde", sans-serif;
    color: #0033a0;
    font-size: 11pt;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer p {
    margin: 4px 0;
    text-align: left;
}

.site-footer .bsb-footer img {
    max-width: 120px;
    margin-bottom: 6px;
}

.site-footer .copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #d0d4e0;
    font-size: 10pt;
    color: #555;
}

/* --- Responsive tweaks -------------------------------------------------- */
@media (max-width: 600px) {
    .site-header .brand {
        font-size: 16pt;
    }
    .site-header .brand-sub {
        font-size: 12pt;
    }
    h1.page-title,
    h2.page-title {
        font-size: 17pt;
    }
    h2.section-title,
    h3.section-title {
        font-size: 13pt;
    }
    .site-nav a {
        padding: 10px 10px;
        font-size: 9.5pt;
    }
    p,
    ul.content-list li {
        text-align: left;
    }
}
