/* --- BASE REST & CORE TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Regular/Bold Variable */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-VariableFont_opsz,wght.woff2') format('truetype-variations');
}

/* Italic Variable */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('truetype-variations');
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-light: #ffffff;
    --text-muted: #8e8e93;
    --accent-orange: #ff6600;
    --gradient-warm: linear-gradient(90deg,rgba(207, 86, 0, 1) 0%, rgba(122, 53, 0, 1) 50%, rgba(71, 43, 0, 1) 100%);
    --site-padding: 10rem 6rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ------------------ NAVIGATION BAR -------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    text-decoration: none !important;

}

.logo a {
    text-decoration: none !important;
    color: white !important;
}

.logo a.active {
        color: white !important;
}
.logo span {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-light);
}

/* ------------------ UNIVERSAL BUTTONS -------- */
.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-nav {
    background: white;
    color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: black;
}

.btn-primary:hover {
    background-color: #e04f0f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 91, 20, 0.2);
}

/* --- Refined Hero Wrapper --- */
.hero-wrapper {
    background: var(--gradient-warm);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    padding: 14rem 6rem 8rem 6rem;
    
    /* Establish stacking context */
    position: relative;
    overflow: hidden;
    z-index: 1;
}


/* ----------------HERO IMAGE ----------------- */
.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background-image: url("images/guelph-marketing-web-design-services.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen; 
    opacity: 0.09;
}

.hero-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 80%;
    pointer-events: none;
    z-index: 3;
    background-image: url("images/our-lady-wireframe.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    mix-blend-mode: overlay;
    opacity: 0.75;
}

