/*
 eeviren - Canada Mining Industry Review
 Style: Editorial Magazine (Text-Only)
*/
:root {
 --font-serif: 'Lora', serif;
 --font-sans: 'Roboto', sans-serif;
 --color-text: #212121;
 --color-text-light: #5f5f5f;
 --color-background: #fdfdfd;
 --color-background-light: #f5f5f5;
 --color-border: #e0e0e0;
 --color-accent: #3b5998; /* A muted, serious blue */
}

/* BASE RESET & TYPOGRAPHY */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-sans);
 color: var(--color-text);
 background-color: var(--color-background);
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-serif);
 font-weight: 700;
 line-height: 1.2;
 margin-bottom: 1rem;
}

h1 {
 font-size: clamp(2.5rem, 8vw, 5rem);
 font-weight: 400;
}

h2 {
 font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h3 {
 font-size: 1.5rem;
}

p {
 margin-bottom: 1.5rem;
}

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

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

.container-editorial {
 max-width: 800px;
 margin: 0 auto;
 padding: 0 20px;
}

.bg-light {
 background-color: var(--color-background-light);
 border-top: 1px solid var(--color-border);
 border-bottom: 1px solid var(--color-border);
}

/* HEADER & MASTHEAD */
.header {
 width: 100%;
 background-color: var(--color-background);
 border-bottom: 1px solid var(--color-border);
 padding-bottom: 1rem;
}

.top-bar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0.5rem 20px;
 font-size: 0.8rem;
 color: var(--color-text-light);
 border-bottom: 1px solid var(--color-border);
}

.masthead {
 text-align: center;
 padding: 2rem 1rem;
}

.masthead-logo {
 font-family: var(--font-serif);
 font-size: 3rem;
 font-weight: 700;
 color: var(--color-text);
 letter-spacing: 1px;
}

.masthead-logo:hover {
 text-decoration: none;
}

.masthead-subtitle {
 font-family: var(--font-sans);
 font-size: 1rem;
 color: var(--color-text-light);
 margin-top: 0.5rem;
 margin-bottom: 0;
}

/* NAVIGATION */
.navigation {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
 display: flex;
 justify-content: center;
}

.nav-links {
 display: flex;
 list-style: none;
 gap: 30px;
}

.nav-links a {
 font-family: var(--font-sans);
 font-weight: 500;
 font-size: 0.95rem;
 color: var(--color-text);
 text-transform: uppercase;
 letter-spacing: 0.5px;
 padding-bottom: 5px;
 position: relative;
}

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

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

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background: var(--color-text);
 margin: 5px;
 transition: all 0.3s ease;
}

/* HERO SECTION */
.hero-editorial {
 padding: 4rem 0;
}

.hero-intro {
 font-family: var(--font-serif);
 font-size: 1.2rem;
 line-height: 1.8;
 color: var(--color-text-light);
}

.drop-cap {
 font-size: 4rem;
 font-weight: 700;
 float: left;
 line-height: 0.8;
 margin-right: 0.5rem;
 color: var(--color-text);
}

/* CONTENT SECTIONS */
.content-section {
 padding: 4rem 0;
}

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

.section-header-editorial h2 {
 margin-bottom: 0.5rem;
}

.section-header-editorial p {
 font-family: var(--font-serif);
 color: var(--color-text-light);
 font-size: 1.1rem;
 max-width: 600px;
 margin-left: auto;
 margin-right: auto;
}

.section-title-editorial {
 margin-bottom: 2rem;
 padding-bottom: 1rem;
 border-bottom: 1px solid var(--color-border);
}

.multi-column-layout {
 column-count: 2;
 column-gap: 40px;
}

.multi-column-layout p {
 break-inside: avoid-column;
}

.pull-quote {
 font-family: var(--font-serif);
 font-size: 1.5rem;
 font-style: italic;
 font-weight: 600;
 padding: 1.5rem 2.5rem;
 margin: 2rem auto;
 border-left: 3px solid var(--color-accent);
 color: var(--color-text);
 max-width: 90%;
}

.long-form-content p {
 font-size: 1.05rem;
 margin-bottom: 1.5rem;
}

.text-button {
 display: inline-block;
 font-weight: 700;
 text-transform: uppercase;
 font-size: 0.9rem;
 letter-spacing: 0.5px;
 margin-top: 1rem;
}

/* FOOTER */
.footer {
 background-color: var(--color-text);
 color: #a0a0a0;
 padding: 3rem 0;
 margin-top: 4rem;
 position: relative;
}

.footer-container-editorial {
 max-width: 800px;
 margin: 0 auto;
 text-align: center;
 padding: 0 20px;
}

.footer-masthead {
 font-family: var(--font-serif);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--color-background);
 margin-bottom: 1rem;
}

.footer-links-editorial {
 margin-bottom: 1.5rem;
}

.footer-links-editorial a {
 color: #a0a0a0;
 font-size: 0.9rem;
 margin: 0 0.5rem;
}
.footer-links-editorial a:hover {
 color: #fff;
}

.footer-separator {
 color: #5f5f5f;
}

.footer-contact-info, .footer-hours {
 font-size: 0.85rem;
 margin-bottom: 1rem;
 line-height: 1.5;
}

