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

:root {
    /* Kirkland-inspired color palette */
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --navy-500: #64748b;
    --navy-400: #94a3b8;
    --navy-300: #cbd5e1;
    --navy-200: #e2e8f0;
    --navy-100: #f1f5f9;
    --navy-50: #f8fafc;
    
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-300: #fcd34d;
    --gold-200: #fde68a;
    --gold-100: #fef3c7;
    --gold-50: #fffbeb;
    
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Crimson Text', Georgia, serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--navy-800);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: var(--gray-100);
    color: var(--navy-900);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--navy-900);
    color: white;
}

.lang-btn:hover {
    background: var(--gray-200);
}

/* Floating Power of Attorney Button */
.floating-power-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.power-btn {
    background: var(--gold-500);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

.power-btn:hover {
    background: var(--gold-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.nav-link {
    color: #1a1a1a !important;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: #e1a60f;
}

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

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

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    transition: all 0.3s ease;
}

/* Quote Slider Section */
.quote-slider {
    padding: 120px 0;
    background-color: var(--navy-900);
    margin-top: 0;
}

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

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    font-style: italic;
    text-align: center;
    max-width: 900px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quote-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quote-item.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: var(--white);
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--navy-900);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-description {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  line-clamp: unset;
  font-size: 20px;
  color: var(--navy-600);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item {
    padding: 32px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: var(--navy-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy-900);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--navy-600);
    margin-bottom: 64px;
    line-height: 1.6;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.about-subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-600);
    margin-bottom: 32px;
    font-weight: 600;
}

.about-description {
    margin-bottom: 40px;
}

.about-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy-600);
    margin-bottom: 24px;
}

.about-section {
    margin-bottom: 32px;
}

.about-section-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy-900);
    margin-bottom: 12px;
    font-weight: 600;
}

.about-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy-600);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--gray-50);
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-scroll-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 60px;
}

.services-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-scroll::-webkit-scrollbar {
    display: none;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-300);
}

.service-card.expanded {
    min-width: 280px;
    max-width: 280px;
}

.service-number {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-600);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy-900);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-expand-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.service-card.expanded .service-expand-icon {
    transform: rotate(180deg);
    color: var(--gold-600);
}

.service-description {
    color: var(--navy-600);
    line-height: 1.6;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.service-card.expanded .service-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow);
}

.scroll-btn:hover {
    background: var(--gold-500);
    color: var(--white);
    border-color: var(--gold-500);
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy-900);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--navy-600);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--navy-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    color: var(--navy-800);
    transition: border-color 0.2s ease;
    font-family: var(--font-primary);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgb(245 158 11 / 0.1);
}

.form-group select {
    cursor: pointer;
}

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

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: var(--navy-900);
    color: var(--white);
    padding: 80px 0 32px;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-serif);
    margin-bottom: 16px;
    color: var(--gold-400);
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.25rem;
}

.footer-section h4 {
    font-size: 1.125rem;
}

.footer-section p {
    line-height: 1.6;
    color: var(--navy-300);
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--navy-700);
}

.footer-bottom p {
    color: var(--navy-400);
    font-size: 14px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navy-800);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--gold-400);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-btn.accept {
    background: var(--gold-500);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: var(--gold-600);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-400);
}

.cookie-btn.reject:hover {
    background: var(--gray-700);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .quote-text {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .service-card {
        min-width: 200px;
        max-width: 200px;
    }
    
    .service-card.expanded {
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 48px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-title {
        font-size: 24px;
    }
    
    .quote-slider {
        padding: 80px 0;
    }
    
    .quote-text {
        font-size: 1.5rem;
        min-height: 120px;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services,
    .about,
    .contact {
        padding: 80px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .floating-power-btn {
        bottom: 24px;
        right: 24px;
    }
    
    .power-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .power-btn span {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-scroll-container {
        padding: 0 50px;
    }
    
    .scroll-left {
        left: 5px;
    }
    
    .scroll-right {
        right: 5px;
    }
    
    .service-card {
        min-width: 180px;
        max-width: 180px;
        padding: 16px;
    }
    
    .service-card.expanded {
        min-width: 240px;
        max-width: 240px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .services-scroll-container {
        padding: 0 40px;
    }
    
    .service-card {
        min-width: 160px;
        max-width: 160px;
        padding: 14px;
    }
    
    .service-card.expanded {
        min-width: 220px;
        max-width: 220px;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .nav-title {
        font-size: 20px;
    }
    
    .quote-text {
        font-size: 1.25rem;
        min-height: 100px;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gold-500);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Quote fade animation */
@keyframes quoteFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.quote-fade {
    animation: quoteFade 0.8s ease-out;
}