/*
Theme Name: My Custom Theme
Author: Your Name
Description: A custom theme for Analogcut Mastering.
Version: 3.0
*/

/* --- CSS Variables --- */
:root {
    --bg-color: #F2F2F2;
    --text-color: #2D2D2D;
    --accent-color: #7c4178;
    --hover-color: #62345f;
    --card-bg-color: #FFFFFF;
    --font-primary: 'Oswald', sans-serif; 
    --font-secondary: 'Roboto Condensed', sans-serif;
}

/* --- General Reset & Base Styles (Global) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 1.5px; 
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.3;
    text-transform: uppercase; 
    letter-spacing: 2.5px;
}
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 2.2rem; margin-bottom: 20px; }
h4 { font-size: 1.4rem; margin-bottom: 15px; color: var(--accent-color); }
p { margin-bottom: 1rem; }
section { padding: 80px 0; overflow: hidden; }

/* --- Header & Navigation (Global) --- */
.main-header { background-color: var(--bg-color); padding: 20px 0; }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 85px; display: block; }
.navigation-menu { display: flex; align-items: center; }
.main-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.main-links a, .social-links a {
    font-family: var(--font-primary); text-decoration: none; color: var(--text-color);
    font-weight: 300; letter-spacing: 2.5px; text-transform: uppercase; transition: color 0.3s ease;
}
.main-links a:hover { color: var(--accent-color); }
.social-links { display: flex; align-items: center; gap: 25px; margin-left: 30px; }
.social-links img { height: 22px; width: auto; display: block; transition: opacity 0.3s ease; }
.social-links a:hover img { opacity: 0.7; }

