/* =========================================================
   Portside IT LLC — stylesheet
   Mobile-first. Edit the variables in :root to adjust the
   whole palette/type scale in one place.
   ========================================================= */

:root {
    --navy: #053157;
    --teal: #1b8fa0;
    --warm-white: #f0ebe3;
    --white: #ffffff;

    /* Tints used for cards/borders so things aren't flat navy-on-cream everywhere */
    --navy-10: rgba(11, 31, 51, 0.08);
    --navy-20: rgba(11, 31, 51, 0.16);
    --teal-15: rgba(27, 143, 160, 0.15);
    /* Used for dividers on the navy header's mobile menu. */
    --warm-white-15: rgba(240, 235, 227, 0.15);
    /* Lighter teal, used only for hover/focus states on the navy header —
     the standard --teal doesn't hit AA contrast against navy. */
    --teal-light: #4fc1d6;

    --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --max-width: 1120px;
    --radius: 6px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--warm-white);
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 300;
    /* 300-weight Raleway is light; bump the base size and line-height a bit
     so body copy stays comfortably readable, especially on phones. */
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--navy);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-row {
    display: flex;
}

/* Visible only when focused — lets keyboard users jump past the header */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: var(--warm-white);
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 0.85em 1.6em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
}

.button-primary {
    background: var(--teal);
    color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #17798a;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--warm-white);
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

.brand-name-accent {
    color: var(--teal);
    letter-spacing: 0.14em;
}

/* Checkbox-driven mobile menu — no JS needed */
.nav-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--warm-white);
    border-radius: 2px;
}

.site-nav {
    flex-basis: 100%;
    display: none;
    order: 3;
    padding-top: 16px;
}

.nav-toggle-input:checked ~ .site-nav {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-nav a {
    display: block;
    padding: 10px 4px;
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid var(--warm-white-15);
}

.site-nav ul li:first-child a {
    border-top: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--teal-light);
}

.nav-phone {
    display: inline-block;
    font-weight: 600;
    color: var(--warm-white);
    text-decoration: none;
    padding: 8px 0;
}

.nav-phone:hover,
.nav-phone:focus-visible {
    color: var(--teal-light);
}

/* Page Anchor offsets*/
#top,
#services,
#about,
#service-area,
#rates,
#contact {
    scroll-margin-top: 85px;
}

@media (min-width: 780px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        flex-basis: auto;
        display: flex;
        align-items: center;
        gap: 28px;
        order: 2;
        padding-top: 0;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 22px;
        margin: 0;
    }

    .site-nav a {
        padding: 4px 0;
        border-top: none;
    }

    .nav-phone {
        padding: 0;
        white-space: nowrap;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding: 64px 0 56px;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.75em;
}

.hero h1 {
    font-size: clamp(3rem, 10vw + 1rem, 5rem);
    /* max-width: 16ch; */
    margin: 0 auto 1rem;
}

.hero-lede {
    max-width: 56ch;
    margin: 0.5em auto 1.75em;
    font-size: 1.8rem;
}

/* ---------- Sections ---------- */

.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--white);
}

.section h2 {
    font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem);
}

.section-lede {
    /* max-width: 62ch; */
    font-size: 1.2rem;
}

.section-note {
    color: #405166;
    font-size: 0.95rem;
}

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 700px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card {
    background: var(--white);
    border: 1px solid var(--navy-10);
    border-radius: var(--radius);
    padding: 28px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--teal);
}

.service-card ul {
    margin-bottom: 0;
}

.service-card li + li {
    margin-top: 0.4em;
}

/* ---------- How it works ---------- */

.steps {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 28px;
}

@media (min-width: 700px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.steps li {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 24px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--warm-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.steps h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4em;
}

.steps p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 800px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--navy-10);
    border-radius: var(--radius);
    overflow: hidden;
}

.credential-list li {
    padding: 12px 18px;
    font-size: 0.95rem;
    border-top: 1px solid var(--navy-10);
}

.credential-list li:first-child {
    border-top: none;
}

/* ---------- Service area ---------- */

.area-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-list li {
    background: var(--teal-15);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ---------- Rates ---------- */

.rates-card {
    background: var(--white);
    border: 1px solid var(--navy-10);
    border-radius: var(--radius);
    padding: 24px 28px;
    max-width: 62ch;
    margin: 24px 0;
}

.rates-card p:last-child {
    margin-bottom: 0;
}

/* ---------- Contact ---------- */
#contact {
    background: linear-gradient(#fff, #fdfdfa);
}

.contact-grid {
    display: grid;
    gap: 32px;
    margin-top: 24px;
}

@media (min-width: 800px) {
    .contact-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--navy-10);
    border-radius: var(--radius);
    padding: 28px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.optional {
    font-weight: 300;
    color: #5a6a7c;
}

.form-row input,
.form-row textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid var(--navy-20);
    border-radius: var(--radius);
    background: var(--warm-white);
    color: var(--navy);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.form-row textarea {
    resize: vertical;
}

/* Honeypot: hidden from sighted mouse/keyboard users, but present in the
   DOM (not display:none) so unsophisticated bots still fill it in. */
.form-row-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-direct h3 {
    font-size: 1.2rem;
}

.contact-direct a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
    color: var(--teal);
}

/* Success/error banners: hidden by default, shown via the :target
   pseudo-class when sendmail.php redirects back to #success / #error.
   No JavaScript required. */
.form-alert {
    display: none;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.form-alert:target {
    display: block;
}

.form-alert p {
    margin: 0;
}

.form-alert-success {
    background: var(--teal-15);
    border: 1px solid var(--teal);
}

.form-alert-error {
    background: #f7e3e0;
    border: 1px solid #b5432f;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: var(--warm-white);
    padding: 0 0 32px 0;
    text-align: center;
}

.site-footer .portside-scene {
    margin-bottom: 32px;
}

.footer-inner p {
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.footer-inner p:last-child {
    margin-bottom: 0;
    opacity: 0.75;
}
