/*
Theme Name: SWO Precision Fasteners
Theme URI: https://swofasteners.com
Author: SWO Precision Fasteners Limited
Author URI: https://swofasteners.com
Description: Custom theme for SWO Precision Fasteners Limited
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swo-theme
Tags: custom
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a3a63;
    --grey: #8b959e;
    --light-grey: #f4f5f7;
    --white: #ffffff;
    --dark: #2c3e50;
    --accent: #3a5a83;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--navy);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

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

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 120px 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Page Header */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 80px 2rem;
    text-align: center;
}

.page-header-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.grey-bg {
    background: var(--light-grey);
    max-width: 100%;
}

/* Overview Section */
.overview-section {
    padding: 80px 2rem;
    background: var(--light-grey);
}

.overview-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.overview-icon {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.overview-card p {
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--navy);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--navy);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--navy);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--grey);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 8px;
    margin-top: 2rem;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; font-size: 1.1rem; }

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--light-grey);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

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

.submit-button {
    padding: 1rem 2rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-info {
    background: var(--navy);
    color: var(--white);
    padding: 3rem;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.9;
}

.info-item div h4 {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.info-item a:hover { opacity: 0.8; }

.business-hours, .response-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.business-hours h4 {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.response-note p { opacity: 0.8; font-size: 0.95rem; }

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 { margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p { opacity: 0.8; line-height: 1.8; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: var(--white); text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-section ul li a:hover { opacity: 1; }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p { opacity: 0.7; }

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero h1 { font-size: 3rem; }
    .hero .tagline { font-size: 1.2rem; }
    .page-header-content h1 { font-size: 3rem; }
    .about-content, .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .content-section h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .hero { padding: 80px 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .page-header { padding: 60px 1.5rem; }
    .page-header-content h1 { font-size: 2.5rem; }
    .content-section { padding: 60px 1.5rem; }
    .products-grid, .overview-grid { grid-template-columns: 1fr; }
}
