/* ============================================
   Hathill Technical Services — Main Stylesheet
   ============================================ */

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --accent: #00bcd4;
    --accent-dark: #0097a7;
    --dark: #0d1117;
    --dark-card: #161b22;
    --light: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #cccccc;
    --border: #e0e0e0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* ---------- Header / Navigation ---------- */

.site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition);
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero / Landing ---------- */

.hero {
    position: relative;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

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

/* ---------- Sections ---------- */

.section {
    padding: 5rem 2rem;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-alt {
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-dark .section-header h2 {
    color: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ---------- Services Grid ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--accent);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

.service-card .price {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
}

/* ---------- Showcase Grid ---------- */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.showcase-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

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

.showcase-info {
    padding: 1.5rem 2rem 2rem;
}

.showcase-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.showcase-info .price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.spec-sheet {
    margin: 0;
    padding: 0;
}

.spec-sheet li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.spec-sheet li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--primary);
}

.spec-value {
    color: #555;
}

/* ---------- About Page ---------- */

.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem 4rem;
}

.about-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.about-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.about-block h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.about-block p,
.about-block ul li {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
}

.about-block ul {
    margin-top: 0.5rem;
}

.about-block ul li {
    padding: 0.3rem 0;
    padding-left: 1.4rem;
    position: relative;
}

.about-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Contact Form ---------- */

.contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}

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

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

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---------- Page Banner ---------- */

.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.page-banner h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    line-height: 1.9;
    opacity: 0.75;
}

.footer-col a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.5;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Admin Styles ---------- */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--dark);
    padding: 2rem 0;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    color: var(--accent);
    font-size: 1.1rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.admin-sidebar a {
    display: block;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.admin-main {
    flex: 1;
    padding: 2rem 3rem;
    background: var(--light);
}

.admin-main h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th {
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover td {
    background: #f0f4ff;
}

.admin-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

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

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: #e53935;
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c62828;
}

.btn-edit {
    background: var(--primary-light);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    background: var(--primary);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* Login */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.login-box .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }

    .admin-sidebar h2 {
        width: 100%;
    }

    .admin-main {
        padding: 1.5rem;
    }
}