/*
Theme Name: Carry on Woodworking
Theme URI: https://carryonwoodworking.com
Author: Artificer Guild
Author URI: https://carryonwoodworking.com
Description: A stylish Victorian-industrial Steampunk theme for woodworking guilds, makers, and artificers.
Version: 1.1.0
Text Domain: carry-on-woodworking
*/

/* 1. VARIABLES & BASE STYLES */
:root {
  --wood-dark: #1a0f08;
  --wood-panel: #27160d;
  --wood-border: #442413;
  --brass-bright: #f0cb64;
  --brass-base: #b38b2d;
  --brass-dark: #6a4f15;
  --copper: #c86a3b;
  --parchment: #f4edd8;
  --parchment-border: #cfbe9a;
  --text-dark: #23160e;
  --text-light: #ecdcc8;
}

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

body {
  background-color: var(--wood-dark);
  background-image: 
    radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.88) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 36px);
  color: var(--text-light);
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.6;
/*	background-image: url('https://worsworld.co.uk/Woodworking/wp-content/uploads/2026/09/dark-wood-background.jpg'); */
}

/* 2. STEAMPUNK UI ELEMENTS (Rivets & Parchment) */
.riveted-box {
  border: 3px solid var(--brass-base);
  background: var(--wood-panel);
  position: relative;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9), 0 8px 20px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  background-image: url('https://worsworld.co.uk/Woodworking/wp-content/uploads/2026/09/dark-wood-background.jpg');
  background-blend-mode: overlay;
  background-color: var(--wood-panel);
}

.riveted-box::before, .riveted-box::after {
  content: "•";
  color: var(--brass-bright);
  position: absolute;
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 0 3px #000;
}
.riveted-box::before { top: 4px; left: 8px; }
.riveted-box::after { bottom: 4px; right: 8px; }

.parchment-sheet {
  background: var(--parchment);
  color: var(--text-dark);
  padding: 3rem 2.5rem;
  border: 3px dashed var(--parchment-border);
  box-shadow: inset 0 0 15px rgba(110, 85, 48, 0.2);
  margin-top: 1rem;
}

/* 3. NEW 2-COLUMN / 2-ROW HEADER LAYOUT */
.steampunk-header {
    background: linear-gradient(180deg, #120904 0%, #25140b 100%);
    border-bottom: 4px solid var(--brass-base);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-main-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex; /* Creates Column 1 (Logo) and Column 2 (Data) */
    align-items: center; 
    gap: 35px;
}

/* Column 1: Logo */
.logo-column {
    flex-shrink: 0;
}

.logo-column img, 
.custom-logo-link img {
    width: 125px !important;
    height: 125px !important;
    border-radius: 50% !important;
    border: 4px solid var(--brass-base);
    background: var(--wood-panel);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    display: block;
    transition: transform 0.4s ease;
}

.logo-column:hover img {
    transform: rotate(10deg);
}

/* Column 2: Data (Stacks Title row over Menu row) */
.data-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

/* Row 1: Title */
.title-row {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--brass-bright);
    margin: 0;
    text-shadow: 2px 2px 4px #000;
}

.site-tagline {
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
}

/* Row 2: Menu Bar */
.menu-row {
    border-top: 1px solid rgba(179, 139, 45, 0.3);
    padding-top: 12px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-family: 'Special Elite', monospace;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: 0.3s;
}

.nav-list a:hover { color: var(--brass-bright); }

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brass-base);
    transition: width 0.3s;
}

.nav-list a:hover::after { width: 100%; }

