/*
Theme Name: orchestra-theme
Theme URI:  https://orchestramena.com
Author:      Orchestra / Aziz
Description: Full black premium theme using Orchestra brand identity.
Version:     1.0.2
Text Domain: orchestra-theme
Domain Path: /languages
*/

/* =========================================================
   ORCHESTRA THEME — GLOBAL DESIGN CONTROL VARIABLES
   Change these values to adjust the entire site design.
   ========================================================= */

:root {
    /* BRAND COLORS */
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: #b3b3b3;
    --color-accent: #00B8E6;
    --color-accent-strong: #0074E8;
    --color-accent-teal: #00E6CA;
    --color-border: rgba(255,255,255,0.08);

    /* TYPOGRAPHY */
    --font-heading: "Georgia", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --font-size-h1: 54px;
    --font-size-h2: 36px;
    --font-size-h3: 24px;
    --font-size-body: 16px;
    --line-height: 1.6;

    /* LAYOUT & SPACING */
    --container-width: 1180px;
    --section-padding: 80px;
    --gap-large: 40px;
    --gap-medium: 24px;
    --gap-small: 12px;

    /* HEADER CONTROLS */
    --header-height: 90px;
    --header-padding: 18px;
    --header-bg: rgba(0, 0, 0, 1);
    --header-bg-scrolled: rgba(0,0,0,0.85);
    --header-border: rgba(255,255,255,0.10);
    --header-blur: 6px;
    --header-shadow: none;

    /* LOGO CONTROLS */
    --logo-max-height: 60px;
    --logo-max-width: auto;

    /* NAVIGATION CONTROLS */
    --nav-gap: 28px;
    --nav-font-size: 15px;
    --nav-color: var(--color-text);
    --nav-color-hover: var(--color-accent-teal);
    --nav-hover-glow: 0 0 8px rgba(0,255,230,0.45);

    /* BUTTON CONTROLS */
    --btn-radius: 8px;
    --btn-padding: 10px 22px;
    --btn-font-size: 14px;
    --btn-gradient-start: #00E6CA;
    --btn-gradient-end: #0074E8;
    --btn-hover-opacity: 0.85;

    /* CARD CONTROLS */
    --card-bg: rgba(255,255,255,0.05);
    --card-bg-hover: rgba(255,255,255,0.10);
    --card-border: rgba(255,255,255,0.08);
    --card-radius: 14px;
    --card-padding: 24px;
    --card-transition: 0.3s;

    /* FOOTER CONTROLS */
    --footer-bg: #000000;
    --footer-border: rgba(255,255,255,0.07);
    --footer-text: #b3b3b3;

    /* MOBILE */
    --mobile-breakpoint: 768px;
    --mobile-padding: 16px;
    --mobile-nav-font-size: 17px;
    --mobile-nav-gap: 18px;
}

/* Global Reset & Base */
html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-body);
    line-height: var(--line-height);
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

/* NOTE: body text is muted by design; change to var(--color-text) if you want full white */
p, li, div, span {
    color: var(--color-text-muted);
}

.text-muted { color: #777; }

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: var(--header-padding) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 9999;
    transition: background 0.25s ease, padding 0.2s ease, border 0.25s ease;
    display: flex;
    align-items: center;
}

.site-header .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
}

#site-content {
    margin-top: calc(var(--header-height));
}

.site-header.scrolled {
    background: var(--header-bg-scrolled);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(var(--header-blur));
}

/* Logo */
.branding img.custom-logo,
.branding img {
    max-height: var(--logo-max-height) !important;
    width: var(--logo-max-width);
    height: auto;
    display: block;
}

/* Navigation */
nav.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--nav-gap);
    padding: 0;
    margin: 0;
    align-items: center;
}

nav.primary-navigation a {
    color: var(--nav-color);
    font-weight: 500;
    font-size: var(--nav-font-size);
    opacity: 0.95;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

nav.primary-navigation a:hover {
    opacity: 1;
    color: var(--nav-color-hover);
    text-shadow: var(--nav-hover-glow);
}

@media (max-width: var(--mobile-breakpoint)) {
    nav.primary-navigation ul {
        flex-wrap: wrap;
        gap: var(--mobile-nav-gap);
    }
}

/* Hero */
.hero {
    padding: calc(var(--section-padding) * 1.0) 0 calc(var(--section-padding) * 0.5);
    text-align: center;
}

.hero h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 14px;
}

