/* =========================================
   BlueStream Projects — Website Styles
   ========================================= */

:root {
    --navy: #1A2D4A;
    --navy-deep: #0F1C2E;
    --gold: #C4A265;
    --gold-light: #D4B87A;
    --white: #FFFFFF;
    --off-white: #F5F3EF;
    --light: #E8E0D0;
    --text: #2A2A2A;
    --text-light: #6B6B6B;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Calibri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Navigation ---- */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 28, 46, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 28px;
    width: auto;
    opacity: 0;
    transition: opacity 0.4s;
}

#navbar.scrolled .nav-logo img {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy-deep);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mobile-menu a:hover {
    opacity: 1;
}

/* ---- Hero ---- */

#hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/london_dusk.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 28, 46, 0.55) 0%,
        rgba(15, 28, 46, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.hero-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 2rem;
}

.hero-subtitle {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

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

.hero-scroll span {
    color: var(--white);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gold);
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 0.7; transform: scaleY(1); }
}

/* ---- Sections ---- */

.section {
    padding: 8rem 0;
}

.section-dark {
    background: var(--navy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-label.light {
    color: var(--gold);
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 2.5rem;
}

h2.light {
    color: var(--white);
}

/* ---- About ---- */

.about-text {
    max-width: 720px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-text p.light {
    color: rgba(255,255,255,0.85);
}

/* ---- Image Break ---- */

.image-break {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Approach ---- */

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.approach-card {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(196, 162, 101, 0.3);
}

.approach-number {
    font-family: var(--font-heading);
    font-variant-numeric: lining-nums;
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.approach-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

.approach-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

/* ---- Cases / Portfolio ---- */

.portfolio-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 720px;
    margin-bottom: 4rem;
}

.case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.case-reverse {
    direction: rtl;
}

.case-reverse > * {
    direction: ltr;
}

.case-image {
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case:hover .case-image img {
    transform: scale(1.03);
}

.case-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    background: var(--off-white);
}

.case-reverse .case-content {
    background: var(--white);
}

.case-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.case-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.2rem;
}

.case-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.portfolio-cta {
    text-align: center;
    padding: 4rem 0 0;
}

.portfolio-cta p {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* ---- Team ---- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 1rem;
}

.team-member {
    text-align: center;
}

.team-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}

.team-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 3rem;
    font-style: italic;
}

/* ---- Contact ---- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.contact-email {
    font-size: 1.05rem;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.contact-email:hover {
    color: var(--gold);
}

.form-status a {
    color: inherit;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--light);
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-status {
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 1.4em;
}

.form-status.success {
    color: var(--navy);
}

.form-status.error {
    color: #A33A3A;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: none;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
    border-radius: 3px;
}

.btn:hover {
    background: var(--gold);
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---- Footer ---- */

footer {
    background: var(--navy-deep);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.footer-details {
    text-align: right;
}

.footer-details p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

.footer-statement {
    max-width: 560px;
    margin-left: auto;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .footer-statement { margin-left: 0; }
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

.footer-legal {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.6rem;
}

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    h2 { font-size: 2.4rem; }
    .approach-grid { grid-template-columns: 1fr; gap: 0; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .case { grid-template-columns: 1fr; min-height: auto; }
    .case-reverse { direction: ltr; }
    .case-image { height: 350px; }
    .case-content { padding: 3rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }
    .nav-inner { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    h2 { font-size: 2rem; }
    .hero-logo { height: 44px; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.1em; }
    .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .case-content { padding: 2.5rem 1.5rem; }
    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-details { text-align: center; }
    .image-break { height: 40vh; min-height: 250px; }
}

/* ---- Keyboard focus ---- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Legal pages ---- */

.legal-page #navbar {
    background: rgba(15, 28, 46, 0.95);
    backdrop-filter: blur(10px);
}

.legal-page .nav-logo img {
    opacity: 1;
}

.legal {
    padding-top: 12rem;
}

.legal h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.legal-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 3.5rem;
}

.legal-body {
    max-width: 720px;
}

.legal-body h2 {
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.1rem;
}

.legal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.1rem;
}

.legal-body li {
    margin-bottom: 0.4rem;
}

.legal-body a,
.legal-back a,
.footer-legal a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color 0.3s;
}

.legal-body a:hover,
.legal-back a:hover,
.footer-legal a:hover {
    color: var(--gold);
}

.legal-back {
    margin-top: 4rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .legal { padding-top: 8rem; }
    .legal h1 { font-size: 2rem; }
    .legal-body h2 { font-size: 1.2rem; margin-top: 2.5rem; }
}
