/*
Theme Name: Saanichton Law Group
Theme URI: https://saanichtonlaw.com
Author: Saanichton Law Group
Author URI: https://saanichtonlaw.com
Description: Professional legal services theme for Saanichton Law Group. Includes home page, team page, and service page templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saanichton-law-group
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #d4af37;
    --accent-color: #2c5f8d;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    background-image: url('assets/hero-forest.jpg');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 122, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.98;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #c19d26;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    background: #c19d26;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-phone {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-phone svg {
    width: 20px;
    height: 20px;
}

.btn-phone:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-phone {
        width: 100%;
        justify-content: center;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content:has(.service-showcase) {
    margin-top: 0;
}
.container:has(.service-showcase) .section-header {
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
    opacity: 0.85;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

body:has(.service-showcase) .about-content {
    max-width: 1100px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
}

.about-text .service-help-list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text .service-help-list li {
    margin-bottom: 0.5rem;
}

.about-text h3.service-help-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-hero-image {
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.service-float {
    position: relative;
    width: min(420px, 44%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0.25rem 0 1.25rem;
}

.service-float--large {
    width: min(640px, 60%);
}

.service-float--right {
    float: right;
    margin-left: 1.75rem;
}

.service-float--left {
    float: left;
    margin-right: 1.75rem;
}

.service-float::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 122, 0.22);
    pointer-events: none;
}

.service-float img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.service-wrap::after {
    content: "";
    display: block;
    clear: both;
}

.service-text-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Service page showcase */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    margin: 0 auto 2.5rem;
    max-width: 1200px;
}

.service-showcase__image {
    position: relative;
    min-height: 420px;
}

.service-showcase__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-showcase__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 122, 0.20);
    pointer-events: none;
}

.service-showcase--blue .service-showcase__panel {
    background: linear-gradient(135deg, #0f3557 0%, var(--primary-color) 55%, #123b60 100%);
}

.service-showcase__panel {
    padding: 3.5rem 3rem;
    color: var(--white);
    position: relative;
}

.service-showcase__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);
}

.service-showcase__subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 42ch;
    margin-bottom: 2rem;
}

.service-showcase__stats-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    max-width: 560px;
    margin: 0 0 2rem;
}

.service-showcase__divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
}

.service-showcase__stat {
    text-align: center;
    min-width: 0;
}

.service-showcase__stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.service-showcase__stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-showcase__cta {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.65);
    padding: 0.9rem 1.75rem;
}

.service-showcase__cta:hover {
    background: var(--white);
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .service-showcase {
        grid-template-columns: 1fr;
    }
    .service-showcase__panel {
        padding: 2.5rem 2rem;
    }
    .service-showcase__image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .service-text-card {
        padding: 1.5rem;
    }
    .service-float {
        float: none;
        width: 100%;
        margin: 0 0 1.25rem;
    }
    .service-float--right,
    .service-float--left {
        margin-left: 0;
        margin-right: 0;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover {
    color: inherit;
}

.service-card-link .service-card-cta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card-link:hover .service-card-cta {
    color: var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
}

/* Attorneys Section */
.attorneys {
    background: var(--white);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: stretch;
}

.attorney-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc((100% - 4rem) / 3);
}

.attorney-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.attorney-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.attorney-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.attorney-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.attorney-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.attorney-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.attorney-bio {
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
    padding: 5rem 0;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    opacity: 0.3;
    line-height: 1;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.contact-item h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 400;
}

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

.contact-item p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-trust-note {
    background: #e8f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--white);
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content {
    padding: 2.5rem;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0.4rem 0;
    }
    .hero {
        background-position: center 95%;
        background-attachment: scroll;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        padding: 1rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    section {
        padding: 2.5rem 0;
    }
    .section-header {
        margin-bottom: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    .services-grid,
    .attorneys-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .attorney-card:last-child:nth-child(3n+1) {
        grid-column: auto;
        justify-self: stretch;
        max-width: 100%;
    }
    .testimonials-grid {
        margin-top: 1.5rem;
    }
    .modal-container {
        max-width: 100%;
        margin: 1rem;
        max-height: 95vh;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .modal-title {
        font-size: 1.75rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1474px) {
    .hero {
        background-position: center 60%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
