/* GRO Agency Landing Page - Mobile-First Refactored Implementation */
/* Mobile-first responsive design with proper semantic structure */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: stratos-lights, sans-serif;
    font-weight: 200;
    background-color: #282624;
    color: #f9efe5;
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px; /* Minimum mobile width */
}

/* Base Typography - Mobile First */
h1, h2 {
    font-size: 38px;
    color: #f9efe5;
    margin-bottom: 1.0rem;
    font-family: stratos-lights, sans-serif;
    font-weight: 200;
    line-height: 1.2;
}

h1 {
    padding-bottom: 1rem;
}

h3 {
    font-size: 26px;
    color: #f9efe5;
    margin-bottom: 1rem;
    font-family: stratos-lights, sans-serif;
    font-weight: 200;
}

h4 {
    font-size: 28px;
    color: #f9efe5;
    font-family: stratos-lights, sans-serif;
    font-weight: 200;
    line-height: 1.0;
}

p {
    font-size: 18px;
    color: #fff;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 300;
    line-height: 1.44; /* ~26px at 18px, ~32px at 22px */
}

/* Container */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    /* padding: 0 1rem; */
}

/* Container with responsive padding for sections that need margins */
.container-padded {
    padding: 0; /* Mobile: no padding for full-width layout */
}

/* Tablet: moderate margins */
@media (min-width: 768px) {
    .container-padded {
        padding-left: 3rem; /* 48px */
        padding-right: 3rem;
    }
}

/* Desktop: generous but reasonable margins */
@media (min-width: 1024px) {
    .container-padded {
        padding-left: 5rem; /* 80px */
        padding-right: 5rem;
    }
}

/* Large desktop: maximum comfortable margins */
@media (min-width: 1400px) {
    .container-padded {
        padding-left: 8rem; /* 128px */
        padding-right: 8rem;
    }
}

/* Desktop Typography Overrides */
@media (min-width: 768px) {
    h1, h2 {
        font-size: 52px;
    }
    
    h1 {
        padding-bottom: 0;
    }
    
    h3 {
        font-size: 42px;
    }
    
    h4 {
        font-size: 44px;
    }
    
    p {
        font-size: 22px;
        font-weight: 200;
    }
}

/* Content Padding - Standard padding for text content sections */
.content-padded {
    padding-left: 1.5rem; /* Mobile: standard padding for readability */
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .content-padded {
        padding-left: 3rem; /* Desktop: matches case-study-text optimal width */
        padding-right: 3rem;
    }
}

/* Hero Container - Custom padding for hero section */
.hero-container {
    padding-left: 1.5rem; /* Mobile: slightly more than standard */
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .hero-container {
        padding-left: 2rem; /* Tablet: moderate hero padding */
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding-left: 4rem; /* Desktop: generous hero padding */
        padding-right: 4rem;
    }
}

