/*
Theme Name: Proper Structures
Theme URI: https://properindustriesmt.com
Author: Proper Structures
Author URI: https://properindustriesmt.com
Description: Bold industrial theme for Proper Structures Deck Building - Montana's Premier Deck Builders
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proper-structures
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --brand-primary: #FF5A00;
    --brand-hover: #E04D00;
    --border-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-border {
    border-top: 1px solid var(--border-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ===== NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .site-logo {
        font-size: 2rem;
    }
}

.site-logo span {
    color: var(--brand-primary);
}

.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-phone svg {
    width: 1rem;
    height: 1rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav a:hover {
    color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-title span {
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 2rem;
    height: 2rem;
    color: var(--brand-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 6rem 0;
}

@media (min-width: 1024px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    border-left: 4px solid var(--brand-primary);
    border-top: 4px solid var(--brand-primary);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    border-right: 4px solid var(--brand-primary);
    border-bottom: 4px solid var(--brand-primary);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

@media (min-width: 1024px) {
    .about-image {
        height: 500px;
    }
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .about-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .about-title {
        font-size: 3.75rem;
    }
}

.about-title span {
    color: var(--brand-primary);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

@media (min-width: 1024px) {
    .services-section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-title span {
    color: var(--brand-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--brand-primary);
}

.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-bg {
    opacity: 0.3;
}

.service-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .service-content {
        padding: 3rem;
    }
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--text-primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .service-title {
        font-size: 1.875rem;
    }
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link svg {
    width: 1rem;
    height: 1rem;
}

/* ===== QUOTE FORM SECTION ===== */
.quote-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    background-image: 
        linear-gradient(rgba(51, 51, 51, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 51, 51, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
}

@media (min-width: 1024px) {
    .quote-section {
        padding: 8rem 0;
    }
}

.quote-form-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.quote-form {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

@media (min-width: 1024px) {
    .quote-form {
        padding: 3rem;
    }
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 90, 0, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

.form-submit svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== FOOTER/CONTACT SECTION ===== */
.site-footer {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 6rem 0;
    }
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--brand-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 1rem;
}

.footer-contact-list a,
.footer-contact-list span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: var(--brand-primary);
}

.footer-contact-list svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.footer-services-list {
    list-style: none;
}

.footer-services-list li {
    margin-bottom: 0.75rem;
}

.footer-services-list a {
    color: var(--text-secondary);
}

.footer-services-list a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

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

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

/* ===== FORM SUCCESS SCREEN ===== */
.form-success-screen {
    text-align: center;
    padding: 4rem 1rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text-primary);
}

.success-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.success-title span {
    color: var(--brand-primary);
}

.success-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 28rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ===== FORM SUCCESS/ERROR MESSAGES ===== */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* ===== WORDPRESS SPECIFIC ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Sticky header offset for anchor links */
:target {
    scroll-margin-top: 100px;
}