/* --- Buttons (Global) --- */
.btn {
    display: inline-block; padding: 12px 30px; background-color: var(--accent-color); color: #fff;
    text-decoration: none; font-weight: 300; font-family: var(--font-primary); border: 2px solid var(--accent-color);
    transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 2.5px;
}
.btn:hover { background-color: var(--hover-color); border-color: var(--hover-color); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-color); border: 2px solid var(--accent-color); }
.btn-secondary:hover { background-color: var(--accent-color); color: #fff; }

/* --- Footer (Global) --- */
.main-footer {
    background-color: var(--bg-color); text-align: center; padding: 30px 0; letter-spacing: 1.5px;
}
.main-footer p{ color: var(--text-color); margin-bottom: 5px; }
.main-footer a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.main-footer a:hover { color: var(--accent-color); }

/* ========================================================
   HOMEPAGE STYLES (page-id-13)
   ======================================================== */
.page-id-13 .hero-content, .page-id-13 .services-grid, .page-id-13 .portfolio-link-wrapper, .page-id-13 #clients .container > h2, 
.page-id-13 #clients .container > p, .page-id-13 #clients .client-columns, .page-id-13 #contact .contact-columns, .page-id-13 #contact h2 {
    position: relative; z-index: 1;
}
.page-id-13 #hero { padding: 80px 0; min-height: auto; }
.page-id-13 #hero .container { display: flex; justify-content: flex-end; }
.page-id-13 .hero-content { text-align: right; max-width: 60%; }
.page-id-13 #hero h1 { font-size: 3rem; letter-spacing: 5px; }
.page-id-13 #hero .subtitle { font-size: 1.2rem; text-transform: none; margin: 20px 0 30px 0; }
.page-id-13 .scroll-arrow { text-align: right; margin-top: 30px; }
.page-id-13 .scroll-arrow a { display: inline-block; padding: 10px; }
.page-id-13 .scroll-arrow svg { width: 20px; height: 20px; stroke: var(--accent-color); stroke-width: 2px; fill: none; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.page-id-13 #services { padding-top: 180px; }
.page-id-13 #services .services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.page-id-13 #services .service-card { background-color: var(--card-bg-color); padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; }
.page-id-13 #services .service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.page-id-13 .portfolio-link-wrapper { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.page-id-13 .portfolio-link-wrapper .btn { min-width: 240px; text-align: center; }
.page-id-13 #clients { background-color: white; text-align: left; padding-bottom: 250px; }
.page-id-13 #clients h2, .page-id-13 #clients > .container > p, .page-id-13 #clients .client-column h4, .page-id-13 #clients .client-column p { text-shadow: 0 0 5px rgba(255,255,255,0.8), 0 0 10px rgba(255,255,255,0.6); }
.page-id-13 #clients h2 { text-align: left; }
.page-id-13 .client-columns { display: flex; gap: 40px; margin-top: 30px; }
.page-id-13 .client-column { flex: 1; }
.page-id-13 .client-column p { line-height: 1.6; font-size: 1.1rem; color: #666; }
.page-id-13 #contact { text-align: center; }
.page-id-13 .contact-columns { display: flex; gap: 40px; margin-top: 30px; }
.page-id-13 .contact-column { flex: 1; padding: 30px; background: var(--card-bg-color); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.page-id-13 .contact-column a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
.page-id-13 .contact-column a:hover { text-decoration: underline; }
.page-id-13 .image-sliver { position: absolute; width: 60px; background-image: url('https://www.analogcutmastering.com/wp-content/uploads/2025/07/analogcut_studio_bw-scaled.jpg'); background-size: cover; z-index: 0; opacity: 0; transform: translateY(100px); transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.page-id-13 .image-sliver.visible { opacity: 1; transform: translateY(0); }
.page-id-13 .interactive-sliver-container { position: absolute; z-index: 2; cursor: pointer; }
.page-id-13 .interactive-sliver-container::before, .page-id-13 .interactive-sliver-container::after { content: ''; position: fixed; opacity: 0; pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.page-id-13 .interactive-sliver-container::before { top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 1000; }
.page-id-13 .interactive-sliver-container::after { top: 50%; left: 50%; width: 90vw; height: 90vh; max-width: 900px; max-height: 700px; background-image: url('https://www.analogcutmastering.com/wp-content/uploads/2025/07/analogcut_studio_color-scaled.jpg'); background-size: cover; background-position: center; border-radius: 4px; z-index: 1001; transform: translate(-50%, -50%) scale(0.95); }
.page-id-13 .interactive-sliver-container:hover::before, .page-id-13 .interactive-sliver-container:hover::after { opacity: 1; }
.page-id-13 .interactive-sliver-container:hover::after { transform: translate(-50%, -50%) scale(1); }
.page-id-13 .sliver-1 { top: -80px; left: 20%; height: 700px; background-position: center; }
.page-id-13 .sliver-2 { bottom: 50%; right: 15%; height: 400px; background-position: 80% 50%; }
.page-id-13 .sliver-3 { top: 20%; left: 10%; height: 450px; background-position: 35% 50%; }
.page-id-13 .sliver-4 { bottom: -200px; left: 30%; width: 80px; height: 300px; background-position: 50% 80%; }
.page-id-13 .sliver-5 { top: -150px; right: 5%; height: 600px; background-position: 60% 20%; }

/* ========================================================
   IMPRESSUM PAGE STYLES (page-id-19)
   ======================================================== */
.page-id-19 .impressum-content { background-color: var(--card-bg-color); padding: 40px; max-width: 800px; margin: 0 auto; text-align: center; }
.page-id-19 .impressum-content p { margin-bottom: 20px; }
.page-id-19 .impressum-content strong { font-weight: bold; color: var(--text-color); font-family: var(--font-primary); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 5px; }
.page-id-19 .impressum-content .note { font-style: italic; color: #666; font-size: 0.9rem; }

/* ========================================================
   SHARED STYLES FOR SERVICES, PRICES, STUDIO
   ======================================================== */
.page-id-23 .page-intro, .page-id-21 .page-intro, .page-id-26 .page-intro { text-align: center; padding: 60px 0 0 0; }
.page-id-23 .page-intro h2, .page-id-21 .page-intro h2, .page-id-26 .page-intro h2 { margin-bottom: 20px; }
.page-id-23 .page-intro p.subtitle, .page-id-21 .page-intro p.subtitle { max-width: 700px; margin: 0 auto 30px auto; font-size: 1.1rem; }
.page-id-23 .sub-nav, .page-id-21 .sub-nav, .page-id-26 .sub-nav { background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.page-id-23 .sub-nav ul, .page-id-21 .sub-nav ul, .page-id-26 .sub-nav ul { display: flex; justify-content: center; list-style: none; gap: 30px; margin: 0; padding: 0; }
.page-id-23 .sub-nav a, .page-id-21 .sub-nav a, .page-id-26 .sub-nav a { text-decoration: none; color: var(--text-color); font-family: var(--font-primary); text-transform: uppercase; letter-spacing: 2px; transition: color 0.3s ease; }
.page-id-23 .sub-nav a:hover, .page-id-21 .sub-nav a:hover, .page-id-26 .sub-nav a:hover { color: var(--accent-color); }
.page-id-23 .quote-section, .page-id-21 .quote-section { text-align: center; padding: 80px 0; background-color: var(--card-bg-color); }
.fade-in-image { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-image.is-visible { opacity: 1; transform: translateY(0); }

/* ========================================================
   SERVICES PAGE STYLES (page-id-23)
   ======================================================== */
.page-id-23 .service-detail-section { border-bottom: 1px solid #e0e0e0; }
.page-id-23 .service-detail-section:last-of-type { border-bottom: none; }
.page-id-23 h3 { text-align: left; }
.page-id-23 .service-layout { display: flex; gap: 60px; align-items: center; }
.page-id-23 .service-text-col, .page-id-23 .service-image-col { flex: 1; }
.page-id-23 .service-image-col img { width: 100%; height: auto; display: block; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.page-id-23 .service-text-col h4 { font-size: 1.2rem; margin-top: 30px; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; }
.page-id-23 .service-text-col ul { list-style: none; padding-left: 0; margin-top: 20px; }
.page-id-23 .service-text-col li { padding-left: 20px; position: relative; margin-bottom: 10px; }
.page-id-23 .service-text-col li::before { content: 'â€º'; position: absolute; left: 0; top: -2px; color: var(--accent-color); font-weight: bold; font-size: 1.2rem; }
.page-id-23 .service-detail-section:nth-child(even) .service-layout { flex-direction: row-reverse; }

/* ========================================================
   PRICES PAGE STYLES (page-id-21)
   ======================================================== */
.page-id-21 .pricing-detail-section { padding-top: 40px; border-bottom: 1px solid #e0e0e0; }
.page-id-21 .pricing-detail-section:last-of-type { border-bottom: none; }
.page-id-21 h3 { text-align: center; }
.page-id-21 .pricing-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; background-color: var(--card-bg-color); box-shadow: 0 5px 25px rgba(0,0,0,0.07); }
.page-id-21 .pricing-table td { padding: 20px; text-align: left; border-bottom: 1px solid #e0e0e0; }
.page-id-21 .pricing-table td.service-description { font-size: 0.9rem; color: #666; padding-top: 0; }
.page-id-21 .pricing-table .service-name { font-weight: bold; }
.page-id-21 .pricing-table td.service-price { font-family: var(--font-primary); font-size: 1.5rem; text-align: right; vertical-align: top; }
.page-id-21 .pricing-table tr:last-child td { border-bottom: none; }
.page-id-21 .pricing-table .sub-item td, .page-id-21 .pricing-table .tier-item td { padding-left: 40px; }
.page-id-21 .pricing-table .tier-item td:first-child { font-weight: bold; }
/* This rule makes the titles for Add-Ons and Notes purple */
.page-id-21 .pricing-table .addon-title td,
.page-id-21 .pricing-table .notes-title td {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    padding-top: 30px;
    border-bottom: none;
    color: var(--accent-color); /* This adds the purple color back */
}

/* This rule correctly styles the intro text sections in the table */
.page-id-21 .pricing-table .section-intro td {
    font-weight: normal;
    text-transform: none; /* This was also corrected */
    font-size: 1rem;
    padding-top: 30px;
    border-bottom: none;
}
.page-id-21 .pricing-table .section-intro td { text-transform: none; font-weight: normal; }
.page-id-21 .pricing-table a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
.page-id-21 .pricing-table a:hover { text-decoration: underline; }
.page-id-21 .pricing-grid-wrapper { overflow-x: auto; }
.page-id-21 .pricing-grid-table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: center; }
.page-id-21 .pricing-grid-table th, .page-id-21 .pricing-grid-table td { padding: 15px; border: 1px solid #e0e0e0; }
.page-id-21 .pricing-grid-table th { font-family: var(--font-primary); font-size: 1rem; letter-spacing: 1.5px; background-color: #f9f9f9; }
.page-id-21 .pricing-grid-table td:first-child { font-weight: bold; background-color: #f9f9f9; }

/* ========================================================
   STUDIO PAGE STYLES (page-id-26)
   ======================================================== */
.page-id-26 h3 { text-align: center; }
.page-id-26 .mission-statement { text-align: center; padding: 40px 0; }
.page-id-26 .mission-statement p { font-family: var(--font-primary); font-size: 1.8rem; letter-spacing: 2px; line-height: 1.5; max-width: 800px; margin: 0 auto; color: var(--accent-color); }
.page-id-26 #about-studio { padding-top:0; }
.page-id-26 .studio-info { display: flex; gap: 50px; align-items: center; }
.page-id-26 .studio-info .text-content, .page-id-26 .studio-info .image-content { flex: 1; }
.page-id-26 .studio-info img { width: 100%; height: auto; display: block; }
.page-id-26 .team-section { background-color: var(--card-bg-color); }
.page-id-26 .team-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.page-id-26 .team-member { flex: 1; min-width: 300px; max-width: 350px; text-align: center; }
.page-id-26 .team-member img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 5px solid var(--bg-color); }
.page-id-26 .team-member h4 { font-size: 1.6rem; margin-bottom: 5px; }
.page-id-26 .team-member .title { font-family: var(--font-secondary); font-style: italic; color: #666; margin-bottom: 15px; text-transform: none; }
.page-id-26 .contact-button-wrapper { text-align: center; margin-top: 50px; }
.page-id-26 .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.page-id-26 .gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


/* --- Responsive Design (Global & Specific) --- */
@media (max-width: 1100px) {
    .page-id-26 .team-member { flex-basis: 40%; }
}
@media (max-width: 992px) {
    .page-id-13 .image-sliver { display: none; }
    .page-id-26 .gallery-grid { 
    column-count: 3; 
    column-gap: 15px; 
}
}
@media (max-width: 768px) {
    .main-nav, .navigation-menu { flex-direction: column; gap: 15px; }
    .main-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .social-links { margin-left: 0; }
    h2, .page-id-13 #clients h2, .page-id-21 h3, .page-id-23 h3, .page-id-26 h3, .page-id-26 h4 { text-align: center; }
    /* Homepage Responsive */
    .page-id-13 .hero-content { max-width: 100%; text-align: center; }
    .page-id-13 #hero .container { justify-content: center; }
    .page-id-13 #hero h1 { font-size: 2.2rem; letter-spacing: 2.5px; }
    .page-id-13 .scroll-arrow { text-align: center; }
    .page-id-13 #services .services-grid { grid-template-columns: 1fr; }
    .page-id-13 .portfolio-link-wrapper { flex-direction: column; align-items: center; }
    .page-id-13 .portfolio-link-wrapper .btn { width: 80%; min-width: unset; text-align: center; }
    .page-id-13 #clients { padding-bottom: 100px; }
    .page-id-13 #clients > .container > p, .page-id-13 #clients .client-column h4 { text-align: center; }
    .page-id-13 #clients .client-column p { text-align: justify; }
    .page-id-13 .client-columns, .page-id-13 .contact-columns { flex-direction: column; }
    /* Services Page Responsive */
    .page-id-23 .service-layout, .page-id-23 .service-detail-section:nth-child(even) .service-layout { flex-direction: column; }
    .page-id-23 .service-image-col { margin-top: 30px; }
    /* Studio Page Responsive */
    .page-id-26 .studio-info, .page-id-26 .team-grid { flex-direction: column; align-items: center; }
  .page-id-26 .gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    break-inside: avoid;
}
    /* Shared Sub-Nav Responsive */
    .page-id-23 .sub-nav ul, .page-id-21 .sub-nav ul, .page-id-26 .sub-nav ul { flex-direction: column; gap: 10px; align-items: center; }
}
/* ========================================================
   Justify Text on Services & Studio Pages
   ======================================================== */
.page-id-23 .service-text-col p,
.page-id-26 .studio-info .text-content p,
.page-id-26 .team-member p {
    text-align: justify;
}
/* ========================================================
   TABLEPRESS STYLING FOR PRICES PAGE (page-id-21)
   ======================================================== */

/* General styling for all tables on the Prices page */
.page-id-21 .tablepress {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto; /* Add some space between tables */
    border-collapse: collapse;
    background-color: var(--card-bg-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.page-id-21 .tablepress td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.page-id-21 .tablepress tr:last-child td {
    border-bottom: none;
}

/* Style the service name and description within a single cell */
.page-id-21 .tablepress .column-1 div:first-child {
    font-weight: bold;
}
.page-id-21 .tablepress .column-1 div:last-child {
    font-size: 0.9rem;
    color: #666;
}

/* Style the price column for the LIST tables (e.g., Mastering, Mixing) */
.page-id-21 .tablepress:not(.tablepress-id-4) .column-2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    text-align: right;
    color: var(--accent-color); /* <-- This makes the price numbers purple */
}
/* ========================================================
   SPECIFIC STYLING FOR DUBPLATE PRICING GRID (page-id-21)
   ======================================================== */

/* IMPORTANT: If your dubplate TablePress ID is not 4,
   replace 'tablepress-id-4' below with your actual ID.
*/
.page-id-21 .tablepress-id-4 {
    min-width: 700px; /* For better layout on smaller screens */
}

/* General styles for all cells in the dubplate grid */
.page-id-21 .tablepress-id-4 th,
.page-id-21 .tablepress-id-4 td {
    text-align: center; /* Center-align all text in THIS table */
    border: 1px solid #e0e0e0;
    padding: 15px;
    font-family: var(--font-secondary); /* Resets font from the list style */
    font-size: 1rem;                 /* Resets font size */
}

/* Header row styling */
.page-id-21 .tablepress-id-4 thead th {
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 1.5px;
    background-color: #f9f9f9;
}

/* First column styling ("Copies", "1", "2", etc.) */
.page-id-21 .tablepress-id-4 .column-1 {
    font-weight: bold;
    background-color: #f9f9f9;
}
/* ========================================================
   UPDATED STYLING FOR PRICING TABLES (page-id-21)
   ======================================================== */

/* --- Indent Specific Rows in Price Tables --- */

/* MASTERING TABLE (ID 1) - Sub-item rows */
.page-id-21 .tablepress-id-1 .row-2 td,
.page-id-21 .tablepress-id-1 .row-3 td {
    padding-left: 40px !important; /* The !important tag ensures this overrides other padding */
}

/* MIXING TABLE (ID 3) - Tiered-item rows */
.page-id-21 .tablepress-id-3 .row-2 td,
.page-id-21 .tablepress-id-3 .row-3 td,
.page-id-21 .tablepress-id-3 .row-4 td,
.page-id-21 .tablepress-id-3 .row-6 td,
.page-id-21 .tablepress-id-3 .row-7 td,
.page-id-21 .tablepress-id-3 .row-8 td {
    padding-left: 40px !important;
}


/* --- Style Special Title Rows --- */
/* Reminder: You may still need to update the .row-X numbers in this section */

/* MASTERING TABLE (ID 1) - "Add-Ons" title row */
.page-id-21 .tablepress-id-1 .row-4 td { /* Example: Assumes "Add-Ons" is row 5 */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    border-bottom: none; /* Removes the line underneath the title */
    padding-top: 30px;
}
/* ========================================================
   FINAL STUDIO PAGE GALLERY STYLES (page-id-26) - REVISED BREAKPOINTS
   ======================================================== */

/* This creates the 3-column grid on desktop */
.page-id-26 .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* This styles the images within the grid */
.page-id-26 .gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Responsive styles for the gallery with updated breakpoints */
@media (max-width: 800px) { /* <-- Changed from 992px */
    /* 2 columns on tablets */
    .page-id-26 .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 500px) { /* <-- Changed from 768px */
    /* 1 column on mobile */
    .page-id-26 .gallery-grid {
        grid-template-columns: 1fr; 
    }
}

/* Responsive styles for the gallery */
@media (max-width: 992px) {
    /* 2 columns on tablets */
    .page-id-26 .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    /* 1 column on mobile */
    .page-id-26 .gallery-grid {
        grid-template-columns: 1fr; 
    }
}