.footer-contact-info a, .footer-hours a {
 color: #a0a0a0;
}
.footer-contact-info a:hover, .footer-hours a:hover {
 color: #fff;
}

.footer-hours strong {
 color: #ccc;
}

.footer-copyright {
 font-size: 0.8rem;
 margin-top: 2rem;
 color: #707070;
}

.back-to-top {
 position: absolute;
 bottom: 20px;
 right: 20px;
 color: #a0a0a0;
 font-size: 0.8rem;
 font-weight: 500;
}

/* RESOURCE PAGE */
.resource-list .resource-item {
 padding: 1.5rem 0;
 border-bottom: 1px solid var(--color-border);
}

.resource-list .resource-item:last-child {
 border-bottom: none;
}

/* ABOUT PAGE */
.team-list {
 margin-top: 2rem;
}

.team-member-byline {
 padding: 1.5rem;
 margin-bottom: 1.5rem;
 border: 1px solid var(--color-border);
 border-left: 3px solid var(--color-accent);
 background-color: var(--color-background);
}
.team-member-byline h3 {
 margin-bottom: 0.25rem;
}
.team-member-byline .team-title {
 font-family: var(--font-serif);
 font-style: italic;
 color: var(--color-text-light);
 margin-bottom: 1rem;
}
.team-member-byline .team-bio {
 font-size: 0.95rem;
 margin-bottom: 0;
}

/* CONTACT PAGE */
.contact-page-layout {
 display: grid;
 grid-template-columns: 1fr;
 gap: 3rem;
}

@media (min-width: 768px) {
 .contact-page-layout {
 grid-template-columns: 1fr 1.5fr;
 }
}

.contact-details .contact-info-item {
 margin-bottom: 1.5rem;
}
.contact-details .contact-info-item strong {
 display: block;
 margin-bottom: 0.25rem;
}
.contact-details .contact-info-item p {
 margin-bottom: 0;
 line-height: 1.5;
 font-size: 0.95rem;
}
.contact-details .note {
 font-size: 0.85rem;
 font-style: italic;
 color: var(--color-text-light);
}

.contact-form .form-group {
 margin-bottom: 1.5rem;
}
.contact-form label {
 display: block;
 font-weight: 500;
 margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
 width: 100%;
 padding: 0.75rem 1rem;
 border: 1px solid var(--color-border);
 border-radius: 4px;
 font-family: var(--font-sans);
 font-size: 1rem;
 background-color: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--color-accent);
 box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.2);
}
.contact-form textarea {
 min-height: 150px;
 resize: vertical;
}

.checkbox-label {
 display: flex;
 align-items: flex-start;
 gap: 0.75rem;
 font-size: 0.85rem;
 color: var(--color-text-light);
}
.checkbox-label input[type="checkbox"] {
 margin-top: 4px;
 flex-shrink: 0;
}
.checkbox-label span {
 line-height: 1.4;
}

.submit-button {
 background-color: var(--color-accent);
 color: white;
 border: none;
 padding: 0.75rem 1.5rem;
 font-size: 1rem;
 font-weight: 500;
 border-radius: 4px;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

.submit-button:hover {
 background-color: #2f477a;
}
.text-center { text-align: center; }

/* Form validation styles */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
}

button:disabled {
 opacity: 0.7;
 cursor: not-allowed;
}
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}

@keyframes spin {
 to { transform: rotate(360deg); }
}

/* COOKIE BANNER */
#cookie-banner {
 display: none;
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--color-text);
 color: #e0e0e0;
 padding: 1rem;
 align-items: center;
 justify-content: center;
 gap: 1rem;
 z-index: 2000;
 text-align: center;
 flex-wrap: wrap;
}
#cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
}
#cookie-banner a {
 color: #fff;
 text-decoration: underline;
}
.cookie-buttons button {
 background-color: var(--color-accent);
 color: white;
 border: none;
 padding: 0.5rem 1rem;
 margin-left: 0.5rem;
 cursor: pointer;
 border-radius: 4px;
}
.cookie-buttons button:last-child {
 background-color: #6c757d;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
 .multi-column-layout {
 column-count: 1;
 }
 
 .nav-toggle {
 display: block;
 position: absolute;
 top: calc(50% - 13px);
 right: 20px;
 }
 .navigation {
 justify-content: flex-end;
 }

 .nav-links {
 position: fixed;
 bottom: -100%;
 left: 0;
 width: 100%;
 height: auto;
 flex-direction: column;
 background-color: var(--color-background);
 padding: 2rem;
 gap: 1rem;
 border-top: 1px solid var(--color-border);
 transition: bottom 0.4s ease-in-out;
 z-index: 1000;
 }
 
 .nav-links.active {
 bottom: 0;
 }
 
 .nav-links li {
 text-align: center;
 }
 .nav-links a {
 font-size: 1.2rem;
 }
 
 .top-bar { font-size: 0.7rem; }
 .masthead-logo { font-size: 2.5rem; }
}

@media (max-width: 480px) {
 .hero-editorial h1 { font-size: 2.2rem; }
 .drop-cap { font-size: 3.5rem; }
 body { font-size: 15px; }
}