/*
Theme Name: Ratio Studios One Page
Theme URI: https://ratiostudios.co.uk
Author: Ratio Studios
Author URI: https://ratiostudios.co.uk
Description: Professional dark theme for Ratio Studios - live sound, audio production and studio services.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ratio-studios
*/

/* ============================================================
   SELF-HOSTED FONTS
============================================================ */
@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('fonts/AvenirNextLTPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --black:       #000000;
    --charcoal:    #111111;
    --dark-grey:   #1a1a1a;
    --mid-grey:    #2a2a2a;
    --border:      #333333;
    --text-muted:  #888888;
    --text-light:  #cccccc;
    --white:       #ffffff;
    --accent:      #ffffff;

    --font-heading: 'Bebas Neue', sans-serif;
    --font-body:    'Avenir Next LT Pro', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

    --max-width: 1200px;
    --section-pad: 100px 0;
    --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--white); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--white);
    text-transform: uppercase;
}

h1 { font-size: clamp(56px, 9vw, 120px); }
h2 { font-size: clamp(40px, 6vw, 72px); }
h3 { font-size: clamp(28px, 4vw, 48px); }
h4 { font-size: clamp(20px, 3vw, 32px); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.label {
    font-family: 'Avenir Next LT Pro', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section { padding: var(--section-pad); }

.section-header {
    margin-bottom: 64px;
}

.section-header .label {
    display: block;
    margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--white);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--white);
    color: var(--black);
    opacity: 1;
}

.btn-filled {
    background: var(--white);
    color: var(--black);
}

.btn-filled:hover {
    background: transparent;
    color: var(--white);
}

/* ============================================================
   CONTACT BAR
============================================================ */
.header-contact-bar {
    background: var(--charcoal);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
}

.header-contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.header-contact-inner a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color var(--transition);
}

.header-contact-inner a:hover {
    color: var(--white);
    opacity: 1;
}

.header-contact-divider {
    color: var(--border);
    font-size: 12px;
}

@media (max-width: 768px) {
    .header-contact-bar { display: none; }
}

/* ============================================================
   NAVIGATION
============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding: 0 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.current-menu-item {
    color: var(--white);
    opacity: 1;
}

.nav-cta {
    border: 1px solid rgba(255,255,255,0.3) !important;
    padding: 8px 20px;
    color: var(--white) !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--black) !important;
    opacity: 1 !important;
}

.nav-contact-info {
    display: flex;
    align-items: center;
}

.nav-contact-info a {
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    color: var(--text-light) !important;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-contact-info a::before {
    font-size: 14px;
    opacity: 0.6;
}

.nav-contact-info.nav-phone a::before {
    content: '↗';
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.44 2 2 0 0 1 3.6 1.27h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.84a16 16 0 0 0 6 6l.94-.94a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 21.73 16z'%3E%3C/path%3E%3C/svg%3E");
}

.nav-contact-info.nav-email a::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.nav-contact-info a:hover {
    color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--transition);
}

/* ============================================================
   HERO
============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
    padding-top: 88px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.15) 100%),
        linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to right, black 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--text-muted);
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 32px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   INTRO STRIP
============================================================ */
.intro-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    background: var(--charcoal);
    overflow: hidden;
}

.intro-strip-inner {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    justify-content: space-between;
}

.strip-stat {
    text-align: center;
    flex-shrink: 0;
}

.strip-stat .num {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--white);
    display: block;
    line-height: 1;
}

.strip-stat .desc {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.strip-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ============================================================
   ABOUT SECTION (HOME PREVIEW)
============================================================ */
.about-preview {
    background: var(--charcoal);
}

.about-preview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-photo-display {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
}

.about-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.about-tag {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    color: var(--black);
    padding: 16px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================================
   SERVICES SECTION
============================================================ */
.services { background: var(--black); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--charcoal);
    padding: 48px 40px;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0;
    background: var(--white);
    transition: height 0.4s ease;
}

.service-card:hover {
    background: var(--dark-grey);
}

.service-card:hover::before {
    height: 100%;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 72px;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   CLIENTS SECTION
============================================================ */
.clients { background: var(--charcoal); }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 80px;
}

.client-card {
    background: var(--dark-grey);
    padding: 32px;
    transition: background var(--transition);
}

.client-card:hover {
    background: var(--mid-grey);
}

.client-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.client-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Projects */
.projects-list {
    border-top: 1px solid var(--border);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 200px 160px;
    gap: 40px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--transition);
    cursor: default;
}

.project-item:hover {
    padding-left: 12px;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--white);
    letter-spacing: 0.05em;
}

.project-client {
    font-size: 13px;
    color: var(--text-muted);
}

.project-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact { background: var(--black); }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item .label {
    display: block;
    margin-bottom: 6px;
}

.contact-detail-item a,
.contact-detail-item span {
    font-size: 16px;
    color: var(--white);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--charcoal);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255,255,255,0.5);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group select option {
    background: var(--charcoal);
}

.form-submit {
    text-align: left;
}

/* ============================================================
   ABOUT PAGE
============================================================ */
.page-hero {
    padding: 160px 0 80px;
    background: var(--black);
    border-bottom: 1px solid var(--border);
}

.page-hero .label {
    display: block;
    margin-bottom: 20px;
}

.about-story {
    background: var(--charcoal);
}

.about-story-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.about-story-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5em;
}

.about-story-aside {
    border-left: 1px solid var(--border);
    padding-left: 40px;
}

.aside-block {
    margin-bottom: 48px;
}

.aside-block h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.aside-block ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aside-block ul li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 12px;
    position: relative;
}

.aside-block ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    opacity: 0.4;
    font-size: 11px;
}

.team-section {
    background: var(--black);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    border: 1px solid var(--border);
    padding: 40px;
}

.team-card h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.team-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.footer-brand img {
    height: 48px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.7;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .about-preview-inner { gap: 48px; }
    .contact-inner { gap: 48px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 64px 0; }
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }

    .nav-menu { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--black);
        padding: 40px 24px;
        gap: 0;
        border-top: 1px solid var(--border);
        z-index: 999;
    }
    .nav-menu.open a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

    .nav-hamburger { display: flex; }
    .nav-contact-info { display: none; }

    .hero-content { padding: 0 24px; }
    .intro-strip-inner { gap: 32px; flex-wrap: wrap; justify-content: center; }
    .strip-divider { display: none; }

    .about-preview-inner { grid-template-columns: 1fr; }
    .about-tag { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-story-inner { grid-template-columns: 1fr; }
    .about-story-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 40px; }

    .project-item { grid-template-columns: 1fr 1fr; }
    .project-type { display: none; }

    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .hero-scroll { display: none; }
}
