/**
 * ARMORA Theme Styles
 * Clean, semantic, performance-optimized
 */

:root {
    --primary-dark: #172554;
    --primary-blue: #1e40af;
    --bg-light: #f0f9ff;
    --bg-white: #ffffff;
    --text-main: #374151;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --accent-orange: #d97706;
    --radius-md: 8px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    padding-left: 20px;
    margin: 0;
}

h1, h2, h3, h4 {
    color: var(--primary-dark);
    margin-top: 0;
    line-height: 1.4;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 12px;
    padding: 8px 16px;
    background: #fbbf24;
    color: #1f2937;
    z-index: 1000;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.flex-gap {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-container {
    padding: 20px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo span {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-weight: 500;
    font-size: 18px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* Buttons - TODO: Style from scratch */

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-video {
    border-radius: 16px;
    overflow: hidden;
    max-height: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-badge {
    background: #e3f2fd;
    color: #1A3276;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 40px;
    max-width: 700px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: var(--radius-md);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.service-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card h3 a {
    color: var(--primary-dark);
}

.service-card h3 a:hover {
    color: var(--primary-blue);
}

.service-card p {
    font-size: 16px;
    color: var(--text-muted);
    flex-grow: 1;
    line-height: 1.8;
    margin-bottom: 0;
}

.read-more {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
}

.read-more:hover {
    gap: 8px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-item {
    background: var(--bg-light);
    padding: 36px;
    border-radius: 12px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(26, 50, 118, 0.1);
}

.benefit-item h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #1A3276;
    font-weight: 600;
}

.benefit-item p {
    font-size: 16px;
    color: #374151;
    line-height: 1.9;
    margin-bottom: 14px;
}

.benefit-item p:last-child {
    margin-bottom: 0;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    padding: 60px 0;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
}

/* Wavy Line Separator */
.waves-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: -7px;
    min-height: 80px;
    max-height: 150px;
}

.wave-parallax > use {
    fill: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #9ca3af;
    padding: 40px 0 20px;
    font-size: 13px;
}

.site-footer a {
    color: #e5e7eb;
}

.site-footer a:hover {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-list {
    list-style: none;
    padding: 0;
    font-size: 13px;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--primary-blue);
}

.mobile-phone-btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    color: white !important;
    padding: 16px 20px !important;
    border-radius: 8px;
    margin-top: 24px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    transition: background 0.2s;
}

.mobile-phone-btn:hover {
    background: var(--primary-blue);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 900px) {
    .site-header .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 15px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-video {
        order: -1;
        max-height: 350px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .services-grid,
    .benefits-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-header .btn-primary {
        display: none;
    }
}

/* ==========================================================================
   GUTENBERG BLOCK STYLES
   ========================================================================== */

/* Hero + Services gradient wrapper */
.wp-block-group.hero-services-wrapper {
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
    max-width: none;
    width: 100%;
    padding: 0;
    position: relative;
}

.wp-block-group.hero-services-wrapper > .wp-block-group__inner-container {
    max-width: none;
}

.wp-block-group.hero-services-wrapper .wp-block-group.hero,
.wp-block-group.hero-services-wrapper .wp-block-group.services-section {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Wave at bottom of hero-services-wrapper */
.wp-block-group.hero-services-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 24 150 28' preserveAspectRatio='none'%3E%3Cpath d='M-160 44c30 0 58-10 88-10s58 10 88 10 58-10 88-10 58 10 88 10v44h-352z' fill='%23f0f9ff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}


/* Block container */
.wp-block-group {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.wp-block-group.hero {
    padding: 80px 20px;
    background: transparent;
}

.wp-block-group.hero .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wp-block-group.hero .wp-block-heading {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.wp-block-group.hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Hero Video */
.wp-block-group.hero .wp-block-video video,
.wp-block-group.hero .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.wp-block-group.hero .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-badge {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Buttons - TODO: Style from scratch */

/* Services Section */
.wp-block-group.services-section {
    background: transparent;
}

.wp-block-group.services-section .wp-block-heading:first-child,
.wp-block-group.services-section > .wp-block-group__inner-container > .wp-block-heading:first-child {
    text-align: left;
    margin-bottom: 40px;
}

.wp-block-columns.services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.wp-block-column.service-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.wp-block-column.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.wp-block-column.service-card .wp-block-image {
    margin: 0;
}

.wp-block-column.service-card .wp-block-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wp-block-column.service-card .wp-block-heading,
.wp-block-column.service-card p,
.wp-block-column.service-card .wp-block-list {
    padding: 0 25px;
}

.wp-block-column.service-card .wp-block-heading {
    margin-top: 20px;
    margin-bottom: 15px;
}

.wp-block-column.service-card .wp-block-heading a {
    color: var(--primary-dark);
    text-decoration: none;
}

.wp-block-column.service-card .wp-block-heading a:hover {
    color: var(--primary-blue);
}

.wp-block-column.service-card .wp-block-list {
    list-style: none;
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 20px;
}

.wp-block-column.service-card .wp-block-list li {
    padding: 8px 0;
}

.wp-block-column.service-card .read-more {
    padding: 0 25px 25px;
}

.wp-block-column.service-card .read-more a {
    color: var(--primary-blue);
    font-weight: 600;
}

.wp-block-column.service-card .coming-soon {
    padding: 0 25px 25px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Benefits Section - Full width background with waves at top and bottom */
.wp-block-group.benefits-section {
    background: var(--bg-light);
    max-width: none;
    width: 100%;
    padding: 120px 20px;
    position: relative;
}

/* Wave at top of benefits-section */
.wp-block-group.benefits-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 24 150 28' preserveAspectRatio='none'%3E%3Cpath d='M-160 44c30 0 58-10 88-10s58 10 88 10 58-10 88-10 58 10 88 10v44h-352z' fill='%23f0f9ff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    pointer-events: none;
}

/* Wave at bottom of benefits-section */
.wp-block-group.benefits-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 24 150 28' preserveAspectRatio='none'%3E%3Cpath d='M-160 44c30 0 58-10 88-10s58 10 88 10 58-10 88-10 58 10 88 10v44h-352z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.wp-block-group.benefits-section > .wp-block-group__inner-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.wp-block-group.benefits-section .wp-block-heading:first-child,
.wp-block-group.benefits-section > .wp-block-group__inner-container > .wp-block-heading:first-child {
    text-align: center;
    margin-bottom: 15px;
}

.wp-block-group.benefits-section > .wp-block-group__inner-container > p,
.wp-block-group.benefits-section > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

.wp-block-columns.benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wp-block-column.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.wp-block-column.benefit-item .wp-block-heading {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 15px;
}

.wp-block-column.benefit-item p {
    color: var(--text-main);
    line-height: 1.8;
}

/* Contact CTA Section */
.wp-block-group.contact-cta {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
    text-align: center;
    border-radius: 16px;
    margin: 60px auto;
    max-width: calc(var(--max-width) - 40px);
}

.wp-block-group.contact-cta .wp-block-heading {
    color: white;
    margin-bottom: 15px;
}

.wp-block-group.contact-cta p {
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 30px;
}


/* Responsive */
@media (max-width: 768px) {
    .wp-block-group.hero .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wp-block-group.hero .wp-block-heading {
        font-size: 28px;
    }
    
    .wp-block-columns.services-grid,
    .wp-block-columns.benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-block-group {
        padding: 40px 20px;
    }
}
