/*
Theme Name: BIGG Brutalist
Theme URI: https://wearebigg.com
Description: Professional brutalist WordPress theme for BIGG AI services. Fully responsive and optimized for mobile.
Version: 1.0.0
Author: BIGG
Author URI: https://wearebigg.com
Tags: business, corporate, ai, brutalist, minimal, responsive, mobile-friendly
Text Domain: bigg-theme
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    padding-top: 140px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    padding: 40px 0;
    border-bottom: 3px solid #c9a000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #000000;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo {
    white-space: nowrap;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
}

.site-logo:hover {
    color: #ffffff;
}

.site-logo .separator {
    color: #c9a000;
}

.site-logo .page-name {
    color: #c9a000;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    border: 2px solid #c9a000;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-menu a:hover {
    background: #c9a000;
    color: #000000;
}

/* Contact Button */
.contact-button {
    display: inline-block;
    background: #c9a000;
    border: 2px solid #c9a000;
    color: #000000;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 160, 0, 0.5);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.site-content {
    min-height: 60vh;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.section-title .highlight {
    color: #c9a000;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.cta-primary,
.wp-block-button__link {
    display: inline-block;
    padding: 20px 60px;
    background: #c9a000;
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-primary:hover,
.wp-block-button__link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 160, 0, 0.3);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Content Grid
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-item {
    background: #0a0a0a;
    border: 2px solid #222;
    padding: 40px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: #c9a000;
    transform: translateY(-5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 50px 0;
    background: #000000;
    border-top: 3px solid #c9a000;
    text-align: center;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-footer a {
    color: #c9a000;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Desktop - 1440px and above */
@media (min-width: 1441px) {
    .container {
        max-width: 1800px;
    }
}

/* Desktop - 1200px to 1440px */
@media (max-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 50px;
    }
}

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .site-logo {
    white-space: nowrap;
        font-size: 24px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        padding: 12px 30px;
        font-size: 13px;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 52px;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 25px;
    }

    .site-header {
        padding: 25px 0;
        border-bottom: 2px solid #c9a000;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .site-logo {
    white-space: nowrap;
        font-size: 18px;
        letter-spacing: 1.5px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Menu Button */
    .contact-button {
        display: block;
        width: auto;
        margin-top: 0;
        padding: 12px 20px;
        font-size: 12px;
        letter-spacing: 1px;
        min-width: 100px;
        flex-shrink: 0;
    }

    /* Mobile Menu Navigation */
    .main-navigation {
        width: 100%;
        order: 3;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #c9a000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 13px;
        display: block;
        /* Touch-friendly size */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .section-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .cta-primary,
    .wp-block-button__link {
        width: 100%;
        text-align: center;
        padding: 18px 40px;
        font-size: 13px;
        /* Touch-friendly */
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grid-item {
        padding: 30px 20px;
    }

    /* Images responsive */
    img {
        height: auto;
        max-width: 100%;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 20px;
    }

    .site-header {
        padding: 20px 0;
    }

    .site-logo {
    white-space: nowrap;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .site-logo .page-name {
        font-size: 14px;
    }

    .contact-button {
        padding: 10px 15px;
        font-size: 11px;
        min-width: 80px;
    }

    .nav-menu {
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 14px 15px;
        min-height: 46px;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .cta-primary,
    .wp-block-button__link {
        padding: 16px 30px;
        font-size: 12px;
        min-height: 50px;
    }

    .grid-item {
        padding: 25px 15px;
    }

    .site-footer {
        padding: 30px 0;
        font-size: 10px;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .site-logo {
    white-space: nowrap;
        font-size: 14px;
    }

    .site-logo .separator {
        display: none;
    }

    .contact-button {
        font-size: 10px;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Mobile Touch Optimizations
   ========================================================================== */

/* Prevent text selection on buttons */
button,
.cta-primary,
.contact-button,
.nav-menu a {
    -webkit-tap-highlight-color: rgba(201, 160, 0, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Touch-friendly link sizes */
a {
    -webkit-tap-highlight-color: rgba(201, 160, 0, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better text rendering on mobile */
body {
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Better input handling on mobile */
input,
textarea,
select {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #c9a000;
    outline-offset: 2px;
}

/* Remove focus outline on mouse click but keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Hardware acceleration for animations */
.visual-shape,
.cta-primary,
.nav-menu a,
.grid-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Safe area for notched devices (iPhone X, etc) */
@supports(padding: env(safe-area-inset-left)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .site-header {
        padding-top: max(40px, env(safe-area-inset-top));
    }
}


/* ==========================================================================
   Contact Modal
   ========================================================================== */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
}

.modal-content {
    background: #0a0a0a;
    border: 3px solid #c9a000;
    max-width: 600px;
    width: 100%;
    padding: 60px 50px;
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid #c9a000;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #c9a000;
    color: #000000;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.modal-header .highlight {
    color: #c9a000;
}

.modal-header p {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c9a000;
}

.form-group input,
.form-group textarea {
    background: #000000;
    border: 2px solid #222;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a000;
    background: #0a0a0a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #444;
}

.form-submit {
    background: #c9a000;
    color: #000000;
    border: 2px solid #c9a000;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 160, 0, 0.5);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px;
    }
    
    .modal-header h2 {
        font-size: 32px;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .contact-modal.active {
        padding: 10px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-header h2 {
        font-size: 28px;
    }
    
    .modal-header p {
        font-size: 12px;
    }
}
