/*
Theme Name: Maitrasys
Theme URI: https://maitrasys.co.jp
Author: Maitrasys Dev Team
Author URI: https://maitrasys.co.jp
Description: A premium FSE theme for Maitrasys - Cyber Security & IT Consulting. World-class design with pale green color scheme.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: maitrasys
*/

/* ============================================
   IMPORT FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Styles */
.custom-logo {
    margin: 0;
    line-height: 0;
    flex-shrink: 0;
}

.custom-logo a {
    display: inline-block;
    line-height: 0;
}

.custom-logo img {
    display: block;
    height: auto;
    max-width: 100px !important;
    width: 100px !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-logo:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Overlay for mobile menu */
@media (max-width: 900px) {
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
}

.footer-logo {
    margin: 0;
    line-height: 0;
}

.footer-logo a {
    display: inline-block;
    line-height: 0;
}

.footer-logo img {
    display: block;
    height: auto;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.8;
}

/* Header Navigation Menu */
.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
}

.header-nav-menu .nav-item {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.header-nav-menu .nav-item a {
    color: #0A2E29;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: block;
}

.header-nav-menu .nav-item a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3ECFAA 0%, #06B797 100%);
    transition: width 0.3s ease;
}

.header-nav-menu .nav-item a:hover {
    color: #06B797;
}

.header-nav-menu .nav-item a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #0A2E29;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Legacy navigation support */
.main-navigation .wp-block-navigation-item a {
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3ECFAA 0%, #06B797 100%);
    transition: width 0.3s ease;
}

