/*
Theme Name: AI Mirai Designer Theme
Author: Gemini
Description: A custom block theme for AI Mirai Designer based on the specifications.
Version: 1.3
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aimiraidesigner-theme
Tags: block-theme
*/

/* --- Base Styles --- */
body {
  background-color: #FFFFFF; /* Surface */
  color: #0F172A; /* ink */
}

/* --- Typography --- */
h1, .text-h1 {
    font-size: 2.25rem !important; /* 36px */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
h2, .text-h2 {
    font-size: 1.75rem !important; /* 28px */
    font-weight: 700 !important;
    line-height: 1.4 !important;
}
h3, .text-h3 {
    font-size: 1.375rem !important; /* 22px */
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* Typography for Post Content */
.entry-content a {
    color: #1B57F0; /* brand */
}
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
}
.entry-content blockquote {
    border-left: 4px solid #E2E8F0; /* n200 */
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #475569; /* slate-600 */
}

/* --- Header & Navigation --- */
#site-header {
    transition: all 0.3s ease-in-out;
}
#site-header .menu-item a {
    font-size: 1rem; /* 16px */
    font-weight: 400;
    color: #0F172A; /* ink */
}

/* --- Header Dropdown Menu --- */
#site-header .menu-item-has-children {
    position: relative;
}

#site-header .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 220px;
    padding: 0.5rem;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#site-header .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#site-header .sub-menu .menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

#site-header .sub-menu .menu-item a:hover {
    background-color: #F8FAFC; /* n100 */
    color: #1B57F0; /* brand */
}

/* --- Page Specific Styles --- */

/* Top Page: Hero Section */
.home .site-hero {
    color: #0F172A; /* ink */
}
.home .site-hero p {
    color: #475569; /* slate-600 */
}
.home .site-hero .wp-block-button__link {
    background-color: #1B57F0; /* brand */
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
}

/* Top Page: Service Cards */
.service-card {
    background-color: #FFFFFF;
    border-radius: 0.5rem; /* 8px */
    padding: 1.5rem; /* 24px */
    border: 1px solid #E2E8F0; /* n200 */
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}
.service-card p {
    color: #475569; /* slate-600 */
}

/* Top Page: CTA Section */
.cta-section {
    background-color: #F8FAFC; /* n100 */
}
.cta-section p {
    color: #475569; /* slate-600 */
}
.cta-section .wp-block-button__link {
    background-color: #1B57F0; /* brand */
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
}

/* Top Page: Post Cards */
.post-card {
    background-color: #FFFFFF;
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
    border: 1px solid #E2E8F0; /* n200 */
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}
.post-card h3 a {
    color: #0F172A; /* ink */
    text-decoration: none;
}
.post-card h3 a:hover {
    color: #1B57F0; /* brand */
}

/* --- Footer --- */
#site-footer {
    background-color: #0F172A; /* ink */
    color: #FFFFFF;
}
#site-footer a {
    color: #CBD5E1; /* n300 */
    text-decoration: none;
}
#site-footer a:hover {
    color: #FFFFFF;
}
#site-footer .copyright {
    color: #94A3B8; /* slate-400 */
}

/* --- Component Styles --- */

/* Buttons */
.wp-block-button .wp-block-button__link {
    color: #FFFFFF !important; /* Ensure button text is white */
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #0D47A1;
}

.wp-block-button.is-style-secondary .wp-block-button__link {
    background-color: var(--wp--preset--color--surface) !important;
    border: 2px solid var(--wp--preset--color--brand) !important;
    color: var(--wp--preset--color--brand) !important;
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--n100) !important;
}

/* Forms */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="password"],
.entry-content input[type="search"],
.entry-content input[type="tel"],
.entry-content textarea {
    border: 1px solid #E2E8F0; /* n200 */
    padding: 0.75rem;
    width: 100%;
    border-radius: 0.25rem;
}

.entry-content input[type="text"]:focus,
.entry-content input[type="email"]:focus,
.entry-content input[type="url"]:focus,
.entry-content input[type="password"]:focus,
.entry-content input[type="search"]:focus,
.entry-content textarea:focus {
    border-color: #1B57F0; /* brand */
    outline: none;
    box-shadow: 0 0 0 2px rgba(27, 87, 240, 0.2);
}

/* --- Motion & Interaction Styles --- */

/* Sticky Header */
#site-header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    z-index: 50;
}

/* Fade-up Animation */
.fade-up-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Improved Link Underline */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover::after {
    transform: scaleX(1);
}

/* --- Estimator Styles --- */
.plan-btn {
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background-color: transparent;
    font-weight: 600;
    color: #475569; /* slate-600 */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.plan-btn.active {
    background-color: #FFFFFF;
    color: #1B57F0; /* brand */
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.price-breakdown p {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #F1F5F9; /* slate-100 */
}
#aidesigner-estimator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #1B57F0; /* brand */
    cursor: pointer;
    border-radius: 50%;
    margin-top: -10px; /* Adjust thumb position */
}

#aidesigner-estimator input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #1B57F0; /* brand */
    cursor: pointer;
    border-radius: 50%;
}
#aidesigner-estimator input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #E2E8F0; /* n200 */
    outline: none;
    border-radius: 2px;
}

/* --- Mobile Menu --- */
/* Reverted to rely on Tailwind classes */

/* --- Footer Submenu Indentation --- */
/* Reverted to rely on Tailwind classes */
