/* ===================================
   COLOR SCHEME
   =================================== */
:root {
    --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-display: 'Black Mango', Georgia, 'Times New Roman', Times, serif;
    --font-script: 'Romantically', 'Black Mango', Georgia, serif;
}

@font-face {
    font-family: 'Outfit';
    src: local('Outfit Regular'), local('Outfit-Regular'), url('fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Black Mango';
    src: local('Black Mango Regular'), local('Black Mango'), url('fonts/Black Mango Regular.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Romantically';
    src: local('Romantically'), url('fonts/Romantically.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    /* Color palette - vibrant and refined */
    --primary-dark: #2c3f47;      /* Darkest navy/teal - key highlight */
    --primary: #5a7f8a;           /* Muted teal/slate */
    --primary-light: #7a9d7f;     /* Sage green */
    --primary-softer: #c5d9d3;    /* Light sage/celadon */
    --accent-warm: #c4b896;       /* Warm tan/gold */
    --cream: #faf9f6;             /* Warm cream/off-white */
    --text-dark: #2c3f47;         /* Dark navy/teal for text */
    --text-light: #5a7f8a;        /* Muted teal for lighter text */
    --pale-green: #c5d9d3;        /* Light background */
    --waratah-highlight: #C0314A8C; /* softer brush-stroke highlight */
}

/* ===================================
   GENERAL STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    /* Prevent layout width jumps when page height crosses the scrollbar threshold */
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('assets/logo-mark.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(140vw, 1800px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
    background-color: var(--primary-dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(44, 63, 71, 0.2);
}

.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-location {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    font-family: var(--font-display);
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: none;
}

.nav-location-mobile {
    display: none;
}

.logo-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    position: fixed;
    top: 88px;
    right: 1rem;
    display: none !important;
    flex-direction: column;
    background-color: var(--primary-dark);
    width: min(420px, calc(100vw - 2rem));
    max-height: 70vh;
    text-align: left;
    transition: transform 0.2s ease;
    padding: 0.5rem 0;
    gap: 0;
    z-index: 1002;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(44, 63, 71, 0.3);
    transform: translateY(-6px);
}

.nav-menu.active {
    display: flex !important;
    transform: translateY(0);
}

.nav-menu li {
    padding: 0;
    border-bottom: 1px solid #7EA89B20;
    transition: background-color 0.2s ease;
}

.nav-menu li:hover,
.nav-menu li:focus-within {
    background-color: rgba(126, 168, 155, 0.16);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, background-color 0.2s ease;
    display: block;
    width: 100%;
    padding: 0.9rem 1.4rem;
}

.nav-link:hover {
    color: var(--primary-softer);
}

/* Hamburger menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
    padding: 10px;
    margin: -10px;
    touch-action: manipulation;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

.home-cover-section,
.page-container,
.footer {
    position: relative;
    z-index: 1;
}

/* ===================================
   PAGE CONTAINER
   =================================== */
.page-container {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   HOME PAGE
   =================================== */
.home-content {
    text-align: center;
    padding: 0;
    background-color: transparent;
}

/* ===================================
   HOME COVER SECTION (Full Width)
   =================================== */
.home-cover-section {
    position: relative;
    width: 100%;
    height: clamp(460px, 60vh, 500px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    flex: 0 0 auto;
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(44, 63, 71, 0.2), rgba(44, 63, 71, 0.35));
}

.cover-text {
    color: #fff;
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    line-height: 1.35;
    letter-spacing: 0.4px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    max-width: 24ch;
}

.tagline {
    font-size: 2rem;
    color: white;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    background-color: var(--primary-dark);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    display: inline-block;
}

.home-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    background-color: var(--primary);
    padding: 2rem;
    border-radius: 8px;
}

.home-image {
    display: flex;
    justify-content: center;
}

.home-text {
    text-align: left;
}

.home-text h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
    margin-top: 0;
    font-family: var(--font-script);
    line-height: 1.35;
    text-align: center;
}

.welcome-text {
    color: white;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.home-read-more {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.home-image {
    display: flex;
    justify-content: center;
}

.home-profile-photo {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(44, 63, 71, 0.2);
}

.home-photo-strip {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-strip-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(44, 63, 71, 0.16);
}

.home-strip-photo-bottom {
    object-position: center bottom;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-softer) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.placeholder-small {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .home-cover-section {
        height: clamp(320px, 46vh, 460px);
    }

    .page-container {
        padding: 1rem;
    }

    .page-content h1 {
        padding: 1.2rem 1rem;
        padding-top: calc(1.2rem - 0.35em);
        padding-bottom: calc(1.2rem - 0.35em);
    }

    .home-main {
        grid-template-columns: 1fr;
    }

    .home-photo-strip {
        grid-template-columns: 1fr;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .home-text h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        top: 78px;
        right: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .nav-location {
        font-size: 0.95rem;
    }

}

/* ===================================
   PAGE CONTENT
   =================================== */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
}

.page-content h1 {
    width: min(100%, 860px);
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 500;
    background-color: #7EA89B30;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-family: var(--font-script);
    /* Extra wrapped-line spacing, with compensated padding so single-line headings stay the same box height */
    line-height: 2.1;
    padding-top: calc(1.5rem - 0.35em);
    padding-bottom: calc(1.5rem - 0.35em);
    position: relative;
    z-index: 1;
}

/* ===================================
   Q&A SECTIONS
   =================================== */
.qa-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-flow {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #7EA89B25;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    overflow: hidden;
}

.about-accordion {
    width: min(100%, 860px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.qa-accordion {
    width: 100%;
    background-color: #7EA89B25;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}

.qa-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-family: var(--font-display);
    line-height: 1.35;
    user-select: none;
}

.qa-accordion summary::-webkit-details-marker {
    display: none;
}

.qa-accordion summary::marker {
    content: "";
}

.qa-accordion[open] summary {
    border-bottom: 1px solid rgba(90, 127, 138, 0.25);
}

.qa-content {
    padding: 1.1rem 1.5rem 1.4rem;
    min-width: 0;
}

.qa-content .qa-answer {
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

.qa-content .qa-answer:last-child {
    margin-bottom: 0;
}

.qa-content ul {
    margin-left: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-cta {
    margin-top: 0.5rem;
    text-align: left;
}

.about-bottom-image {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

.about-bottom-image img {
    width: min(100%, 860px);
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(44, 63, 71, 0.22);
}

.about-footnotes {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-light);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-footnotes p + p {
    margin-top: 0.45rem;
}

.about-footnotes a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-flow h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-top: 1.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.about-flow h3:first-child {
    margin-top: 0;
}

.about-flow .qa-answer {
    margin-bottom: 0.5rem;
}

.philosophy-list {
    margin-left: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.philosophy-list li + li {
    margin-top: 0.45rem;
}

.why-quote {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-script);
    font-size: clamp(1rem, 1.0vw, 1.3rem);
    line-height: 2.4;
    color: var(--primary-dark);
    text-align: center;
}

.why-author {
    margin-bottom: 0;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

.waratah-highlight {
    font-weight: 700;
}

.pricing-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
    margin: 0.75rem 0 1.3rem;
}

.pricing-table {
    width: max(620px, 100%);
    border-collapse: collapse;
    background-color: rgba(250, 249, 246, 0.9);
    font-size: 0.98rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.pricing-table-four-col {
    table-layout: fixed;
}

.pricing-col-service {
    width: 58%;
}

.pricing-col-fee,
.pricing-col-rebate,
.pricing-col-gap {
    width: 14%;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid rgba(90, 127, 138, 0.24);
    padding: 0.7rem 0.75rem;
    text-align: left;
    color: var(--text-dark);
    vertical-align: middle;
    font-size: 0.98rem;
}

.pricing-table th {
    background-color: rgba(122, 157, 127, 0.18);
    font-weight: 700;
}

.pricing-table .gap-col {
    font-weight: 700;
}

.pricing-note {
    margin-top: 0.9rem;
}

.pricing-divider-row td {
    border-top: 4px solid rgba(44, 63, 71, 0.8);
}

.pricing-table-education {
    table-layout: fixed;
}

.pricing-table-education th:first-child,
.pricing-table-education td:first-child {
    width: 72%;
}

.pricing-table-education th:last-child,
.pricing-table-education td:last-child {
    width: 28%;
}

.qa-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: #7EA89B25;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.qa-item:nth-child(even) {
    direction: rtl;
}

.qa-item:nth-child(even) > * {
    direction: ltr;
}

.qa-question h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.qa-answer {
    color: var(--text-light);
    line-height: 1.8;
}

.qa-image {
    display: flex;
    justify-content: center;
}

.qa-image .image-placeholder {
    width: 240px;
    height: 240px;
}

@media (max-width: 768px) {
    .qa-item,
    .qa-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .qa-item:nth-child(even) > * {
        direction: ltr;
    }

    .qa-image .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .home-profile-photo {
        width: min(100%, 320px);
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 0.95rem;
    }

    .pricing-table {
        font-size: 0.95rem;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-message {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-container {
    width: min(100%, 860px);
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-left: 1.5rem;
}

.contact-item h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0;
}

.social-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex: 0 0 auto;
}

.contact-photo {
    margin-top: 0.25rem;
}

.contact-photo img {
    width: 100%;
    max-width: 420px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .contact-info {
        margin-left: 0;
    }

    .contact-photo img {
        max-width: 100%;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.95rem;
}

body[data-page="home"] .cover-text {
    line-height: 1.7;
    padding-top: 0.45em;
    padding-bottom: 0.45em;
}

body[data-page="home"] .home-text h2 {
    line-height: 1.7;
    margin-top: 0.5rem;
    margin-bottom: 1.6rem;
}

@media (max-width: 768px) {
    .nav-location {
        display: none;
    }

    .nav-location-mobile {
        display: block;
        text-align: center;
        padding: 0.6rem 1rem 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        font-family: var(--font-display);
        font-size: 0.88rem;
        line-height: 1.25;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* ===================================
   TYPOGRAPHY & UTILITIES
   =================================== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-display);
}

a {
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .footer {
        background-color: white;
    }
}
