/* ===================================
   Fabricated Products Of Tampa, Inc.
   Corporate Steel Fabrication Website
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2442;
    --secondary-color: #718096;
    --accent-color: #c53030;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5a6b7a;
    border-color: #5a6b7a;
    color: #ffffff;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-form {
    display: flex;
    justify-content: flex-end;
}

/* Form Card */
.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.form-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-color);
}

.values-list {
    margin-top: 15px;
}

.values-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.values-list li:last-child {
    border-bottom: none;
}

.about-image {
    position: sticky;
    top: 100px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Services Section
   =================================== */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.portfolio-section h3 {
    text-align: center;
    margin-bottom: 10px;
}

.portfolio-section > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: #ffffff;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h4 {
    color: #ffffff;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===================================
   Business Model Section
   =================================== */
.business-model {
    background-color: var(--bg-color);
}

.business-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.business-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.business-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.business-card p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.business-card ul {
    margin-left: 20px;
}

.business-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.business-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

.contact-item a {
    color: var(--text-color);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.map-container {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    border-radius: 4px;
}

.contact-form-container .form-card {
    max-width: 100%;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 30px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-consent-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cookie-consent-content > p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.cookie-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-option span:first-of-type {
    font-weight: 500;
    color: var(--text-color);
}

.cookie-description {
    width: 100%;
    padding-left: 28px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Modal Styles
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    padding: 30px 30px 0;
    margin-bottom: 20px;
}

.modal-body {
    padding: 0 30px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.modal-body p {
    color: var(--text-color);
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-form {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        position: static;
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .business-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-consent-banner {
        padding: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .modal-content h2 {
        padding: 20px 20px 0;
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .business-card {
        padding: 20px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .footer,
    .cookie-consent-banner,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    section {
        padding: 20px 0;
    }
}