.hero .lead {
    font-size: 20px;
    margin-bottom: 28px;
    color: #dcdcdc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: var(--btn-font-size);
    color: #000;
    background: linear-gradient(90deg, var(--btn-gradient-start), var(--btn-gradient-end));
    margin-right: 10px;
    transition: transform 0.18s ease, opacity 0.18s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: var(--btn-hover-opacity);
    transform: translateY(-1px);
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-medium);
    margin-top: 50px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    text-align: left;
    transition: transform var(--card-transition), background var(--card-transition);
}

.card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
}

/* Blog / Articles */
article {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

article h2 a { color: var(--color-text); }
article .text-muted { color: var(--color-text-muted); }

/* Footer (consolidated) */
.site-footer {
    background: #111;
    color: #fff;
    padding: 30px 0;
    border-top: 1px solid var(--footer-border);
}

.footer-inner { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:20px; align-items:start; }
.footer-logo { max-width:160px; display:block; margin-bottom:10px; }
.footer-col h4 { margin-bottom:10px; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col ul li { margin-bottom:8px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.06); margin-top:20px; padding-top:16px; text-align:center; font-size:13px; color:rgba(255,255,255,0.7); }

.footer-menu {
    list-style: none;
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0 0 10px 0;
}

.footer-menu a {
    color: var(--footer-text);
}

.footer-menu a:hover {
    color: var(--color-accent);
}

/* Pagination */
.pagination a,
.pagination span {
    color: var(--color-text);
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-right: 6px;
    border-radius: 6px;
}

.pagination .current {
    background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-strong));
    color: #000;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
}

textarea { min-height: 120px; }

input::placeholder,
textarea::placeholder { color: #999; }

input[type="submit"], button[type="submit"] {
    display: inline-block;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    background: linear-gradient(90deg, var(--btn-gradient-start), var(--btn-gradient-end));
    border: none;
    color: #000;
    cursor: pointer;
}

/* Gutenberg Fixes */
.wp-block-image img { border-radius: 12px; max-width:100%; height:auto; }

.wp-block-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    color: #ccc;
}

.wp-block-heading { color: var(--color-text); }

.wp-block-table table { border-collapse: collapse; }
.wp-block-table td,
.wp-block-table th {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px;
}

/* Anchor Offset Fix */
[id]:target::before {
    content: "";
    display: block;
    height: calc(var(--header-height));
    margin-top: calc(var(--header-height) * -1);
}

/* Helpers */
.text-center { text-align:center; }
.mt-16 { margin-top:16px; }

/* Responsive */
@media (max-width: 1024px) {
    :root { --container-width: 960px; }
}

@media (max-width: var(--mobile-breakpoint)) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 38px; }
    .site-header { height:auto; padding: calc(var(--header-padding) * 0.8); }
}

/* SOLUTION PAGE — GRID + SHRINK-TO-FIT IMAGES */
.solution-screenshots .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px 0;
}

.solution-screenshots .gallery-item { width: 100%; text-align: center; }

.solution-screenshots .gallery-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

/* Tablet: 2 per row */
@media (max-width: 992px) {
    .solution-screenshots .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
    .solution-screenshots .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* v0.2 additions - Hero carousel and related */
.hero-carousel {
    width: 50%;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    flex: 0 0 100%;
    transition: transform 0.45s cubic-bezier(.22,.9,.35,1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
}

.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }

.carousel-dots { text-align:center; margin-top:8px; }

/* Hero screenshot sizing: visually ~30% smaller (70% width) and centered */
.hero .hero-screenshot,
.hero-screenshot {
    width: 70%;
    max-width: 560px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Responsiveness for carousel */
@media (max-width:900px) {
    .hero-carousel { width: 90%; }
    .carousel-btn { padding:6px 8px; }
    .hero .hero-screenshot,
    .hero-screenshot { width: 90%; max-width: none; }
}

/* Traction screenshot scaling */
.traction-screenshot-img { width:50%; display:block; margin: 0 auto; height:auto; border-radius:8px; }
@media (max-width:900px){ .traction-screenshot-img { width:90%; }}

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items:start; }
.contact-details a { color: inherit; }
.contact-form-wrap form input, .contact-form-wrap form textarea {
    width:100%;
    padding:8px;
    margin-bottom:10px;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:4px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
}

@media (max-width:900px){ .contact-grid { grid-template-columns: 1fr; } }

/* Footer small-screen override */
@media (max-width:900px){ .footer-inner { grid-template-columns: 1fr; text-align:center; } }

/* Swiper fallback (if using Swiper) */
.hero .swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

/* End of cleaned stylesheet */