.main-navigation .wp-block-navigation-item a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .wp-block-cover__image-background {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-title {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta-secondary {
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.wp-block-button__link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none !important;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.wp-block-button__link:hover::before {
    transform: translateX(100%);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(62, 207, 170, 0.5), 0 10px 10px -5px rgba(62, 207, 170, 0.04);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* Outline Button Hover */
.is-style-outline .wp-block-button__link {
    border: 2px solid currentColor !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #3ECFAA !important;
    color: #3ECFAA !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
}

.about-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
}

.about-image:hover img {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SERVICES SECTION - ULTRA MODERN CARD DESIGN
   ============================================ */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(62, 207, 170, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(6, 183, 151, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

/* Services Header Styling */
.services-header {
    position: relative;
    z-index: 1;
}

.service-title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center !important;
}

.service-title-wrapper * {
    text-align: center !important;
}

.service-title-line {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 4px;
    margin-top: 0.75rem;
    background: linear-gradient(90deg, transparent 0%, #3ECFAA 20%, #06B797 50%, #3ECFAA 80%, transparent 100%);
    border-radius: 2px;
    animation: lineExpand 1.2s ease-out forwards;
}

@keyframes lineExpand {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.services-main-title {
    position: relative;
    width: 100%;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.service-card-modern {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: visible;
    background: linear-gradient(135deg, #ffffff 0%, #fafffe 100%);
}

/* Top accent bar with gradient */
.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3ECFAA 0%, #06B797 50%, #3ECFAA 100%);
    background-size: 200% 100%;
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease, background-position 0.6s ease;
}

.service-card-modern:hover::before {
    opacity: 1;
    background-position: 100% 0;
}

/* Left accent line - animated */
.service-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #3ECFAA 0%, #06B797 100%);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
}

.service-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(62, 207, 170, 0.2), 
                0 0 0 1px rgba(62, 207, 170, 0.1);
}

.service-card-modern:hover::after {
    height: 100%;
}

/* Service number with circular gradient background */
.service-number {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.12;
    background: linear-gradient(135deg, rgba(62, 207, 170, 0.15) 0%, rgba(6, 183, 151, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.service-number::before {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(62, 207, 170, 0.08) 0%, rgba(6, 183, 151, 0.12) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(20px);
}

.service-card-modern:hover .service-number {
    opacity: 0.2;
    transform: scale(1.05) rotate(-5deg);
}

.service-card-modern:hover .service-number::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Service heading with gradient on hover */
.service-card-modern h3 {
    position: relative;
    transition: all 0.3s ease;
}

.service-card-modern:hover h3 {
    background: linear-gradient(135deg, #0A2E29 0%, #06B797 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services grid styling */
.services-grid {
    position: relative;
    z-index: 1;
}

.services-grid .wp-block-column {
    transition: all 0.3s ease;
}

/* Subtle animation for service cards */
@media (prefers-reduced-motion: no-preference) {
    .service-card-modern {
        animation: fadeInUp 0.6s ease-out backwards;
    }
    
    .services-grid:nth-of-type(1) .service-card-modern:nth-child(1) { animation-delay: 0.1s; }
    .services-grid:nth-of-type(1) .service-card-modern:nth-child(2) { animation-delay: 0.2s; }
    .services-grid:nth-of-type(1) .service-card-modern:nth-child(3) { animation-delay: 0.3s; }
    
    .services-grid:nth-of-type(2) .service-card-modern:nth-child(1) { animation-delay: 0.4s; }
    .services-grid:nth-of-type(2) .service-card-modern:nth-child(2) { animation-delay: 0.5s; }
    .services-grid:nth-of-type(2) .service-card-modern:nth-child(3) { animation-delay: 0.6s; }
}

/* Mobile responsive for services */
@media (max-width: 1024px) {
    .services-main-title {
        font-size: 2.5rem !important;
    }
    
    .services-grid {
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .services-main-title {
        font-size: 2rem !important;
        padding: 0 1rem;
    }
    
    .services-header {
        margin-bottom: 3rem !important;
    }
    
    .service-card-modern {
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        margin-top: 0 !important;
    }
}

/* Legacy service card support */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(62, 207, 170, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    background: linear-gradient(135deg, #0A2E29 0%, #164C45 100%);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(62, 207, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 183, 151, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.values-section .wp-block-columns {
    position: relative;
    z-index: 1;
}

.value-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background: rgba(22, 76, 69, 0.2) !important;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(62, 207, 170, 0.5) !important;
    background: rgba(22, 76, 69, 0.35) !important;
    box-shadow: 0 20px 40px -10px rgba(62, 207, 170, 0.2);
}

/* Legacy stats section support */
.stats-section {
    background: linear-gradient(135deg, #0A2E29 0%, #164C45 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(62, 207, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 183, 151, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section .wp-block-columns {
    position: relative;
    z-index: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
}

.cta-section .wp-block-cover__image-background {
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, #0A2E29 0%, #061915 100%);
}

.site-footer a {
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #3ECFAA !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1024px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 1200px) {
    .header-nav-menu {
        gap: 2rem;
    }
    
    .header-nav-menu .nav-item a {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .header-nav-menu {
        gap: 1.5rem;
    }
    
    .header-nav-menu .nav-item a {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop menu by default - IMPORTANT */
    .header-nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 2rem 2rem 3rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 999;
        
        /* Initially hidden */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
    
    /* Show menu when active */
    .header-nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header-nav-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid #EEF2F5;
    }
    
    .header-nav-menu .nav-item a {
        font-size: 1.15rem;
        padding: 1.25rem 0;
        width: 100%;
    }
    
    .header-nav-menu .nav-item a::after {
        bottom: 1rem;
    }
    
    .header-nav-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Logo responsive */
    .custom-logo img {
        max-width: 80px !important;
        width: 80px !important;
    }
    
    .footer-logo img {
        max-width: 180px !important;
        width: 180px !important;
    }
    
    /* Header adjustments */
    .site-header .header-container {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    
    .hero-section {
        min-height: 80vh !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .about-section,
    .services-section,
    .values-section,
    .stats-section,
    .cta-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .wp-block-buttons {
        flex-direction: column;
    }
    
    .wp-block-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-logo img {
        max-width: 70px !important;
        width: 70px !important;
    }
    
    .footer-logo img {
        max-width: 160px !important;
        width: 160px !important;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
        gap: 4px;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
    
    .header-nav-menu {
        top: 56px;
        max-height: calc(100vh - 56px);
        padding: 1.5rem 1.5rem 2.5rem;
    }
    
    .header-nav-menu .nav-item a {
        font-size: 1.1rem;
        padding: 1.1rem 0;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   CONTACT FORM 7 CUSTOM STYLES - MAITRASYS THEME
   ============================================ */

/* Contact Form Container Reset */
.wpcf7 {
    margin: 0;
    padding: 0;
}

.wpcf7-form {
    margin: 0;
    padding: 0;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.wpcf7-form > p:first-child:empty,
.wpcf7-form > div:first-child:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7-form-control-wrap {
    display: block;
}

/* Hide empty or hidden input fields that might appear */
.wpcf7 input[type="hidden"] {
    display: none !important;
}

/* Hide the hidden fields container fieldset */
.wpcf7 .hidden-fields-container,
.wpcf7 fieldset.hidden-fields-container {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.wpcf7 .wpcf7-response-output {
    margin: 2rem 0 0 0;
}

/* Remove any default WordPress block spacing above the form */
.wpcf7 > br,
.wpcf7-form > br {
    display: none;
}

/* Contact Form Table Layout */
.CF7_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
}

.CF7_table tr {
    border-bottom: 1px solid #EDF2F7;
}

.CF7_table tr:last-child {
    border-bottom: none;
}

.CF7_table th {
    width: 220px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    vertical-align: top;
    background: #F7FAFC;
    color: #2D3748;
    font-weight: 700;
    font-size: 0.95rem;
    border-right: 1px solid #EDF2F7;
}

.CF7_table td {
    padding: 1.75rem 2rem;
    vertical-align: top;
    background: #FFFFFF;
}

/* Required/Optional Badge */
.CF7_req,
.CF7_unreq {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.05em;
}

.CF7_req {
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%);
    color: #0A2E29;
}

.CF7_unreq {
    background: #E2E8F0;
    color: #4A5568;
}

/* Form Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    background-color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: inherit;
    color: #2D3748;
    line-height: 1.5;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: #3ECFAA;
    box-shadow: 0 0 0 3px rgba(62, 207, 170, 0.1);
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #A0AEC0;
}

.wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

/* Checkbox Styling */
.wpcf7 .wpcf7-list-item {
    margin: 0 1rem 0.75rem 0;
    display: inline-block;
}

.wpcf7 .wpcf7-list-item-label {
    font-size: 1rem;
    color: #2D3748;
    margin-left: 8px;
    cursor: pointer;
}

.wpcf7 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3ECFAA;
}

/* Submit Button */
.CF7_btn {
    text-align: center;
    margin-top: 2rem;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%);
    color: #0A2E29;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1.125rem 3.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(62, 207, 170, 0.3);
    min-width: 200px;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 207, 170, 0.4);
    background: linear-gradient(135deg, #06B797 0%, #3ECFAA 100%);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #E53E3E;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.wpcf7-validation-errors {
    background-color: #FEF2F2;
    border: 2px solid #FCA5A5;
    color: #991B1B;
}

.wpcf7-mail-sent-ok {
    background-color: #D1FAE5;
    border: 2px solid #34D399;
    color: #065F46;
}

/* Loading Spinner */
.wpcf7 .ajax-loader {
    display: none;
}

.wpcf7-spinner {
    display: inline-block;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .CF7_table {
        display: block;
    }
    
    .CF7_table tr {
        display: block;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #EDF2F7;
        padding-bottom: 1.5rem;
    }
    
    .CF7_table tr:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .CF7_table th,
    .CF7_table td {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        border: none;
        background: transparent;
    }
    
    .CF7_table th {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .CF7_table td {
        padding-top: 0;
    }
    
    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .CF7_req,
    .CF7_unreq {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3ECFAA;
    color: #0A2E29;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.shadow-hard {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   POST CARD STYLES
   ============================================ */
.post-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.post-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover img {
    transform: scale(1.1);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.wp-block-query-pagination {
    gap: 0.5rem;
}

.wp-block-query-pagination > * {
    margin: 0 !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background-color: #fff;
    color: #0A2E29;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #DFE5EA;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-query-pagination a:hover {
    background-color: #3ECFAA;
    border-color: #3ECFAA;
    color: #0A2E29;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 207, 170, 0.3);
}

.wp-block-query-pagination .page-numbers.current {
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%);
    border-color: #3ECFAA;
    color: #0A2E29;
    font-weight: 700;
}

/* ============================================
   SEARCH FORM STYLES
   ============================================ */
.wp-block-search {
    max-width: 100%;
}

.wp-block-search__input {
    border: 2px solid #DFE5EA !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #fff !important;
}

.wp-block-search__input:focus {
    outline: none !important;
    border-color: #3ECFAA !important;
    box-shadow: 0 0 0 4px rgba(62, 207, 170, 0.1) !important;
}

.wp-block-search__button {
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
    color: #0A2E29 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wp-block-search__button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(62, 207, 170, 0.4) !important;
}

/* ============================================
   SEPARATOR STYLES
   ============================================ */
.wp-block-separator {
    border: none;
    border-top: 1px solid currentColor;
    opacity: 0.3;
}

/* ============================================
   LIST STYLES
   ============================================ */
.is-style-none {
    list-style: none !important;
    padding-left: 0 !important;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

/* ============================================
   QUOTE STYLES
   ============================================ */
.wp-block-quote {
    border-left: 4px solid #3ECFAA;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4A5568;
}

.wp-block-quote cite {
    color: #0A2E29;
    font-style: normal;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================
   CODE STYLES
   ============================================ */
code {
    background-color: #E8F5F1;
    color: #164C45;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #0A2E29;
    color: #3ECFAA;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.wp-block-table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #DFE5EA;
    padding: 12px 16px;
    text-align: left;
}

.wp-block-table th {
    background-color: #E8F5F1;
    color: #0A2E29;
    font-weight: 700;
}

.wp-block-table tr:nth-child(even) {
    background-color: #F8FAFB;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: rgba(10, 46, 41, 0.98);
    backdrop-filter: blur(10px);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding: 2rem;
}

@media (max-width: 600px) {
    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        color: #0A2E29;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }
}

/* ============================================
   IMAGE HOVER EFFECTS
   ============================================ */
.wp-block-image img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.has-gradient-text {
    background: linear-gradient(135deg, #3ECFAA 0%, #06B797 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #F8FAFB;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3ECFAA 0%, #06B797 100%);
    border-radius: 6px;
    border: 2px solid #F8FAFB;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #06B797 0%, #3ECFAA 100%);
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background-color: #3ECFAA;
    color: #0A2E29;
}

::-moz-selection {
    background-color: #3ECFAA;
    color: #0A2E29;
}

/* ============================================
   FOCUS STYLES FOR ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #3ECFAA;
    outline-offset: 2px;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.wp-block-post-template.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .wp-block-button,
    .hero-cta,
    .wp-block-navigation,
    .wp-block-search {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================
   PAGE-SPECIFIC STYLES (ABOUT & SERVICE)
   ============================================ */

/* Hide default page title for pages with custom hero sections */
.page .entry-title,
.page .wp-block-post-title {
    display: none;
}

/* Page Hero Section */
.page-hero-section {
    position: relative;
}

.page-hero-section .wp-block-cover__image-background {
    animation: slowZoom 20s ease-out infinite alternate;
}

.page-hero-title {
    animation: fadeInUp 1s ease-out;
}

.page-hero-description {
    animation: fadeInUp 1.2s ease-out;
}

/* About Content Section - Natural Professional Design */
.about-content-section {
    position: relative;
    background: #FAFCFB;
}

.content-paragraph-large {
    margin-bottom: 1.5rem;
    color: #2D3748;
    font-size: 1.125rem;
    line-height: 2;
    font-weight: 400;
}

.content-paragraph-highlight {
    position: relative;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, rgba(62, 207, 170, 0.03) 0%, rgba(6, 183, 151, 0.02) 100%);
    border-left: 3px solid #3ECFAA;
    border-radius: 0 8px 8px 0;
}

.content-quote {
    position: relative;
    padding-left: 2rem;
    margin-left: 1rem;
    border-left: 3px solid #CBD5E0;
    font-style: italic;
    color: #4A5568;
}

/* Philosophy Section - Elegant Dark Design */
.philosophy-section {
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(62, 207, 170, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(62, 207, 170, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.philosophy-card {
    position: relative;
    padding: 4rem 3.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.philosophy-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #3ECFAA 50%, transparent 100%);
    border-radius: 2px;
}

.philosophy-tagline {
    text-shadow: 0 0 30px rgba(62, 207, 170, 0.2);
    font-weight: 700;
}

.philosophy-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-list li {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin-bottom: 1.25rem;
    background: rgba(62, 207, 170, 0.04);
    border-radius: 8px;
    border-left: 2px solid rgba(62, 207, 170, 0.3);
    transition: all 0.3s ease;
}

.philosophy-list li:hover {
    background: rgba(62, 207, 170, 0.08);
    border-left-color: #3ECFAA;
    transform: translateX(5px);
}

.philosophy-list li::before {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    color: #3ECFAA;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Company Info Section - Clean Professional */
.company-info-section {
    position: relative;
    background: #F7FAFC;
}

.company-info-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E2E8F0;
}

.company-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.company-info-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.company-info-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #EDF2F7;
    font-size: 1.05rem;
    line-height: 1.8;
}

.company-info-table td:first-child {
    font-weight: 700;
    color: #2D3748;
    width: 180px;
    background: #F7FAFC;
}

.company-info-table td:last-child {
    color: #4A5568;
}

.company-info-table tr:last-child td {
    border-bottom: none;
}

/* Service Content Section - Natural & Spacious */
.service-content-section {
    position: relative;
    background: #FAFCFB;
}

/* Remove excessive decorative elements */
.service-content-section::before,
.service-content-section::after {
    display: none;
}

/* Service Detail Cards - Clean Professional Design */
.service-detail-card {
    position: relative;
    padding: 3rem 3rem 3rem 3.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    border-left: 4px solid #3ECFAA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2.5rem;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-left-width: 4px;
    border-left-color: #06B797;
}

.service-detail-header {
    border-bottom: 1px solid #EDF2F7;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.service-detail-number {
    color: #3ECFAA;
    display: inline-block;
    position: relative;
    opacity: 0.15;
    font-weight: 900;
}

/* Remove excessive pseudo-elements */
.service-detail-number::after {
    display: none;
}

.service-detail-card:hover .service-detail-number {
    opacity: 0.2;
}

.service-detail-list {
    list-style: none;
    padding-left: 0;
}

.service-detail-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #4A5568;
    line-height: 1.8;
}

.service-detail-list li::before {
    content: '・';
    position: absolute;
    left: 0.5rem;
    color: #3ECFAA;
    font-weight: bold;
    font-size: 1.5rem;
}

.service-detail-emphasis {
    position: relative;
    padding: 1.25rem 1.75rem;
    background: rgba(62, 207, 170, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3ECFAA;
    margin-top: 2rem;
}

.service-detail-description {
    color: #2D3748;
}

/* Section Title Elegant */
.section-title-elegant {
    position: relative;
    display: inline-block;
    width: 100%;
    color: #1A202C;
}

.section-title-elegant::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #3ECFAA 50%, transparent 100%);
    border-radius: 2px;
}

/* CTA Section Simple */
.cta-section-simple {
    background: linear-gradient(135deg, #0F2027 0%, #203A43 100%);
}

/* Responsive Adjustments for Page Templates */
@media (max-width: 1024px) {
    .service-detail-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        min-height: 50vh !important;
    }

    .page-hero-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }

    .page-hero-description {
        font-size: 1rem !important;
    }

    .section-title-elegant {
        font-size: 2rem !important;
    }

    .content-paragraph-large,
    .content-paragraph-highlight {
        font-size: 1rem !important;
    }

    .content-quote {
        padding-left: 1.5rem;
        margin-left: 0 !important;
    }

    .philosophy-card {
        padding: 2.5rem 1.75rem;
    }

    .philosophy-title {
        font-size: 2rem !important;
    }

    .philosophy-tagline {
        font-size: 1.5rem !important;
    }

    .philosophy-description {
        font-size: 1rem !important;
    }

    .philosophy-list {
        font-size: 1rem !important;
    }

    .philosophy-list li {
        padding: 1rem 1.25rem 1rem 3rem;
    }

    .company-info-card {
        padding: 2rem 1.5rem !important;
    }

    .company-info-table td {
        display: block;
        width: 100% !important;
        padding: 0.75rem 1rem;
    }

    .company-info-table td:first-child {
        background: #EDF2F7;
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    .company-info-table td:last-child {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }

    .service-detail-card {
        padding: 2rem 1.5rem 2rem 1.75rem;
    }

    .service-detail-card:hover {
        transform: translateY(-2px);
    }

    .service-detail-number {
        font-size: 2.5rem !important;
    }

    .service-detail-header h3 {
        font-size: 1.75rem !important;
    }

    .service-detail-description {
        font-size: 1rem !important;
    }

    .service-detail-list {
        font-size: 0.95rem !important;
    }

    .service-detail-emphasis {
        font-size: 1rem !important;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .philosophy-list li {
        padding-left: 2.5rem;
    }

    .philosophy-list li::before {
        left: 0.75rem;
    }
    
    .service-detail-card {
        padding: 1.75rem 1.25rem 1.75rem 1.5rem;
    }
}

