/* ===================================
   SOMA Insights - Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --color-primary: #E89D2D;
    --color-primary-hover: #D08A1F;
    --color-text: #4A4A4A;
    --color-text-light: #6B6B6B;
    --color-heading: #3A3A3A;
    --color-white: #FFFFFF;
    --color-light: #F7F7F7;
    --color-dark: #5C5C5C;
    --color-dark-bg: #5A5A5A;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-heading);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem 0 1.5rem;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background-color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 3px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Mobile menu hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/chess.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(90, 75, 60, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0;
}

.hero-highlight {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    font-style: italic;
    margin: 0.25rem 0;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero .btn {
    margin-top: 1rem;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-white {
    background-color: var(--color-white);
}

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

.section-dark {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-reverse {
    direction: rtl;
}

.two-col-reverse > * {
    direction: ltr;
}

.col-image {
    display: flex;
    justify-content: center;
}

.section-image {
    border-radius: 4px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nomion-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.nomion-logo:hover {
    transform: scale(1.02);
}

/* Image Break */
.image-break {
    height: 350px;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===================================
   Process/How Section
   =================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 3rem;
}

.process-item {
    text-align: left;
}

.process-icon {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.process-item h3 {
    color: var(--color-heading);
}

.process-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===================================
   Testimonial Section
   =================================== */
.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: -1rem;
}

blockquote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.testimonial-author {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.author-name {
    font-weight: 500;
    margin: 0;
}

/* ===================================
   CTA Section
   =================================== */
.section-cta {
    position: relative;
    background-image: url('../images/tiles.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 100px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(232, 157, 45, 0.85);
}

.section-cta .container {
    position: relative;
    z-index: 1;
}

.section-cta h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.section-cta .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.section-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ===================================
   Contact Form
   =================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    padding-right: 20px;
}

.contact-intro h2 {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 32px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--color-light);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 40px;
    height: 40px;
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.contact-email {
    margin-top: 2rem;
    font-size: 0.95rem;
}

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

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 157, 45, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px 32px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-intro {
        padding-right: 0;
        text-align: center;
    }

    .contact-intro .divider {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: 1;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--color-white);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--color-text);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-logo {
    width: 50px;
    height: auto;
    margin: 0 auto 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col-reverse {
        direction: ltr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .process-item {
        text-align: center;
    }

    .process-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

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

    /* Mobile navigation */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav.nav-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }

    .nav a:last-child {
        border-bottom: none;
        margin-top: 10px;
    }

    .nav-cta {
        display: inline-block;
        width: auto;
        margin: 10px auto 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-highlight {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .image-break {
        height: 250px;
    }

    /* Fix images on mobile */
    .section-image {
        max-width: 100%;
    }

    blockquote {
        font-size: 1rem;
    }

    .section-cta h2 {
        font-size: 2rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

@media (max-width: 480px) {
    .hero-highlight {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}
