/* 
    Plinly Construction Landing Page Styles - "Yellow Iron"
    Theme: Light / Heavy Equipment / Construction Site
    Mobile-First Approach
*/

:root {
    /* "Yellow Iron" Palette */
    --primary: #fbbf24;
    /* Amber 400 - Construction Yellow */
    --primary-dark: #f59e0b;
    /* Amber 500 */
    --primary-light: #fef3c7;
    /* Amber 100 */

    --bg-main: #ffffff;
    /* White */
    --bg-offset: #f3f4f6;
    /* Gray 100 - Concrete */
    --bg-card: #ffffff;

    --text-main: #1f2937;
    /* Gray 800 */
    --text-muted: #4b5563;
    /* Gray 600 */
    --text-dark: #000000;
    /* Black */

    --border-strong: #1f2937;
    /* Dark border for "blocky" feel */
    --border-light: #e5e7eb;

    --radius-sm: 0px;
    /* Keeping it square/industrial */
    --radius-md: 2px;
    --radius-lg: 4px;

    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Grid Background on Body directly removed */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid Background restored */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(rgba(31, 41, 55, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 41, 55, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bolder for heavy equipment feel */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    /* Slightly smaller for mobile */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    /* Slightly tighter for mobile */
    position: relative;
    z-index: 1;
}

.mobile-only {
    display: inline;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
}

.highlight-yellow {
    background-color: var(--primary);
    padding: 0 0.25rem;
    color: var(--text-dark);
}

/* Pencil Strike Overlay */
.pencil-strike-container {
    position: relative;
    display: inline-block;
}

.pencil-strike-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(-1deg);
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.pencil-strike-svg path {
    stroke: #ef4444;
    stroke-width: 3;
    /* Scribbly red pencil style */
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.7;
    filter: url(#pencilTexture);
    vector-effect: non-scaling-stroke;
}

.pencil-strike-svg path:nth-child(2),
.pencil-strike-svg path:nth-child(5) {
    opacity: 0.6;
}

.pencil-strike-svg path:nth-child(3),
.pencil-strike-svg path:nth-child(6) {
    opacity: 0.5;
}

@keyframes drawPencil {
    to {
        stroke-dashoffset: 0;
    }
}

del {
    text-decoration: none;
    opacity: 1;
}

/* Hazard / Construction Barrier Separator */
.tape-separator {
    height: 24px;
    width: 100%;
    background-color: #FACC15;
    /* Safety Yellow Base */
    /* Diagonal Hazard Stripes */
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            #1f2937 20px,
            /* Dark Slate Gray Stripes */
            #1f2937 40px);
    border-top: 2px solid #1f2937;
    border-bottom: 2px solid #1f2937;
    margin: 0 0 2rem 0;
    /* Reduced margin for balance */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Clear previous pseudo-elements */
.tape-separator::after {
    content: none;
}

/* Remove hook styles */
.tape-hook,
.tape-hook::before,
.tape-hook::after {
    display: none;
}




/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    /* Square buttons */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--border-strong);
    /* Thick border */
    font-size: 1rem;
    box-shadow: 4px 4px 0px var(--border-strong);
    /* Hard shadow */
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-strong);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    width: 100%;
    /* Full width CTAs on mobile */
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0px var(--border-strong);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-strong);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    /* Slightly smaller for mobile */
    color: var(--text-main);
}

.logo img {
    height: 36px;
    width: auto;
    /* Keeping original logo colors or adding filter if needed */
}

/* Hero Section - WITH GRID */
/* Hero Section - WITH GRID from Body */
.hero {
    padding-top: 7rem;
    /* Reduced for mobile */
    padding-bottom: 4rem;
    text-align: center;
    background-color: transparent;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dark);
    background-color: var(--bg-offset);
    border: 2px solid var(--border-strong);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2rem;
    /* Scaled down for mobile */
    max-width: 900px;
    margin: 0 auto 1.25rem;
    color: var(--text-dark);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-container {
    margin-top: 3rem;
    border: 2px solid var(--border-strong);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
    /* Hard shadow */
    background: white;
}

/* Sections General */
section {
    padding: 4rem 0;
    /* Reduced global padding for mobile */
}

.section-spacious {
    padding: 5rem 0;
}

/* Clean background for plain sections (Demonstration, Objections) */
/* .container.reveal uses default background (transparent/white) */

/* Ensure background offset doesn't conflict */
.bg-offset {
    background-color: var(--bg-offset);
    border-top: 2px solid var(--border-strong);
    border-bottom: 2px solid var(--border-strong);
}

.section-title h2 {
    font-size: 1.75rem;
    /* Scaled for mobile */
    display: inline-block;
    background: linear-gradient(180deg, transparent 65%, var(--primary) 65%);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
    /* Extra breathing room for mobile */
}

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem;
    /* Tighter padding for mobile */
    border: 2px solid var(--border-strong);
    box-shadow: 4px 4px 0px var(--primary);
    transition: transform 0.2s;
}

/* Hover effect removed as styles are now permanent */

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Numbers circles */
/* Numbers circles removed */
.feature-card h3::before {
    display: none;
}


/* Objection Box */
.objection-box {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    /* Adjusted for mobile */
    border: 2px solid var(--border-strong);
    background-color: var(--bg-card);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(251, 191, 36, 0.1) 10px, rgba(251, 191, 36, 0.1) 20px);
}


/* FAQ */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-light);
    border-left: 6px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item.active {
    /* Keeps same appearance as closed state */
    box-shadow: none;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-icon::after {
    opacity: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--text-dark);
    padding: 4rem 0 2rem;
    text-align: center;
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border: 3px solid var(--border-strong);
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 10px 10px 0px var(--primary);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    border: 2px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
    background-color: var(--bg-offset);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Desktop Expansion */
@media (min-width: 768px) {
    html {
        font-size: 18px;
        /* Slightly larger for desktop balance */
    }

    section {
        padding: 8rem 0;
    }

    .hero {
        padding-top: 10rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solution-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .btn-lg {
        width: auto;
    }

    .feature-card {
        padding: 2.5rem;
        box-shadow: 6px 6px 0px var(--primary);
    }
}