/*
Theme Name: Server Tweakers
Theme URI: https://servertweakers.com
Author: Server Tweakers
Description: A clean, dark lead-generation theme for Server Tweakers
Version: 1.0
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
    --bg-primary:    #0a0f18;
    --bg-secondary:  #0e1116;
    --bg-card:       #111827;
    --border:        #1e2a3a;
    --accent-blue:   #1677ff;
    --accent-yellow: #f2c200;
    --accent-cyan:   #0785bb;
    --text-primary:  #e8edf5;
    --text-muted:    #9fb2cc;
    --font-heading:  'Gloock', Georgia, serif;
    --font-body:     'Lora', Georgia, serif;
    --radius:        8px;
    --max-width:     1100px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

p { color: var(--text-muted); margin-bottom: 1rem; }

ul { list-style: none; }

/* =============================================
   Layout Helpers
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-center { text-align: center; }

.accent { color: var(--accent-yellow); }

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}

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

/* =============================================
   Header / Nav
   ============================================= */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 24, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

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

.site-logo img {
    height: 42px;
    width: auto;
}

.site-logo span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
}

nav#main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav#main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav#main-nav a:hover,
nav#main-nav .current-menu-item a { color: var(--text-primary); text-decoration: none; }

nav#main-nav .nav-cta a {
    background: var(--accent-blue);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
}
nav#main-nav .nav-cta a:hover { opacity: 0.88; }

/* Mobile nav toggle */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
#nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* =============================================
   Hero
   ============================================= */
#hero {
    padding: 7rem 0 5rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(22, 119, 255, 0.12) 0%, transparent 65%);
}

.hero-badge {
    display: inline-block;
    background: rgba(22, 119, 255, 0.15);
    border: 1px solid rgba(22, 119, 255, 0.35);
    color: var(--accent-blue);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

#hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    max-width: 820px;
    margin: 0 auto 1.2rem;
}

#hero .hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 3.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.hero-trust-items span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust-items span::before {
    content: "✓";
    color: var(--accent-yellow);
    font-weight: bold;
}

/* =============================================
   Services Section
   ============================================= */
#services-overview {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-card ul li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
}

/* =============================================
   Why Us Section
   ============================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.why-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.why-item p { font-size: 0.9rem; }

/* =============================================
   CTA Banner
   ============================================= */
#cta-banner {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    padding: 4rem 0;
    text-align: center;
}

#cta-banner h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

#cta-banner p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

#cta-banner .btn {
    background: var(--accent-yellow);
    color: #0a0f18;
}

/* =============================================
   Contact Page
   ============================================= */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p { margin-bottom: 1.5rem; }

.contact-detail {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-detail-icon { font-size: 1.3rem; }

.contact-detail h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-detail p {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-form-wrap h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

.form-group select option { background: var(--bg-card); }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; text-align: center; padding: 1rem; }

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    display: none;
}
.form-message.success {
    background: rgba(22, 200, 100, 0.15);
    border: 1px solid rgba(22, 200, 100, 0.4);
    color: #4cda80;
    display: block;
}
.form-message.error {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ff7070;
    display: block;
}

/* =============================================
   Services Page
   ============================================= */
.services-full-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-full:nth-child(even) .service-full-text { order: 2; }
.service-full:nth-child(even) .service-full-visual { order: 1; }

.service-full-text h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.service-full-text p { margin-bottom: 1.5rem; }

.service-feature-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.service-feature-list li {
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.service-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

.service-full-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}

.service-full-visual .service-icon-lg { font-size: 4rem; margin-bottom: 1rem; }
.service-full-visual h3 { font-size: 1.1rem; color: var(--accent-blue); margin-bottom: 0.5rem; }
.service-full-visual p { font-size: 0.9rem; }

/* =============================================
   About Page
   ============================================= */
.about-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.about-wrap h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-wrap p { font-size: 1.05rem; margin-bottom: 1.5rem; }

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
}

/* =============================================
   Page Hero (inner pages)
   ============================================= */
.page-hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(22, 119, 255, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { max-width: 560px; margin: 0 auto; }

/* =============================================
   Footer
   ============================================= */
#site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; }

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text-primary); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    #nav-toggle { display: flex; }

    nav#main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }
    nav#main-nav.open { display: block; }
    nav#main-nav ul { flex-direction: column; gap: 1rem; }
    nav#main-nav .nav-cta a { display: inline-block; }

    .contact-wrap { grid-template-columns: 1fr; }
    .service-full { grid-template-columns: 1fr; }
    .service-full:nth-child(even) .service-full-text,
    .service-full:nth-child(even) .service-full-visual { order: unset; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-trust-items { gap: 1rem; }
    #hero { padding: 4rem 0 3rem; }
}