/* --- Master Header Container --- */
.steampunk-header {
    background: linear-gradient(180deg, #120904 0%, #25140b 100%);
    border-bottom: 4px solid #b38b2d;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* --- The 2-Column Layout --- */
.header-main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;         /* Creates Column 1 and Column 2 */
    flex-direction: row;   /* Ensures side-by-side */
    align-items: center;   /* Centers logo vertically */
    gap: 25px;             /* Gap between logo and text */
}

/* COLUMN 1: LOGO STYLES */
.logo-column {
    flex-shrink: 0;        /* Stops logo from squashing */
}

/* Target the actual image and link generated by WordPress */
.logo-column img, 
.custom-logo-link img {
    width: 110px !important; 
    height: 110px !important;
    border-radius: 50% !important;
    border: 3px solid #b38b2d;
    background: #27160d;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: block;
}

/* COLUMN 2: DATA (Stacks rows vertically) */
.content-column {
    display: flex;
    flex-direction: column; /* Creates Row 1 and Row 2 */
    justify-content: center;
    flex-grow: 1;           /* Takes up remaining space */
}

/* ROW 1: TITLE AREA */
.title-row {
    margin-bottom: 10px;    /* Gap between title and menu */
}

.site-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.4rem;
    line-height: 1;
    color: #f0cb64;
    margin: 0;
    text-shadow: 2px 2px 4px #000;
}

.site-tagline {
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    color: #c86a3b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ROW 2: MENU AREA */
.menu-row {
    border-top: 1px solid rgba(179, 139, 45, 0.3); /* Brass divider line */
    padding-top: 10px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-family: 'Special Elite', monospace;
    color: #ecdcc8;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: #f0cb64;
}

/* MOBILE FIX: Stack them when screen is too narrow */
@media (max-width: 800px) {
    .header-main-layout {
        flex-direction: column;
        text-align: center;
    }
    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .logo-column img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* --- FOOLPROOF 2-COLUMN HEADER FIX --- */

.steampunk-header {
    background: linear-gradient(180deg, #120904 0%, #25140b 100%) !important;
    border-bottom: 4px solid #b38b2d !important;
    padding: 20px 0 !important;
}

.header-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex !important;      /* Forces 2 Columns */
    flex-direction: row !important;
    align-items: center !important; /* Centers logo vertically against the 2 rows */
    gap: 40px !important;
}

/* Column 1: Logo Fixes */
.logo-side-column {
    flex-shrink: 0 !important;
    width: 130px; /* Space reserved for logo */
}

/* Ensure WordPress Logo is circular and spans the height */
.logo-side-column img, 
.custom-logo-link img {
    width: 120px !important; 
    height: 120px !important;
    border-radius: 50% !important;
    border: 4px solid #b38b2d !important;
    background: #1a0f08 !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.7) !important;
    display: block !important;
}

/* Column 2: The text and menu stacked */
.text-and-menu-column {
    display: flex !important;
    flex-direction: column !important; /* Forces Title Row on top of Menu Row */
    flex-grow: 1;
    gap: 10px;
}

/* Row 1: Title & Tagline */
.brand-row {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Cinzel Decorative', cursive !important;
    font-size: 2.8rem !important;
    color: #f0cb64 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-shadow: 2px 2px 4px #000 !important;
}

.site-tagline {
    font-family: 'Special Elite', monospace !important;
    font-size: 1rem !important;
    color: #c86a3b !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Row 2: Menu Bar */
.navigation-row {
    border-top: 1px solid rgba(179, 139, 45, 0.4) !important;
    padding-top: 10px;
}

.steampunk-menu-list {
    list-style: none !important;
    display: flex !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.steampunk-menu-list a {
    font-family: 'Special Elite', monospace !important;
    color: #ecdcc8 !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    transition: 0.3s;
}

.steampunk-menu-list a:hover {
    color: #f0cb64 !important;
}

/* Mobile: Stack them */
@media (max-width: 850px) {
    .header-grid-container {
        flex-direction: column !important;
        text-align: center;
    }
    .steampunk-menu-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* --- THE MAIN CONTENT COLUMN --- */

.container {
    max-width: 1100px; /* This limits how wide the text can go */
    margin-left: auto;  /* These two lines center the column */
    margin-right: auto;
    padding: 0 20px;    /* Prevents text touching the edges on mobile */
    box-sizing: border-box;
}

/* Ensure the Hero section also respects the center column */
.hero {
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 20px;
}

/* If you are using sections on the home page, center them too */
section.container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}