/* Background Blur Elements */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.bg-blur-blue-lg {
    top: 10vh;
    left: -20vw;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background-image: url('./assets/bkg-blur-blue-lg-dt.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.bg-blur-orange-lg {
    top: 40vh;
    right: -25vw;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background-image: url('./assets/bkg-blur-orange-lg-dt.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
}

.bg-blur-blue-sm {
    top: 70vh;
    left: 10vw;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background-image: url('./assets/bkg-blur-blue-sm-dt.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

/* Main Layout */
.landing-page {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    min-height: 35vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    line-height: 32px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.hero-tagline {
    font-size: 15px; /* Mobile default */
    color: #e89a64;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 200;
    margin-bottom: 1rem;
}

/* .hero-headline styles now handled by h1 base typography */

/* Mobile line break control */
.mobile-break {
    display: block; /* Show on mobile by default */
}

.hero-description {
    font-size: 18px; /* Will be overridden by base p styles */
    color: #fff;
    max-width: 650px;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 300; /* Mobile default */
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 0;
    background-color: #444;
    margin: 2rem 0;
    width: 100vw;
    max-width: 1800px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Center portfolio when hitting max-width on ultra-wide screens */
@media (min-width: 1500px) {
    .portfolio-grid {
        width: 1500px;
        left: 50%;
        margin-left: -750px; /* Half of 1500px */
        margin-right: 0;
    }
    
    section.case-study-images {
        width: 1500px;
        left: 50%;
        margin-left: -750px; /* Half of 1500px */
        margin-right: 0;
        right: auto; /* Override the right: 50% from base */
    }
}

.portfolio-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 0;
    width: 100%;
}

.portfolio-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Portfolio - mobile defaults */
.portfolio-images .portfolio-desktop-only {
    display: none; /* Hidden on mobile by default */
}

.portfolio-images .mobile-only {
    display: block; /* Shown on mobile by default */
}

.portfolio-images .desktop-hidden {
    display: none; /* Hidden on mobile by default */
}

/* Section Headers */
.work-intro,
.services-intro {
    padding: 4rem 0;
    text-align: center;
}

.work-intro p,
.services-intro p {
    max-width: 800px;
    margin: 0 auto;
    /* Other properties inherited from base p typography */
}

/* Case Study Text Sections */
.case-study-text {
    padding: clamp(2rem, 3vw, 6rem) 0;
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
}

.case-study-text-content {
    text-align: center;
    padding: 0 1rem; /* Mobile: add padding back just for text readability */
}


.case-study-text-content p {
    color: rgb(249, 239, 229); /* Unique cream color for case studies */
    max-width: 600px;
    margin: 0 auto;
    /* Other properties inherited from base p typography */
}

/* Remove auto centering for Have-A-Ball only */
.case-study-ball-text .case-study-text-content p {
    margin: 0;
}

.case-study-images {
    display: flex;
    flex-direction: column; /* Mobile: stack vertically */
    gap: 0; /* Mobile: no gap between images */
    align-items: center;
    position: relative;
    padding: 1rem 0 0 0; /* Mobile: padding-top 1rem, no other padding for full-width images */
    width: 100vw;
    max-width: 1500px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.case-study-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1.3; /* Maintain 1168:900 aspect ratio */
    flex: 1 1 0; /* Allow images to shrink below their natural size */
    min-width: 0; /* Override any implicit minimums */
    max-width: 100vw; /* Prevent images from exceeding viewport */
    box-sizing: border-box;
}

/* Services & Process */
.services-process {
    padding: 1rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.services-column h2,
.process-column h2 {
    margin-bottom: 2rem;
    text-align: center; /* Mobile default */
    /* font properties now handled by base h2 typography */
}

/* Move services heading to align with list */
.services-column h2 {
    margin-left: 0; /* Mobile: no left margin */
}

.services-diagram {
    text-align: center;
    margin: 2rem 0;
}

.services-diagram-desktop {
    display: none;
}

.services-diagram-mobile {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.services-list {
    list-style: none;
    text-align: left; /* Mobile: keep bullets left-aligned */
    margin: 0 auto; /* Mobile: center the list block on page */
    /* padding-left: 1rem; Mobile: reduced padding since we're centering */
    max-width: 240px; /* Mobile: control width for better centering */
    font-size: 18px; /* Mobile default */
}

.services-list li {
    font-size: 18px; /* Mobile - will inherit from .services-list */
    color: #fff;
    margin: 1rem 0;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 200;
}

.services-list li:before {
    content: "•";
    color: #d7ac4a;
    margin-right: 0.5rem;
}

.process-steps {
    max-width: 600px;
    margin: 0 auto;
}

.process-step {
    margin-bottom: 2rem;
    text-align: left; /* Mobile: left align headings and content */
}

.process-step h4 {
    margin-bottom: 0.5rem;
    /* font properties now handled by base h4 typography */
}

.step-number {
    color: #e89a64;
}

/* .process-step p styles now handled by base p typography */

/* Forms */
.mobile-form-section {
    padding-top: 3rem;
}

/* Mobile hero form - shown on mobile by default */
.mobile-form-hero {
    display: block;
}

.contact-form {
    background-color: #CAE0E5;
    display: block; /* Mobile: block layout */
    padding: 3rem 1rem; /* Mobile: edge to edge padding */
    border-radius: 0; /* Mobile: no rounded corners */
    margin: 0; /* Mobile: edge to edge */
    max-width: none; /* Mobile: no width restriction */
}

.mobile-form-section .container {
    padding: 0; /* Mobile: no container padding for edge-to-edge */
    max-width: none;
}

.contact-form h3 {
    font-size: 38px;
    color: #2323D8;
    line-height: 1.3;
    text-align: left;
    margin: 0 auto 1.5rem auto;
    width: 80%;
}

.form-main {
    display: block; /* Mobile: stack form elements */
    margin-bottom: 1.5rem;
}

.form-inputs {
    display: block; /* Mobile: stack inputs */
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: center; /* Mobile: center form groups */
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #282624;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: left;
    width: 80%;
    margin: 0 auto 0.5rem auto;
}

.form-group input,
.form-group textarea {
    width: 80%; /* Mobile: narrower inputs */
    margin: 0 auto; /* Mobile: center inputs */
    padding: 0.75rem;
    border: 1px solid #282624;
    border-radius: 4px;
    font-size: 16px;
    font-family: trade-gothic-next, sans-serif;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
}

.btn-primary {
    width: 45%; /* Mobile: narrower button */
    margin: 1rem auto 0 auto; /* Mobile: center button */
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #2323d8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 200;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a1aa0;
}

/* Sticky Form - hidden on mobile by default */
.sticky-form {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background-color: #CAE0E5;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease;
}

/* Anchor sticky form to 1500px container edge on wide screens */
@media (min-width: 1500px) {
    .sticky-form {
        right: calc((100vw - 1500px) / 2 + 2rem);
    }
    
    .contact-fab {
        right: calc((100vw - 1500px) / 2 + 2rem) !important;
    }
}

.sticky-form.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

/* Contact FAB (Floating Action Button) */
.contact-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: auto;
    min-width: 160px;
    height: 60px;
    background-color: #2323d8;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    box-shadow: 0 4px 20px rgba(236, 236, 251, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-family: trade-gothic-next, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.contact-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(35, 35, 216, 0.4);
    background-color: #1a1aa0;
}

.contact-fab.hidden {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.contact-fab svg {
    width: 20px;
    height: 20px;
}

.contact-fab span {
    white-space: nowrap;
}

.form-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 28px;
    color: #707070;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-weight: 200;
}

.sticky-form h3 {
    font-size: 28px;
    color: #2323D8;
    line-height: 1.3;
    padding-top: 1rem; 
    margin-bottom: 1rem;
    font-family: stratos-lights, sans-serif;
}

.sticky-form .form-group {
    margin-bottom: 1rem;
}

.sticky-form .btn-primary {
    font-size: 16px;
    padding: 0.6rem 1rem;
    font-weight: 400;
}

/* Thank You Message */
.thank-you {
    display: none;
    text-align: center;
    color: #2323d8;
}

.thank-you.show {
    display: block;
}

.thank-you h4 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    font-family: stratos-lights, sans-serif;
}

.thank-you p {
    font-size: 14px;
    font-family: trade-gothic-next, sans-serif;
    font-weight: 200;
}

/* Footer */
.footer {
    padding: 2rem 0 3.5rem;
    margin-top: 0; /* Mobile: no top margin */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .footer-main {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.footer-logo {
    height: auto;
}

.footer-locations,
.footer-links {
    font-size: 16px;
    color: #e89a64;
    font-family: stratos-lights, sans-serif;
    font-weight: 200;
    letter-spacing: 0.02em;
}

.footer-copyright {
    font-size: 12px;
    color: #fff;
    font-family: trade-gothic-next, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.gro-highlight {
    text-transform: uppercase;
}

.social-link img {
    width: 20px;
    height: 20px;
    transition: all 0.2s;
}

/* Footer link hover effects */
.footer-links a {
    color: #e89a64;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: rgb(249, 239, 229);
}

.social-link:hover img {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Desktop Responsive Design */
@media (min-width: 768px) {
    /* Desktop Overrides for Mobile-First Styles */
    
    /* Hide mobile line break on desktop */
    .mobile-break {
        display: none;
    }
    
    /* Portfolio - show desktop images */
    .portfolio-images .portfolio-desktop-only {
        display: block;
    }
    
    .portfolio-images .mobile-only {
        display: none;
    }
    
    .portfolio-images .desktop-hidden {
        display: block;
    }
    
    /* Show sticky form on desktop */
    .sticky-form {
        display: flex;
    }
    
    /* Hide mobile hero form on desktop */
    .mobile-form-hero {
        display: none;
    }
    
    /* Desktop case study layout */
    .case-study-text-content {
        padding: 0 3rem;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .case-study-images {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        align-items: stretch;
    }
    
    .case-study-images img {
        flex: 1 1 0; /* Allow responsive scaling */
        min-width: 0; /* Override any implicit minimums */
        max-width: calc(1500px / 3); /* Each image takes 1/3 of 1500px max */
        box-sizing: border-box;
    }
    
    /* Services - desktop layout adjustments */
    .services-intro {
        padding-top: 6rem; /* Desktop: base 4rem + additional 2rem = 6rem total */
    }
    
    .services-list {
        font-size: 24px;
        text-align: left;
        margin-left: 2rem;
        max-width: 320px;
    }
    
    .services-list li {
        font-size: 24px;
    }
    
    /* Hero tagline desktop sizing */
    .hero-tagline {
        font-size: 18px;
    }
    
    /* Desktop form styling */
    .contact-form {
        border-radius: 8px;
        max-width: 1500px;
        padding: 3rem 4rem;
    }
    
    .mobile-form-section .container {
        padding: initial;
        max-width: 1500px;
        margin: 0 auto;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        margin: initial;
    }
    
    .form-group {
        text-align: initial;
    }
    
    .form-group label {
        text-align: initial;
        width: initial;
        margin: 0 0 0.5rem 0;
    }
    
    .footer {
        margin-top: 4rem;
    }
    
    /* Desktop form layout - wider, less tall, headline on left */
    .form-main {
        display: flex;
        gap: 3rem;
        align-items: center; /* Center headline with input fields */
        margin-bottom: 1.5rem;
    }
    
    .contact-form h3 {
        flex: 0 0 300px; /* Narrower width for tablet */
        margin-bottom: 0;
        text-align: left;
        font-size: 38px;
        line-height: 1.3;
        padding-right: 1.0rem;
        width: auto;
    }
    
    .form-inputs {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
    }
    
    .btn-primary {
        margin-left: auto; /* Push button to the right */
        margin-right: 0; /* Ensure full right alignment */
        width: auto;
        padding: 0.75rem 2rem;
        display: block;
        margin-top: 0;
    }
    
    /* Hero adjustments */
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
        justify-content: center; /* Center content horizontally on wide screens */
        max-width: 1200px; /* Prevent excessive stretching */
        margin: 0 auto; /* Ensure container itself is centered */
    }
    
    .hero-logo {
        width: 330px;
        height: 330px;
        order: -1;
    }
    
    .hero-text {
        flex: 1;
    }
    
    /* .hero-headline styles now handled by h1 base typography */
    
    .hero-tagline,
    .hero-description {
        text-align: left;
    }
    
    .hero-description {
        font-size: 24px;
    }
    
    /* Desktop portfolio image control - preserve original order */
    .portfolio-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Case studies - desktop styling */
    .case-study-text {
        padding: 4rem 0;
    }
    
    /* Las Gidi - left align text to container edge */
    .case-study-gidi-text .case-study-text-content {
        text-align: left;
        max-width: none;
        margin: 0 0 0 0; /* Remove auto centering, align left */
    }
    
    .case-study-gidi-text .case-study-text-content p {
        margin: 0;
    }
    
    /* Have-A-Ball - right positioned text, left-aligned content */
    .case-study-ball-text .case-study-text-content {
        text-align: left;
        margin: 0 0 0 auto; /* Push to right */
        max-width: 600px; /* Maintain readable width */
    }
    
    
    .case-study-text-content p {
        font-size: 20px;
    }
    
    /* Services grid - keep single column at tablet size, center content */
    .services-grid {
        justify-items: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-column h2,
    .process-column h2 {
        text-align: center;
    }
    
    /* Remove left margins that offset center alignment */
    .services-column h2 {
        margin-left: 0;
    }
    
    .process-steps {
        margin: 0 auto;
    }
    
    .services-diagram {
        text-align: center;
    }
    
    .services-diagram-desktop {
        display: none; /* Use mobile SVG for tablet */
    }
    
    .services-diagram-mobile {
        display: block;
    }
    
    /* Background blur adjustments for desktop */
    .bg-blur-blue-lg {
        top: 15vh;
        left: -15vw;
    }
    
    .bg-blur-orange-lg {
        top: 50vh;
        right: -20vw;
    }
    
    .bg-blur-blue-sm {
        top: 80vh;
        left: 15vw;
    }
}

/* Desktop: Services grid 2-column layout */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: initial;
        max-width: none;
        margin: initial;
    }
    
    .services-column {
        margin-left: 50px;
    }
    
    .services-column h2,
    .process-column h2 {
        text-align: left;
        /* font properties now handled by base h2 typography */
    }
    
    /* Restore left margins for desktop layout */
    .services-column h2 {
        margin-left: 3rem;
    }
    
    .services-list {
        text-align: left;
        margin-left: 3.5rem;
        max-width: 360px;
    }
    
    .services-list li {
        font-size: 24px;
    }
    
    .process-steps {
        margin: 0;
    }
    
    .services-diagram {
        text-align: left;
    }
    
    .services-diagram-desktop {
        display: block;
    }
    
    .services-diagram-mobile {
        display: none;
    }
    
    /* Restore wider form headline on desktop */
    .contact-form h3 {
        flex: 0 0 400px;
    }
}

/* Layout is now consistently mobile-first with desktop overrides */