/* ========================================
   COMMON STYLES - Konrad Langenberg Portfolio
   ======================================== */

/* ========================================
   FONTS
   ======================================== */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Delicious Handrawn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/delicious-handrawn-latin.woff2') format('woff2');
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --deep-green: #135238;
    --pink: #e99ba3;
    --dark-blue: #35395c;
    --light-yellow: #e8e2c5;
    --yellow-gold: #eaaf4f;
    --accent-red: #c94a4a;
    --text-on-dark: #ffffff;
    --text-on-light: #1a1a1a;
    --text-muted-dark: rgba(255, 255, 255, 0.7);
    --text-muted-light: rgba(26, 26, 26, 0.7);
}

/* ========================================
   RESET & BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.handwritten { font-family: 'Delicious Handrawn', cursive; }

/* ========================================
   COMMON UTILITIES
   ======================================== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Common panel/section title styles */
.panel-title {
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Common description styles */
.panel-description {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Common card styles */
.card {
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

/* Common button base */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn svg { transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ========================================
   LOGO
   ======================================== */
.logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.7; }

/* ========================================
   HEADER
   ======================================== */
.header {
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ========================================
   BACK LINK (for subpages)
   ======================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--deep-green);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--deep-green);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--deep-green);
    color: white;
}

.back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover svg { transform: translateX(-3px); }

/* ========================================
   BACKGROUND TEXT DECORATION
   ======================================== */
.bg-text {
    position: fixed;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    z-index: 0;
    line-height: 0.8;
}

/* ========================================
   PAGE HEADER (for subpages)
   ======================================== */
.page-label {
    font-family: 'Delicious Handrawn', cursive;
    font-size: 1.4rem;
    color: var(--deep-green);
    margin-bottom: 0.5rem;
    transform: rotate(-2deg);
    display: inline-block;
}

.page-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--deep-green);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
}

/* ========================================
   MAIN CONTENT AREA (for subpages)
   ======================================== */
.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   CONTENT SECTIONS (for legal pages)
   ======================================== */
.content-section { margin-bottom: 2.5rem; }

.content-section h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    letter-spacing: -0.01em;
}

.content-section h2:first-child { margin-top: 0; }

.content-section h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    color: var(--text-muted-light);
    margin-bottom: 1rem;
}

.content-section a {
    color: var(--deep-green);
    text-decoration: none;
    border-bottom: 1.5px solid var(--yellow-gold);
    transition: border-color 0.3s ease;
}

.content-section a:hover { border-color: var(--deep-green); }

/* ========================================
   CONTACT CARD
   ======================================== */
.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-card p {
    margin-bottom: 0;
    color: var(--text-on-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted-light);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Generator note for legal pages */
.generator-note {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    opacity: 0.7;
    margin-top: 2rem;
}

.generator-note a { color: inherit; }

/* ========================================
   RESPONSIVE - COMMON
   ======================================== */
@media (max-width: 640px) {
    .header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .main { padding: 1.5rem 1.5rem 4rem; }

    .contact-card { padding: 1.25rem 1.5rem; }
}