/* --- Content Containment Layer --- */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}
.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    color: var(--text-light);
}
/* --- Inner Layout Elements --- */
.greeting {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
h1 {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 6rem;
    color: var(--text-light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.service-item .number {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}
.service-item p {
    font-size: 0.95rem;
    font-weight: 600;
}
.hero-visual {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 450px;
}

/* ----------------BUTTONS ----------------- */

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-nav {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-nav:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}
.btn-primary {
    background-color: var(--accent-orange);
    color: black;
}
.btn-primary:hover {
    background-color: #e04f0f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 91, 20, 0.2);
}


/* ----------------PROCESS SECTION ----------------- */

.process-section {
    padding: 20px 20px;
    color: #fff;
    overflow: hidden;
}
.process-grid {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
}
.tracker-line {
    position: relative;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}



/* HOW IT WORKS SECTION */

.progress-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 0%;
    background: #b84600;
    transition: height 0.3s ease;
}
.process-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #a3a3a3;
    line-height: 1.6;
    margin: 0;
}
.step {
    padding-bottom: 60px;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}
.step.active {
    opacity: 1;
    transform: translateY(0);
}
.step-num {
    font-family: monospace;
    color: #b84600;
    font-size: 1rem;
    margin-bottom: 8px;
}
.step h3 { 
    font-size: 1.5rem;
    margin-bottom: 10px; 
}
.step p { 
    line-height: 1.6; 
    color: #a3a3a3; 
    font-size: 1rem; 
}



/* ----------------ABOUT SECTION  ----------------- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    padding: 7rem 6rem !important;
    max-width: 1440px;
    margin: 0 auto;
}
.accent-title {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1.5rem;
}
.about-left h2 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}
.about-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.about-right p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}
.about-right .sub-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}


/* ----------------SERVICES SECTION  ----------------- */
.services-section { 
    padding: 120px 20px; 
    max-width: 1440px;
    margin: 0 auto;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; 
    margin-top: 60px; 
}

.service-card { 
    position: relative;
    padding: 50px; 
    border: 1px solid rgba(184, 70, 0, 0.4);
    border-radius: 24px;
    box-shadow: 
        0 4px 15px rgba(184, 70, 0, 0.2),
        0 20px 60px rgba(184, 70, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover { 
    border-color: var(--accent-orange); 
    background: rgba(184, 70, 0, 0.02);
}

.card-id { 
    font-weight: 700;
    color: var(--accent-orange); 
    font-size: 0.8rem; 
    letter-spacing: 0.15rem;
}

.service-card h3 { 
    font-size: 1.8rem; 
    margin: 20px 0; 
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #a3a3a3;
    max-width: 90%; 
}
.card-footer { 
    margin-top: 30px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1rem; 
    color: #555; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding-top: 20px;
}
.card-icon-area {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}
.kpi-stat {
    font-size: 4rem;
    color: #fff;
    margin: 10px 0;
}
.stat-label {
    color: #b84600;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.mini-desc {
    color: #a3a3a3;
    font-size: 0.9rem;
    line-height: 1.4;
}



/* ----------------DEVICE RENDER SECTION  ----------------- */
.showcase-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.render-box { flex: 1; min-width: 300px; }
.content-box { flex: 1; }

.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-subtext { font-size: 1.1rem; color: #a3a3a3; line-height: 1.6; margin-bottom: 30px; }

/* Responsive Behavior */
@media (max-width: 900px) {
    .showcase-container {
        flex-direction: column; /* Stacks items vertically */
        text-align: center;
    }
    
    .floating-render {
        max-width: 250px; /* Shrinks the device to be proportionate */
        margin: 0 auto;
    }
}


/* ----------------PHILOSOPHY SECTION  ----------------- */

.philosophy-section {
    max-width: 1440px;
    padding: 100px 20px;
    color: #fff;
    margin: 0 auto;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    
}
.phil-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(184, 70, 0, 0.4);
    border-radius: 24px;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 
        0 4px 15px rgba(184, 70, 0, 0.2),
        0 20px 60px rgba(184, 70, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.phil-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card-icon {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.phil-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.phil-card p {
    color: #a3a3a3;
    line-height: 1.7;
    font-size: 1rem;
}


/* ----------------TECH STACK SECTION  ----------------- */
.tech-stack-section { 
    padding: 60px 20px; 
    text-align: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    
}
.stack-label { 
    color: #b84600; 
    font-family: monospace; 
    letter-spacing: 0.1rem; 
    margin-bottom: 30px; 
    
}
.stack-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; gap: 20px; 
    
}
.stack-item { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}




/* ----------------MOBILE RESPONSIVENESS ----------------- */


/* ----------------NAV BAR AND CORE PAGE ELEMENTS ----------------- */
/* --- Desktop CTA (Hide on Mobile) --- */
@media (max-width: 768px) {
    .nav-cta-desktop { display: none !important; }
}

/* --- Mobile CTA (Visible only in Drawer) --- */
.mobile-cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #b84600; /* Your brand orange */
    color: #fff !important;
    border-radius: 8px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    :root { --site-padding: 7rem 3rem; }
    .navbar { padding: 1.5rem 3rem; }
    .hero-wrapper { padding: 12rem 3rem 6rem 3rem; }
    h1 { font-size: 5rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 992px) {
    h1 { font-size: 4.2rem; }
    .hero-content { grid-template-columns: 1fr; gap: 4rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section { grid-template-columns: 1fr; gap: 4rem; }
    .about-left h2, .section-header h2 { font-size: 3rem; }
    .trusted-strip { flex-direction: column; gap: 3rem; text-align: center; padding: 4rem 3rem; }
    .logo-container { flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --site-padding: 5rem 1.5rem; }
    .navbar { padding: 1.2rem 1.5rem; }
    .nav-container { display: none; } /* Standard simplification for raw CSS mobile navigation */
    .hero-wrapper { padding: 10rem 1.5rem 5rem 1.5rem; border-radius: 40px; }
    h1 { font-size: 3.2rem; letter-spacing: -1.5px; margin-bottom: 4rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .modal-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
}

/* Hide the element on mobile devices */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}


/* ----------------PHILOSOPHY SECTION MOBILE RESPONSIVENESS ----------------- */
@media (max-width: 768px) {
    .philosophy-section { padding: 60px 20px; }
    .phil-card { padding: 30px; }
}

/* ----------------PROCESS SECTION MOBILE RESPONSIVENESS ----------------- */
@media (min-width: 768px) {
    .process-grid { grid-template-columns: 60px 1fr; gap: 40px; }
    .step h3 { font-size: 2rem; }
    .step { padding-bottom: 100px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .process-header { margin-bottom: 40px; }
}

/* ----------------SERVICES SECTION MOBILE RESPONSIVENESS ----------------- */
@media (max-width: 768px) {
    .services-section { 
        padding: 60px 20px; /* Reduces vertical space on mobile */
    }
    
    .services-grid { 
        grid-template-columns: 1fr; /* Forces a single column */
        gap: 20px; /* Tighter gap for better flow */
    }
    
    .service-card { 
        padding: 30px; /* Adjusts internal card padding */
    }
    
    .service-card h3 { 
        font-size: 1.5rem; /* Scales down header for smaller viewports */
    }
}


