* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ecf0f1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
}

.hero {
    background: #eee;
    background-size: cover;
    background-position: center;
    color: #2c3e50;
    text-align: center;
    padding: 48px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #2980b9;
}
.cta-button:focus-visible,
.search-button:focus-visible,
.tax-calc-btn:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact {
    background: #333;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1rem;
}

.contact-item h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

footer {
    background: #1a252f;
    color: #d5d8dc;
    text-align: center;
    padding: 2rem 0;
}

/* Court Search Section Styles */
.court-search .container {
    max-width: 800px;
    width: 100%;
}

.court-search {
    padding: 80px 0;
    background: #f8f9fa;
}

.court-search .section-title {
    margin-bottom: 1rem;
}

.search-input-group {
    margin-bottom: 2rem;
}

.search-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 1rem 0;
}

.search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: #2980b9;
}

.court-map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.result-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.message-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-box.error {
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.message-box.success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.courthouse-info {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
}

.courthouse-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.lawyer-info {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
}

.lawyer-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.lawyer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lawyer-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.lawyer-details {
    display: flex;
    flex-direction: column;
}

.lawyer-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.lawyer-details p {
    margin: 0.25rem 0;
}

.lawyer-details a {
    color: #3498db;
    text-decoration: none;
}

.lawyer-details a:hover {
    text-decoration: underline;
}

.lawyer-details .lawyer-contact-button {
    color: #fff;
}

.lawyer-button-group {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lawyer-details .lawyer-website-button {
    background-color: #3498db;
    color: #fff;
}

.lawyer-details .lawyer-website-button:hover {
    background-color: #2980b9;
}

.services-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.services-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.services-list li::before {
    content: '✓';
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-content {
    display: grid;
    gap: 0.75rem;
}

.info-content p {
    margin: 0;
    line-height: 1.5;
}

.info-content strong {
    color: #2c3e50;
}

.info-content a {
    color: #3498db;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.court-search .container > p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
    line-height: 1.6;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        margin-top: 0;
    }

    .nav-links {
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        gap: 2rem;
        background: hsl(210, 20%, 15%, 0.95);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }
    
    .nav-links.nav-visible-transition {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 1.2rem;
        right: 1.2rem;
        z-index: 2001;
        background: transparent;
        border: 0;
        width: 2.2rem;
        height: 2.2rem;
        box-shadow: none;
    }

    header {
        position: static;
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: none;
    }

    .hero {
        padding: 28px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .court-search .container > p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .court-search {
        padding: 60px 0;
    }

    .search-controls {
        flex-direction: column;
    }

    .lawyer-contact-info {
        text-align: center;
        margin-bottom: 1rem;
    }

    .lawyer-button-group {
        justify-content: center;
    }

    .services-list {
        display: inline-block;
        text-align: left;
        margin-bottom: 1rem;
    }

    .lawyer-photo {
        width: 150px;
        height: 150px;
        justify-self: center;
    }

    /* Lawyer section mobile styles */
    .lawyer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lawyer-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lawyer-contact-info p {
        text-align: center;
    }

    .services-list {
        display: inline-block;
        text-align: left;
    }

    .lawyer-button-group {
        justify-content: center;
    }

    .lawyer-photo {
        width: 150px;
        height: 150px;
        justify-self: center;
    }
}

.search-again-container {
    text-align: center;
    margin-top: 2rem;
}

/* FAQ Accordion Styles */
.faq {
    background: #fff;
    padding: 80px 0 60px 0;
}
.faq .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-family: inherit;
    letter-spacing: 0;
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
    overflow: hidden;
}
.faq-item + .faq-item {
    border-top: 1px solid #e5e7eb;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 500;
    color: #23423a;
    padding: 1.5rem 2.5rem 1.5rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.faq-question:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: -2px;
    border-radius: 4px;
}
.faq-question:hover, .faq-item.open .faq-question {
    background: #f4f8f7;
}
.faq-toggle {
    font-size: 1.5rem;
    margin-left: 1rem;
    color: #23423a;
    transition: transform 0.3s;
}
.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #f9fbfa;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
}
@media (max-width: 600px) {
    .faq .section-title {
        font-size: 2rem;
    }
    .faq-list {
        border-radius: 8px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1rem 2rem 1rem 1rem;
    }
    .faq-answer {
        padding: 0 1rem;
    }
    .faq-item.open .faq-answer {
        padding: 1rem 1rem 1.25rem 1rem;
    }
}

/* Ontario Estate Checklist Styles */
.checklist {
    background: #f8f9fa;
    padding: 80px 0 60px 0;
}
.checklist .section-title {
    margin-bottom: 0.5rem;
}
.checklist-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.checklist-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
}
.checklist-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.06);
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    margin-bottom: 0;
    position: relative;
    transition: box-shadow 0.2s;
}
.checklist-step h3 {
    font-size: 1.3rem;
    color: #23423a;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checklist-icon {
    font-size: 1.7rem;
    margin-right: 0.5rem;
}
.checklist-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist-step ul li {
    font-size: 1.08rem;
    color: #2c3e50;
    margin-bottom: 0.7rem;
    padding-left: 1.7rem;
    position: relative;
}
.checklist-step ul li::before {
    content: '✔';
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    top: 0.1rem;
}
.checklist-divider {
    height: 24px;
    width: 100%;
    border-left: none;
    border-top: 2px dashed #e2e8f0;
    margin: 0 0 0.5rem 0;
}
.checklist-note {
    background: #e8f4fd;
    color: #23423a;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    margin-bottom: 0;
}
@media (max-width: 700px) {
    .checklist-step {
        padding: 1.2rem 1rem 1rem 1rem;
    }
    .checklist-steps {
        gap: 0.5rem;
    }
}

