﻿/*
Theme Name: Energy
Theme URI: https://www.energyindustry.com/
Author: Your Name
Author URI: https://www.energyindustry.com/
Description: A clean, Gutenberg-first multipurpose theme inspired by Avada-style layouts, without a custom builder. Built for use with the WordPress block editor.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energy
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, full-site-editing-ready, block-styles
*/

/* Reset-ish basics */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---- Energy Base Design Tokens ---- */
:root {
    /* Main brand colours */
    --color-primary:   #1E5F74;   /* Teal/blue‑green – main brand colour */
    --color-secondary: #2D2D2D;   /* Dark gray – text, nav, UI */
    --color-accent:    #FF6600;   /* Strong orange – CTAs, highlights */

    /* Neutrals */
    --color-background: #ffffff;
    --color-surface:    #f7f7f9;
    --color-muted:      #6b7280;
    --color-border:     #e5e7eb;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                   sans-serif;
    --font-size-base: 1rem;
    --font-weight-normal: 400;
    --font-weight-bold:   600;

    /* Layout & shapes */
    --site-max-width: 1200px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-surface);
}

/* Layout wrapper */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.site-footer {
    flex-shrink: 0;
}

/* Header */
.site-header {
    background: var(--color-primary);
    color: #ffffff;
    padding: var(--space-md) var(--space-lg);
}

.site-header .site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.site-title {
    margin: 0;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Navigation */
.main-navigation {
    margin-top: 0.75rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.main-navigation a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    border-color: var(--color-accent);
}

/* Content */
.entry-header h1,
.entry-header h2 {
    margin-top: 0;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

/* Sidebar layout */
.content-area {
    width: 100%;
}

.layout-has-sidebar {
    display: block;
}

@media (min-width: 900px) {
    .layout-has-sidebar {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: var(--space-lg);
        align-items: flex-start;
    }

    .content-area {
        width: 100%;
    }

    .widget-area {
        background: #ffffff;
        padding: var(--space-md);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--color-border);
    }
}

/* Posts & archive lists */
.post {
    background: #ffffff;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    background: var(--color-surface);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #9ca3af;
    padding: var(--space-lg) var(--space-md);
}

.site-footer a {
    color: #f9fafb;
    text-decoration: none;
}

/* Gutenberg wide/full alignment support */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Basic block spacing */
.wp-block-group,
.wp-block-columns,
.wp-block-cover {
    margin-bottom: var(--space-lg);
}

/* ---- Full‑Width Template Layout ---- */
body.full-width-template .site-content {
    max-width: 100%;
    padding: var(--space-lg);
}

body.full-width-template .layout-has-sidebar {
    display: block;
}

body.full-width-template .widget-area {
    display: none;
}