/* =============================================
   RESPONSIVE STYLES - Match smartphone.png
   ============================================= */

/* =============================================
   TABLET (max-width: 900px)
   ============================================= */
@media screen and (max-width: 900px) {
    .hero-lawyer {
        right: 5%;
    }

    .lawyer-image {
        width: 140px;
    }
}

/* =============================================
   TABLET (max-width: 768px)
   ============================================= */
@media screen and (max-width: 768px) {
    /* Header */
    .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .logo-area {
        align-items: center;
    }

    .contact-info {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .nav-list li a {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    /* Hero - Stack content and lawyer */
    .hero {
        min-height: auto;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 30px 20px 25px;
        max-width: 100%;
    }

    .hero-services {
        line-height: 1.6;
    }

    .hero-title .title-sub {
        font-size: 1.3rem;
    }

    .hero-title .title-main {
        font-size: 2.2rem;
    }

    .hero-lawyer {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }

    .lawyer-card {
        margin-bottom: 10px;
    }

    .lawyer-image {
        width: 130px;
    }

    /* Services - 2x3 grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 45px;
        max-width: 420px;
    }

    .service-icon {
        width: 90px;
        height: 90px;
    }

    .service-icon img {
        width: 45px;
        height: 45px;
    }

    /* Footer - Center aligned on mobile */
    .footer-inner {
        padding: 25px 15px;
    }

    .footer-main {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    /* Examples Page - Full width backgrounds */
    .example-row {
        padding: 25px 0;
    }

    .example-row-inner,
    .example-row-reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }

    .example-row-reverse .example-text {
        text-align: center;
    }

    .example-icon-wrap {
        order: 1;
    }

    .example-text {
        order: 2;
        text-align: center;
    }

    .example-text p {
        text-align: center;
    }

    /* About Page - Full width white sections */
    .about-page .profile-section {
        padding: 30px 0;
    }

    .about-page .profile-section .container {
        padding: 0 15px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        order: -1;
        width: 110px;
    }

    .profile-info {
        text-align: left;
    }

    .company-table {
        max-width: 100%;
    }

    /* Booking Page */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =============================================
   MOBILE (max-width: 480px) - Match smartphone.png
   ============================================= */
@media screen and (max-width: 480px) {
    html {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header - Exact match to smartphone.png */
    .header-inner {
        padding: 10px 15px 0;
    }

    .site-title {
        font-size: 2.1rem;
    }

    .sponsor {
        justify-content: center;
    }

    .sponsor-label {
        font-size: 0.6rem;
        padding: 1px 5px;
    }

    .sponsor-text {
        font-size: 0.65rem;
    }

    .contact-info {
        flex-direction: row;
        gap: 12px;
        font-size: 0.75rem;
    }

    .contact-item {
        gap: 5px;
    }

    .icon {
        width: 15px;
        height: 15px;
    }

    /* Navigation */
    .main-nav {
        padding: 0;
    }

    .nav-list {
        flex-wrap: nowrap;
    }

    .nav-list li a {
        white-space: nowrap;
    }

    /* Hero - Mobile layout */
    .hero {
        min-height: auto;
    }

    .hero::before {
        height: 120px;
    }

    .hero-content {
        padding: 25px 15px 20px;
    }

    .hero-limited {
        margin-bottom: 10px;
        font-size:1.2rem;
    }

    .hero-services {
        margin-bottom: 15px;
    }

    .hero-support {
        margin-bottom: 12px;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .hero-title .title-sub {
        font-size: 1.15rem;
    }

    .hero-title .title-main {
        font-size: 1.9rem;
        letter-spacing: 0.05em;
    }

    .hero-time {
        font-size: 0.9rem;
    }

    .hero-time .red {
        font-size: 1.05rem;
    }

    .hero-cta {
        font-size: 0.9rem;
    }

    .hero-lawyer {
        margin-top: 15px;
    }

    .lawyer-card {
        padding: 10px 15px;
    }

    .lawyer-label {
        font-size: 0.65rem;
    }

    .lawyer-reading {
        font-size: 0.55rem;
    }

    .lawyer-name {
        font-size: 1.2rem;
    }

    .lawyer-affiliation {
        font-size: 0.55rem;
    }

    .lawyer-image {
        width: 110px;
    }

    /* Consultation */
    .consultation {
        padding: 35px 15px;
    }
    .consultation-title {
        font-size: 1.3rem;
    }

    .consultation-list li {
        gap: 10px;
        padding: 6px 0;
        font-size:0.8rem;
    }

    .check-icon {
        width: 18px;
        height: 18px;
    }

    .check-icon::after {
        width: 7px;
        height: 4px;
    }

    /* Services - 2 column grid */
    .services {
        padding: 35px 15px 45px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 35px;
        max-width: 360px;
    }

    .service-icon {
        width: 85px;
        height: 85px;
    }

    .service-icon img {
        width: 42px;
        height: 42px;
    }

    .service-icon::before {
        width: 35px;
        height: 35px;
    }

    .service-name {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-section {
        padding: 30px 15px 40px;
    }

    .cta-button {
        padding: 14px 55px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-title {
        font-size: 0.95rem;
    }

    .footer-contact-item {
        font-size: 0.8rem;
    }

    .footer-address {
        font-size: 0.7rem;
    }

    /* Page Hero */
    .page-hero {
        height: 70px;
    }

    .page-hero-bg::before {
        height: 40px;
    }

    /* Main Content */
    .main-content {
        padding: 25px 0 40px;
    }

    .main-content > .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }

    /* Examples Page */
    .example-item {
        padding: 20px 0;
    }

    .example-icon {
        width: 55px;
        height: 55px;
    }

    .example-icon img {
        width: 28px;
        height: 28px;
    }

    .example-content p {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .example-label img {
        width: 30px;
        height: 30px;
    }

    .example-label span {
        font-size: 0.8rem;
    }

    .other-topics {
        font-size: 0.85rem;
    }

    /* About Page */
    .about-page .section-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .profile-table th,
    .profile-table td {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .profile-table th {
        width: 65px;
    }

    .career-section h3,
    .practice-areas h3 {
        font-size: 0.85rem;
    }

    .career-list li {
        font-size: 0.75rem;
    }

    .practice-areas p {
        font-size: 0.8rem;
    }

    .profile-image {
        width: 100px;
    }

    .company-name {
        font-size: 0.85rem;
    }

    .company-address-title {
        font-size: 0.8rem;
    }

    .map-image {
        height: 180px;
    }

    .company-table th,
    .company-table td {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .company-table th {
        width: 80px;
    }

    /* Privacy Page */
    .privacy-page .page-title {
        font-size: 0.95rem;
    }

    .privacy-intro {
        font-size: 0.75rem;
    }

    .privacy-section h3 {
        font-size: 0.85rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 0.75rem;
    }

    /* Booking Page */
    .booking-page .booking-intro p {
        font-size: 0.8rem;
    }

    .booking-notes {
        padding: 15px;
    }

    .booking-notes p {
        font-size: 0.7rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-label .required,
    .form-label .optional {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .form-hint,
    .form-hint-sub,
    .char-count {
        font-size: 0.65rem;
    }

    .form-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .form-note {
        font-size: 0.85rem;
        margin: 25px 0;
    }

    .submit-button {
        padding: 14px 55px;
        font-size: 1rem;
        border-radius: 30px;
    }
}

/* =============================================
   SMALL MOBILE (max-width: 360px)
   ============================================= */
@media screen and (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .nav-list li a {
        padding: 8px 5px;
        font-size: 0.65rem;
    }

    .hero-title .title-main {
        font-size: 1.7rem;
    }

    .services-grid {
        gap: 20px 25px;
        max-width: 280px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
    }

    .cta-button,
    .submit-button {
        padding: 12px 45px;
        font-size: 0.95rem;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-bottom: 20px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-lawyer {
        flex-direction: row;
        gap: 20px;
        align-items: flex-end;
    }

    .lawyer-card {
        margin-bottom: 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
    }
}

/* =============================================
   LARGE SCREENS (min-width: 1200px)
   ============================================= */
@media screen and (min-width: 1200px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1100px;
    }

    .header-inner,
    .footer-inner {
        max-width: 1100px;
    }

    .nav-inner {
        max-width: 1100px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-lawyer {
        right: 10%;
    }

    .lawyer-image {
        width: 200px;
    }

    .services-grid {
        max-width: 720px;
        gap: 40px 60px;
    }

    .service-icon {
        width: 110px;
        height: 110px;
    }

    .service-icon img {
        width: 55px;
        height: 55px;
    }

    .example-row-inner {
        max-width: 900px;
    }

    .booking-form {
        max-width: 900px;
    }

    .company-table {
        max-width: 550px;
    }
}

/* =============================================
   EXTRA LARGE SCREENS (min-width: 1400px)
   ============================================= */
@media screen and (min-width: 1400px) {
    html {
        font-size: 19px;
    }

    .container {
        max-width: 1200px;
    }

    .header-inner,
    .footer-inner,
    .nav-inner {
        max-width: 1200px;
    }

    .hero-lawyer {
        right: 12%;
    }

    .lawyer-image {
        width: 220px;
    }

    .services-grid {
        max-width: 800px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .header,
    .footer,
    .cta-section,
    .hero-lawyer {
        display: none;
    }

    .hero {
        background: none !important;
        min-height: auto;
        padding: 20px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-content {
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
    }
}

/* =============================================
   ACCESSIBILITY - High Contrast & Reduced Motion
   ============================================= */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --dark-blue: #004499;
        --text-gray: #333333;
    }

    .cta-button,
    .submit-button {
        border-width: 3px;
    }

    .nav-list li {
        border-right-color: rgba(255,255,255,0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =============================================
   DARK MODE (optional)
   ============================================= */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --white: #1a1a1a;
        --text-dark: #e0e0e0;
        --text-gray: #aaaaaa;
        --border-gray: #444444;
        --light-blue: #1e3a4a;
        --lighter-blue: #162830;
    }
    */
}
