/* ============================================
   VIKING REMODELING SOLUTIONS
   Rugged Modern Luxury Theme
   ============================================ */

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

:root {
    /* Core Palette — Black & White dominant, Gold accent, Silver detail */
    --primary-dark: #0a0a0a;
    --secondary-dark: #141414;
    --tertiary-dark: #1e1e1e;
    --accent: #c9a84c;
    --accent-hover: #dfc06a;
    --accent-muted: #8b7a3a;
    --silver: #b0b0b0;
    --silver-light: #c8c8c8;
    --silver-dark: #808080;
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-body: #cccccc;
    --border-subtle: rgba(201, 168, 76, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-silver: rgba(176, 176, 176, 0.25);

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--primary-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
    color: var(--silver-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

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

.title-underline {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--silver), transparent);
    margin: 16px auto 24px;
}

.title-underline.left {
    margin-left: 0;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(12, 12, 12, 0.95);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.15em;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    transition: height 0.4s ease;
}

.navbar.scrolled .nav-logo-img {
    height: 45px;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    margin-bottom: 12px;
}

.leader-photo {
    width: 100%;
    height: auto;
    max-width: 380px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* Social Links in Nav */
.nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-light);
}

.social-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle .bar {
    width: 28px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--secondary-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12,12,12,0.3) 0%, rgba(12,12,12,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
}

.hero-logo {
    max-width: 500px;
    width: 85%;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.hero-tagline-top {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver-light);
    margin-bottom: 36px;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--silver-light), transparent);
    margin: 28px auto;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    font-style: normal;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PAGE HEADERS (subpages)
   ============================================ */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    background: var(--secondary-dark);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.04) 0%, transparent 70%);
}

.page-header-content {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    font-size: 3.5rem;
    letter-spacing: 0.15em;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-light);
    padding: 48px 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.service-stat {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   WHY VIKING SECTION
   ============================================ */
.why-viking {
    padding: var(--section-padding);
    background: var(--secondary-dark);
}

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

.why-content .section-title {
    text-align: left;
}

.why-content p {
    color: var(--text-body);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-silver);
    border-bottom: 1px solid var(--border-silver);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.why-image {
    position: relative;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 80px 0;
    background: var(--tertiary-dark);
    text-align: center;
    border-top: 1px solid var(--border-silver);
    border-bottom: 1px solid var(--border-silver);
}

.cta-banner h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.cta-banner p {
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ============================================
   ABOUT / LEADERSHIP
   ============================================ */
.about-leadership {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.leader-profile {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.leader-role {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.leader-name {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin: 8px 0 4px;
}

.leader-content p {
    color: var(--text-body);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Values Section */
.about-values {
    padding: var(--section-padding);
    background: var(--secondary-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.value-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.value-card p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   PORTFOLIO / GALLERY
   ============================================ */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

.portfolio-section.alt-bg {
    background: var(--secondary-dark);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(12, 12, 12, 0.9));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.gallery-overlay h3 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--section-padding);
    background: var(--primary-dark);
}

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

.contact-info h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-info > p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-detail a,
.contact-detail span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--secondary-dark);
    border: 1px solid var(--border-light);
    padding: 48px 40px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--primary-dark);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--primary-dark);
    color: var(--text-light);
}

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

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

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.image-placeholder {
    background: var(--tertiary-dark);
    border: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

.image-placeholder.portrait {
    min-height: 450px;
    width: 100%;
}

.image-placeholder.gallery {
    min-height: 100%;
    height: 100%;
    aspect-ratio: 4/3;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 0;
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    font-style: italic;
}

.footer-location {
    margin-top: 8px;
    font-style: normal !important;
    font-size: 0.85rem !important;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-logo {
        max-width: 340px;
    }

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

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image {
        order: -1;
    }

    .leader-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .leader-image {
        max-width: 380px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--secondary-dark);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-subtle);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Mobile Nav Toggle Animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero-logo {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 1.15rem;
    }

    .hero-tagline-top {
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Stats */
    .stats-row {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-overlay {
        transform: translateY(0);
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }

    .leader-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 220px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
}

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