.contact-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    position: relative;
}
.contact-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.08);
}
.advert-label {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1px;
    font-family: inherit;
    background: rgba(255,255,255,0.85);
    padding: 1px 6px;
    border-radius: 3px;
}
.disclaimer-text {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.95rem;
    color: #a8adb3;
    text-align: center;
    line-height: 1.5;
}

.checklist .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.download-pdf-btn {
    margin: 0 0 2rem 0;
}

.download-pdf-btn {
    display: inline-block;
    margin: 0 auto 2rem auto;
    padding: 12px 28px;
    background: #3498db;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
}
.download-pdf-btn:hover {
    background: #217dbb;
    box-shadow: 0 4px 16px rgba(44,62,80,0.13);
}

.pdf-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
    line-height: 0;
}

.tax-calculator {
    background: #fff;
    padding: 60px 0 60px 0;
}
.tax-calculator .section-title {
    margin-bottom: 0.5rem;
}
.tax-calc-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}
.tax-calc-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tax-calc-label {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}
.tax-calc-input {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 180px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.tax-calc-input:focus {
    outline: none;
    border-color: #3498db;
}
.tax-calc-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.tax-calc-btn:hover {
    background: #217dbb;
}
.tax-calc-result {
    text-align: center;
    font-size: 1.25rem;
    color: #23423a;
    font-weight: 600;
    min-height: 1.5em;
}

.tax-calc-card {
    max-width: 420px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tax-calc-desc {
    max-width: 340px;
    margin-bottom: 1.5rem;
}
.tax-calc-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.tax-calc-label {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
}
.tax-calc-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}
.tax-calc-dollar {
    font-size: 1.2rem;
    color: #666;
    margin-right: 0.2em;
}
.tax-calc-input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    background: transparent;
    font-family: inherit;
}
.tax-calc-input:focus {
    border: none;
    outline: none;
}
.tax-calc-btn {
    margin-top: 0.5rem;
    width: 100%;
}
.tax-calc-result-label {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    text-align: center;
}
.tax-calc-result {
    font-size: 1.3rem;
    color: #23423a;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
.tax-calc-note {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    max-width: 340px;
}
@media (max-width: 600px) {
    .tax-calc-card {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .tax-calc-desc, .tax-calc-note {
        max-width: 98vw;
    }
}

.nav-close-mobile {
    display: none;
}
.nav-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: auto;
    display: block;
}
.nav-backdrop {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44,62,80,0.45);
    transition: opacity 0.2s;
}
@media (max-width: 768px) {
    .nav-close-mobile {
        display: block;
        width: 100%;
        text-align: right;
    }
    .nav-links.nav-visible-transition ~ .nav-backdrop,
    .nav-backdrop.active {
        display: block;
    }
}

.hamburger-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
} 