
/* One Step Rail - Australian Iron Handrails */
:root {
    --primary: #1a1a1a;
    --accent: #c0392b;
    --gold: #d4af37;
    --light: #f5f5f5;
    --text: #333;
    --white: #fff;
    --border: #ddd;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

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

.container { width: 92%; max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span { color: var(--white); font-weight: 400; }

.tagline {
    font-size: 0.7rem;
    color: #aaa;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover, nav a.active { color: var(--gold); }

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/product-black-rail.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192,57,43,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 10px;
}

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

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

/* Sections */
section { padding: 60px 0; }

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-info { padding: 20px; }

.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.price-note {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

/* Payment buttons */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.paypal-btn, .stripe-btn {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.9rem;
    border: none;
}

.paypal-btn {
    background: #ffc439;
    color: #253b80;
}

.stripe-btn {
    background: #635bff;
    color: white;
}

.paypal-btn:hover, .stripe-btn:hover { opacity: 0.9; }

/* Features */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content { padding: 25px; }

.blog-content .date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 3px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

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

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Footer */
footer {
    background: var(--primary);
    color: #aaa;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col a {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
}

.footer-col a:hover { color: var(--gold); }

.made-in {
    font-size: 0.7rem;
    color: #555;
    margin-top: 20px;
    letter-spacing: 1px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    nav ul.active { display: flex; }
    .mobile-menu { display: block; position: absolute; right: 20px; top: 15px; }
    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 1.6rem; }
    .about-content, .contact-grid { grid-template-columns: 1fr; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    .products-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }

/* Schema markup helper */
.schema { display: none; }
