/* ============================================
   FOUNDMARK STUDIOS - GLOBAL STYLES
   ============================================ */

:root {
    --primary: #C36B43;
    --secondary: #D7B88A;
    --dark: #202622;
    --light: #F5F7FB;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: white;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   CONTAINER
   ============================================ */

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #A85432;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(195, 107, 67, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 108px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.logo-image {
    width: 260px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    margin-left: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-btn {
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

@media (max-width: 1024px) {
    .navbar-container {
        height: 92px;
    }

    .logo-image {
        width: 220px;
        max-height: 84px;
    }

    .hamburger {
        display: flex;
    }

    .nav-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 92px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        display: none;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-btn {
        margin: 0;
    }

    .navbar-container > .nav-btn {
        width: auto;
        flex-shrink: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F6F3EC 0%, #FFFFFF 68%);
}

.hero-title span {
    display: block;
    color: var(--primary);
}

::selection {
    color: #fff;
    background: var(--primary);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-trust {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
}

.browser-mockup {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInRight 0.8s ease;
}

.browser-header {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
}

.browser-content {
    height: 300px;
    padding: 30px;
    position: relative;
    background: linear-gradient(135deg, #F6F3EC 0%, #FFFFFF 100%);
}

.website-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.glow-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .browser-mockup {
        animation: fadeInUp 0.8s ease;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn,
    .page-cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 100px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E0F2FF, #D4EDFF);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more:hover {
    transform: translateX(5px);
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E0F2FF, #D4EDFF);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
    padding: 100px 0;
    background: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #F0F4FF 0%, #F0F0F0 100%);
    overflow: hidden;
    position: relative;
}

.placeholder-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mockup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-header {
    height: 40px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    opacity: 0.3;
}

.mockup-line {
    height: 15px;
    background: #D1D5DB;
    border-radius: 3px;
    opacity: 0.5;
}

.mockup-line.short {
    width: 70%;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.product {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    opacity: 0.3;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.menu-item {
    height: 30px;
    background: #E5E7EB;
    border-radius: 4px;
    opacity: 0.5;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.service-item {
    height: 25px;
    background: #D1D5DB;
    border-radius: 4px;
    opacity: 0.5;
}

.logo-display {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.logo-variations {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.logo-variations::before,
.logo-variations::after {
    content: '';
    width: 50px;
    height: 50px;
    background: #E5E7EB;
    border-radius: 8px;
    opacity: 0.5;
}

.brand-elements {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.5;
}

.color-swatch:nth-child(1) { background: var(--primary); }
.color-swatch:nth-child(2) { background: var(--secondary); }
.color-swatch:nth-child(3) { background: #999; }

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.portfolio-info h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.portfolio-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
    padding: 100px 0;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.timeline-connector {
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), transparent);
}

.timeline-item:last-child .timeline-connector {
    display: none;
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .timeline-connector {
        left: 29px;
        top: 60px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-page .about-content {
    display: block;
    max-width: 850px;
    margin: 0 auto;
}

.about-page .about-text h1 {
    margin-bottom: 30px;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-section {
    min-height: 60vh;
}

.page-cta,
.timeline-duration {
    max-width: 760px;
    margin: 60px auto 0;
    padding: 36px;
    border-radius: 12px;
    background: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.page-cta h2,
.timeline-duration h2 {
    margin-bottom: 12px;
    color: var(--dark);
}

.page-cta p,
.timeline-duration p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.timeline-duration {
    background: var(--light);
}

.timeline-duration strong {
    color: var(--primary);
}

.section-action {
    text-align: center;
    margin-top: 36px;
}

.process-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.process-overview > div {
    padding: 26px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.process-overview span {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
}

.process-overview h3 {
    margin: 10px 0;
}

.process-overview p {
    color: var(--text-light);
}

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

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 600;
    margin-right: 8px;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
    padding: 100px 0;
    background: var(--light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark), #1a2347);
    color: white;
}

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

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-secondary {
    background: white;
    border-color: white;
    color: var(--dark);
}

.cta .btn-secondary:hover {
    background: transparent;
    color: white;
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 100px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light);
    padding: 50px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group button {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

.form-note a {
    color: #8a4429;
    overflow-wrap: anywhere;
}

.form-honeypot {
    display: none;
}

.contact-form > button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.form-status {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status:empty {
    margin-top: 0;
}

.form-status[data-state="success"] {
    color: #24553a;
}

.form-status[data-state="error"] {
    color: #9b2525;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-buttons .btn,
    .cta-buttons .btn,
    .page-cta .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .why-choose {
        padding: 60px 0;
    }
    
    .portfolio {
        padding: 60px 0;
    }
    
    .process {
        padding: 60px 0;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .faq {
        padding: 60px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }

    .process-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-cta,
    .timeline-duration {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-overview {
        grid-template-columns: 1fr;
    }

    .navbar-container {
        padding: 0 12px;
    }

    .logo-image {
        width: 160px;
    }

    .navbar-container > .nav-btn {
        display: none;
    }

    .nav-btn {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 86px;
    }

    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .navbar-container {
        height: 80px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .logo-image {
        width: clamp(150px, 45vw, 175px);
        max-height: 66px;
    }

    .hamburger {
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .nav-menu {
        top: 80px;
        padding: 8px 18px 16px;
        box-shadow: 0 12px 20px rgba(10, 14, 39, 0.08);
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 8px;
    }

    .navbar-container > .nav-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.82rem;
        width: auto;
        flex-shrink: 0;
    }

    .hero {
        padding: 52px 0 44px;
    }

    .hero .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        animation: none;
    }

    .hero-title {
        max-width: 15ch;
        margin: 0 auto 16px;
        font-size: clamp(2rem, 8.5vw, 2.65rem);
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .hero-subtitle {
        max-width: 38ch;
        margin: 0 auto 24px;
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .hero-buttons {
        width: min(100%, 360px);
        margin: 0 auto 20px;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn,
    .cta-buttons .btn,
    .page-cta .btn {
        min-height: 50px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-trust {
        font-size: 0.84rem;
        line-height: 1.6;
        letter-spacing: 0.04em;
    }

    .hero-visual {
        width: min(100%, 460px);
        margin: 0 auto;
    }

    .browser-mockup {
        animation: none;
        border-radius: 10px;
    }

    .browser-header {
        padding: 9px 12px;
    }

    .browser-dot {
        width: 9px;
        height: 9px;
    }

    .browser-content {
        height: 176px;
        padding: 18px;
    }

    .glow-circle {
        width: 94px;
        height: 94px;
        right: 12px;
        bottom: 10px;
        opacity: 0.12;
        animation: none;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: clamp(1.8rem, 7.5vw, 2.2rem);
        line-height: 1.18;
        letter-spacing: -0.025em;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .services,
    .why-choose,
    .portfolio,
    .process,
    .about,
    .pricing,
    .faq,
    .cta,
    .contact {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .services-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .services-grid {
        max-width: 520px;
        margin: 0 auto;
    }

    .service-card {
        padding: 26px 22px;
        text-align: center;
        border-color: var(--border);
        border-radius: 14px;
    }

    .service-icon {
        width: 54px;
        height: 54px;
        margin: 0 auto 16px;
    }

    .service-card h2,
    .service-card h3 {
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .service-card p {
        margin-bottom: 8px;
        line-height: 1.65;
    }

    .learn-more {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 4px auto 0;
    }

    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .section-action {
        margin-top: 24px;
    }

    .section-action .btn,
    .portfolio-footer .btn,
    .pricing-card > .btn {
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
        border-radius: 50%;
    }

    .benefit-card h3 {
        margin-bottom: 6px;
        font-size: 1.15rem;
    }

    .benefit-card p {
        max-width: 36ch;
        margin: 0 auto;
        line-height: 1.65;
    }

    .portfolio-grid {
        max-width: 520px;
        margin: 0 auto 28px;
    }

    .portfolio-card {
        border-radius: 14px;
        transition: box-shadow 0.2s ease;
    }

    .portfolio-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .portfolio-image {
        height: 190px;
    }

    .portfolio-info {
        padding: 20px;
    }

    .portfolio-info h2,
    .portfolio-info h3 {
        font-size: 1.15rem;
    }

    .portfolio-description {
        font-size: 0.95rem;
    }

    .process-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .process-overview > div {
        padding: 20px;
    }

    .timeline {
        max-width: 560px;
    }

    .timeline-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .timeline-marker {
        align-items: flex-start;
    }

    .timeline-number {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .timeline-content h2,
    .timeline-content h3 {
        margin: 2px 0 6px;
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .timeline-connector {
        left: 22px;
        top: 46px;
        height: 24px;
    }

    .about-page .about-content {
        max-width: 560px;
    }

    .about-page .about-text h1 {
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .about-page .about-text .btn {
        min-height: 50px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pricing-grid {
        max-width: 520px;
        margin: 0 auto 28px;
    }

    .pricing-card {
        padding: 30px 24px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .faq-grid {
        gap: 10px;
    }

    .faq-question {
        min-height: 56px;
        padding: 16px;
        gap: 14px;
        text-align: left;
        line-height: 1.4;
    }

    .faq-answer p {
        padding: 16px;
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .cta-content h2 {
        font-size: clamp(1.8rem, 7.5vw, 2.2rem);
        line-height: 1.2;
    }

    .cta-content p {
        margin-bottom: 24px;
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .cta-buttons {
        width: min(100%, 360px);
        margin: 0 auto;
        gap: 12px;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select {
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 132px;
    }

    .contact-form > .btn {
        min-height: 50px;
        width: 100%;
    }

    .footer {
        padding: 42px 0 18px;
        text-align: center;
    }

    .footer-container {
        padding: 0 18px;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 8px;
    }

    .footer-section a {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.88rem;
    }

    .service-card,
    .portfolio-card,
    .pricing-card,
    .faq-item,
    .faq-question,
    .btn,
    .learn-more {
        transition-duration: 0.18s;
    }
}


/* IronTap Payments case study */
.portfolio-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
}

.portfolio-card-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.portfolio-case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 700;
}

.portfolio-case-link span {
    transition: transform 0.2s ease;
}

.portfolio-card-link:hover .portfolio-case-link span,
.portfolio-card-link:focus-visible .portfolio-case-link span {
    transform: translateX(4px);
}

.case-study-hero {
    padding: 76px 0 82px;
    color: white;
    background: radial-gradient(ellipse at 90% 10%, rgba(215, 184, 138, 0.22), transparent 36%), linear-gradient(130deg, #202622 0%, #31372f 100%);
}

.case-study-hero-inner { max-width: 960px; }
.case-study-back { display: inline-block; margin-bottom: 52px; color: rgba(255,255,255,.78); text-decoration: none; }
.case-study-back:hover { color: white; }
.case-study-eyebrow { margin-bottom: 12px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.case-study-hero .case-study-eyebrow { color: #e3b394; }
.case-study-eyebrow span { padding: 0 8px; }
.case-study-hero h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.02; letter-spacing: -.045em; }
.case-study-lede { max-width: 720px; color: rgba(255,255,255,.78); font-size: 1.18rem; line-height: 1.8; }
.case-study-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.case-study-hero .btn-secondary { color: white; border-color: rgba(255,255,255,.55); }
.case-study-hero .btn-secondary:hover { color: var(--dark); background: white; }
.case-study-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.case-study-tags span { padding: 8px 13px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .85rem; }
.case-study-intro { padding: 90px 0; }
.case-study-intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.case-study-intro h2, .case-study-cta h2 { max-width: 500px; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
.case-study-intro-grid > div:last-child p { margin-bottom: 18px; color: var(--text-light); font-size: 1.06rem; line-height: 1.85; }
.case-study-highlights { padding: 82px 0 92px; background: var(--light); }
.case-study-highlights .section-header { margin-bottom: 42px; }
.case-study-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-study-points article { padding: 30px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.case-study-points article > span { display: block; margin-bottom: 25px; color: var(--primary); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.case-study-points h3 { margin-bottom: 10px; font-size: 1.25rem; }
.case-study-points p { color: var(--text-light); line-height: 1.75; }
.case-study-gallery { padding: 90px 0; }
.case-study-gallery .section-header { margin-bottom: 36px; }
.case-study-shot { overflow: hidden; margin: 0 0 38px; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.case-study-shot img { display: block; width: 100%; height: auto; }
.case-study-shot figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; }
.case-study-shot figcaption > span { color: var(--primary); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.case-study-shot figcaption strong { font-size: 1.08rem; }
.case-study-shot figcaption p { margin-top: 3px; color: var(--text-light); }
.case-study-shot figcaption a { color: var(--primary); font-weight: 700; text-decoration: none; }
.case-study-shot figcaption a:hover { text-decoration: underline; }
.case-study-cta { padding: 84px 0; color: white; text-align: center; background: var(--dark); }
.case-study-cta .case-study-eyebrow { color: #e3b394; }
.case-study-cta h2 { max-width: none; margin: 0 auto 14px; }
.case-study-cta p:not(.case-study-eyebrow) { max-width: 650px; margin: 0 auto 26px; color: rgba(255,255,255,.75); }

@media (max-width: 760px) {
    .case-study-hero { padding: 55px 0 62px; }
    .case-study-back { margin-bottom: 38px; }
    .case-study-intro { padding: 64px 0; }
    .case-study-intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .case-study-highlights, .case-study-gallery { padding: 64px 0; }
    .case-study-points { grid-template-columns: 1fr; }
    .case-study-points article { padding: 24px; }
    .case-study-shot figcaption { grid-template-columns: auto 1fr; padding: 18px; }
    .case-study-shot figcaption a { grid-column: 2; }
    .case-study-cta { padding: 64px 0; }
}


@media (max-width: 480px) {
    .case-study-page .navbar-container > .nav-btn {
        display: none;
    }
}

/* Homeloansbymarco portfolio preview */
.mortgage-mockup { display: grid; place-items: center; overflow: hidden; padding: 20px; background: linear-gradient(145deg, #e9eee8, #f7f6f1); }
.mortgage-browser { width: 88%; min-height: 202px; padding: 14px 17px; border: 1px solid rgba(23,72,63,.12); border-radius: 8px; background: #f7f6f1; box-shadow: 0 12px 26px rgba(22,48,42,.15); color: #202725; transform: rotate(-2deg); }
.mortgage-browser-bar { display: flex; gap: 4px; margin-bottom: 13px; }
.mortgage-browser-bar i { width: 5px; height: 5px; border-radius: 50%; background: #c2c7be; }
.mortgage-brand { color: #17483f; font: 700 11px Georgia,serif; letter-spacing: .04em; }
.mortgage-brand span { margin-left: 3px; color: #68736f; font: 600 6px Arial,sans-serif; letter-spacing: .12em; }
.mortgage-headline { margin-top: 12px; color: #17483f; font: 700 19px/1.06 Georgia,serif; }
.mortgage-rule { width: 24px; height: 2px; margin: 8px 0; background: #b48b57; }
.mortgage-lines { display: grid; gap: 4px; }
.mortgage-lines i { display: block; width: 82%; height: 3px; border-radius: 4px; background: #d9ded6; }
.mortgage-lines i:nth-child(2) { width: 66%; }
.mortgage-lines i:nth-child(3) { width: 74%; }
.mortgage-button { display: inline-block; margin-top: 9px; padding: 5px 9px; border-radius: 99px; background: #17483f; color: white; font: 600 7px Arial,sans-serif; }
.home-loans-case-study .case-study-hero { background: radial-gradient(ellipse at 90% 10%, rgba(180,139,87,.3), transparent 38%), linear-gradient(130deg, #10372f 0%, #17483f 100%); }
.home-loans-case-study .case-study-eyebrow { color: #b48b57; }
.home-loans-case-study .case-study-hero .case-study-eyebrow,.home-loans-case-study .case-study-cta .case-study-eyebrow { color: #e5d3b5; }
.home-loans-case-study .case-study-points article > span { color: #17483f; }
.home-loans-case-study .case-study-cta { background: #10372f; }
.home-loans-preview { overflow: hidden; border: 1px solid #dedfd8; border-radius: 14px; background: #f7f6f1; box-shadow: 0 18px 50px rgba(22,48,42,.1); color: #202725; }
.preview-topline { padding: 7px 14px; background: #17483f; color: #f4f1e8; text-align: center; font-size: 9px; letter-spacing: .09em; }
.preview-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #dedfd8; font-size: 9px; }
.preview-nav strong { color: #17483f; font: 700 14px Georgia,serif; white-space: nowrap; }
.preview-nav strong span { color: #68736f; font: 600 7px Arial,sans-serif; letter-spacing: .08em; }
.preview-nav b { padding: 7px 10px; border-radius: 99px; background: #17483f; color: white; font-size: 8px; white-space: nowrap; }
.preview-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; min-height: 320px; padding: 42px 7%; background: linear-gradient(110deg,#f7f6f1 55%,#e8ece3 55%); }
.preview-content small { color: #b48b57; font-weight: 700; font-size: 9px; letter-spacing: .13em; }
.preview-content h3 { margin: 10px 0; color: #17483f; font: 700 clamp(24px,4vw,42px)/1.05 Georgia,serif; }
.preview-content p { max-width: 330px; margin-bottom: 14px; color: #68736f; font-size: 11px; }
.preview-content > div > b { display: inline-block; padding: 9px 12px; border-radius: 99px; background: #17483f; color: white; font-size: 9px; }
.preview-home-art { position: relative; display: grid; place-items: center; width: min(100%,210px); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(23,72,63,.16); border-radius: 50%; background: rgba(255,255,255,.55); color: rgba(23,72,63,.18); font: 700 40px Georgia,serif; }
.preview-home-art i { position: absolute; bottom: 24%; width: 43%; height: 29%; border: 3px solid #17483f; border-top: 0; background: rgba(180,139,87,.25); }
.preview-home-art i::before { content: ""; position: absolute; left: -12%; top: -44%; width: 112%; height: 60%; transform: rotate(-2deg); border-left: 3px solid #17483f; border-top: 3px solid #17483f; border-right: 3px solid #17483f; background: #f7f6f1; clip-path: polygon(50% 0,100% 100%,0 100%); }
.preview-bottom { display: flex; justify-content: space-around; gap: 12px; padding: 15px; border-top: 1px solid #dedfd8; color: #17483f; font-size: 9px; font-weight: 700; }
@media (max-width: 600px) { .mortgage-browser { width: 100%; transform: none; } .preview-nav > span { display: none; } .preview-content { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; } .preview-content p { margin-inline: auto; } .preview-bottom { flex-direction: column; align-items: center; } }
