/*
Theme Name: Migration Made Easy
Theme URI: https://migrationmadeeasy.co.uk
Author: Migration Made Easy
Author URI: https://migrationmadeeasy.co.uk
Description: Custom block theme for Shopify migration lead generation. Full Site Editing compatible with compiled Tailwind CSS.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: migration-made-easy
Tags: one-page, landing-page, lead-generation, full-site-editing, block-theme
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
*/

/* ── Base ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ── Custom CSS (from original code) ──────────────────── */

.gradient-text {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-section {
    background-color: #0f172a;
}

.book-shadow {
    filter: drop-shadow(20px 20px 30px rgba(0, 0, 0, 0.2));
}

.reveal { opacity: 0; }

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Custom Input States */
.custom-input {
    outline: none !important;
    box-shadow: none !important;
}

.input-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Space utilities */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.-space-x-3 > * + * { margin-left: -0.75rem; }

/* ── Reset Gutenberg layout classes that break our design ── */
.is-layout-flow,
.is-layout-constrained,
.is-layout-flex,
.is-nowrap,
[class*="wp-container-core-"] {
    display: revert !important;
    flex-wrap: revert !important;
    justify-content: revert !important;
}

/* Remove margin-block-start/end that Gutenberg adds via is-layout-flow */
.is-layout-flow > *,
.is-layout-constrained > * {
    margin-block-start: revert !important;
    margin-block-end: revert !important;
}

/* ── Block Editor Overrides ──────────────────────────── */
.wp-site-blocks {
    padding-top: 0;
    padding-bottom: 0;
}

/* Ensure fixed nav doesn't overlap editor */
.is-root-container {
    padding-top: 0 !important;
}

/* ── Responsive ───────────────────────────────────────── */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:text-xl { font-size: 1.25rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:w-auto { width: auto; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:text-left { text-align: left; }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:text-6xl { font-size: 3.75rem; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:block { display: block; }
    .lg\:p-10 { padding: 2.5rem; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:leading-tight { line-height: 1.1; }
}
