/* =============================================
   TRAMITE MARKETING - STYLES
   ============================================= */

/* CSS Variables */
:root {
    --red: #E63946;
    --red-dark: #D62839;
    --red-light: #FFECEE;
    --coral: #FF6B6B;
    --peach: #FFE5D9;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-light: #F0F0F0;
    --gray: #6B7280;
    --gray-dark: #4B5563;
    --dark: #1A1A2E;
}

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

html {
    overflow-x: hidden;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--red);
    color: white;
    padding: 12px 24px;
    z-index: 1000;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--dark);
    outline-offset: 2px;
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

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

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--dark);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--red);
}

.logo:hover span {
    color: var(--dark);
    transition: color 0.2s ease;
}

.logo span {
    color: var(--red);
    transition: color 0.2s ease;
}


.nav-links {
    display: flex;
    gap: clamp(1.25rem, 2vw, 2.5rem);
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--red);
    color: white !important;
    padding: 0.65rem clamp(1rem, 2vw, 1.5rem);
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s !important;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    animation: pulseGlow 1s ease-in-out infinite;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger Animation - Open State */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

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

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

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 90;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 3rem;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-slogan {
    display: inline-block;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease-out 0.1s backwards;
}

.hero h1 span {
    color: var(--red);
    animation: colorGlow 4s ease-in-out infinite;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out 0.3s backwards;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    animation: fadeUp 0.6s ease-out 0.4s backwards;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

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

.btn {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: 10px;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    max-width: 100%;
    text-align: center;
}

.btn-primary {
    color: white;
    background: linear-gradient(110deg, var(--red) 30%, var(--coral) 50%, var(--red) 70%);
    background-size: 200% 100%;
    animation: shimmer 5s linear infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.45);
    background: linear-gradient(110deg, var(--red) 30%, var(--coral) 50%, var(--red) 70%);
    background-size: 200% 100%;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-secondary:hover {
    border-color: var(--dark);
}

/* =============================================
   SECTION STYLES
   ============================================= */

section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

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

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--off-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--gray-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--red-light);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--red);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.portfolio {
    background: var(--off-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--peach) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.85rem;
    border: 2px dashed var(--gray-light);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    overflow: hidden;
}

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

.portfolio-content {
    padding: 1.75rem;
}

.portfolio-tag {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.portfolio-card > .portfolio-content > p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.portfolio-results {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-light);
}

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

.portfolio-result strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: -0.5px;
}

.portfolio-result span {
    font-size: 0.75rem;
    color: var(--gray);
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */

.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--red-light);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--peach) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.6rem;
    border: 2px dashed var(--gray-light);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* =============================================
   TEAM SECTION
   ============================================= */

.team {
    background: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--peach) 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.7rem;
    border: 3px dashed var(--gray-light);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-card .role {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   CLIENTS SECTION
   ============================================= */

.clients {
    background: var(--white);
    padding: 4rem 5%;
}

.clients .section-header {
    margin-bottom: 3rem;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    width: 130px;
    height: 60px;
    background: var(--off-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-light);
    transition: all 0.3s;
    padding: 1rem;
    overflow: hidden;
}

.client-logo:hover {
    border-color: var(--red-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.client-logo span {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.7rem;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =============================================
   WHY US SECTION
   ============================================= */

.why-us {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-us .section-tag {
    color: var(--coral);
}

.why-us .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
}

.feature-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(110deg, var(--red) 30%, var(--coral) 50%, var(--red) 70%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   QUOTE FORM SECTION
   ============================================= */

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

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.quote-info h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.quote-info > p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.quote-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.quote-benefit svg {
    width: 20px;
    height: 20px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.quote-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quote-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

/* Form Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #EF4444;
    background: #FEF2F2;
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.error-message {
    display: none;
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.form-group.error .error-message {
    display: block;
}

/* Success state */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10B981;
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--off-white);
    border-radius: 12px;
    transition: all 0.3s;
}

.contact-card:hover {
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--red-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-card a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--red-dark);
}

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

footer {
    padding: 3rem 5%;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-logo span {
    color: var(--red);
}

.footer-slogan {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgb(228, 43, 105);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(230, 57, 70, 0.15); }
}

@keyframes colorGlow {
    0%, 100% { color: var(--red); text-shadow: 0 0 10px rgba(255, 107, 107, 0.4); }
    50% { color:rgb(233, 13, 31); text-shadow: 0 0 20px rgba(231, 8, 8, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slogan,
    .hero h1,
    .hero p,
    .hero-buttons,
    .hero-image,
    .hero-stats,
    .hero-image-placeholder,
    .hero-image img,
    .btn-primary,
    .feature-number {
        animation: none;
    }
}

/* =============================================
   COOKIE BANNER
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem 5%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--gray-light);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin: 0;
}

.cookie-content a {
    color: var(--red);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* =============================================
   RESPONSIVE - 1024px (TABLET / NAV COLLAPSE)
   ============================================= */

@media (max-width: 1024px) {
    /* Navigation collapses to hamburger */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-links .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block;
        padding: 0.85rem 1.5rem;
        white-space: normal;
    }

    /* Hero goes single column */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Quote section single column */
    .quote-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .quote-benefit {
        justify-content: center;
    }
}

/* =============================================
   RESPONSIVE - 768px (MOBILE)
   ============================================= */

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 5rem;
        min-height: 100vh;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 5.5vw, 1.85rem);
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-slogan {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-image {
        max-width: 400px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

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

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .hero-stat p {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image-placeholder {
        aspect-ratio: 16/10;
        font-size: 0.8rem;
        padding: 1.5rem;
    }

    /* Sections Mobile */
    section {
        padding: 3.5rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
        letter-spacing: -0.5px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.75rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 46px;
        height: 46px;
    }

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

    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-card h3 {
        font-size: 1.05rem;
    }

    .portfolio-card > .portfolio-content > p {
        font-size: 0.85rem;
    }

    .portfolio-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .portfolio-results {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .portfolio-result {
        min-width: 70px;
        text-align: center;
    }

    .portfolio-result strong {
        font-size: 1.1rem;
    }

    .portfolio-result span {
        font-size: 0.7rem;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.75rem 1.5rem;
    }

    .testimonial-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .testimonial-quote {
        font-size: 2.5rem;
        top: 1rem;
        left: 1.25rem;
    }

    .testimonial-avatar {
        width: 44px;
        height: 44px;
    }

    .testimonial-info h4 {
        font-size: 0.9rem;
    }

    .testimonial-info span {
        font-size: 0.75rem;
    }

    /* Team mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .team-card {
        padding: 2rem 1.5rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }

    .team-card h3 {
        font-size: 1.05rem;
    }

    .team-card .role {
        font-size: 0.8rem;
    }

    .team-card p {
        font-size: 0.85rem;
    }

    /* Clients mobile */
    .clients {
        padding: 3rem 5%;
    }

    .clients-grid {
        gap: 1rem;
    }

    .client-logo {
        width: 100px;
        height: 50px;
        font-size: 0.6rem;
    }

    /* Why Us mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    .feature-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Quote form mobile */
    .quote-section {
        padding: 3.5rem 5%;
    }

    .quote-info h2 {
        font-size: 1.5rem;
    }

    .quote-info > p {
        font-size: 0.9rem;
    }

    .quote-benefit {
        font-size: 0.85rem;
    }

    .quote-form {
        padding: 1.75rem 1.25rem;
    }

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

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.8rem;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
    }

    .contact-card h3 {
        font-size: 0.95rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

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

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .footer-slogan {
        font-size: 0.7rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    /* Cookie Banner mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   RESPONSIVE - 480px (SMALL PHONES)
   ============================================= */

@media (max-width: 480px) {
    .hero {
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
    }

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

    .hero-image {
        max-width: 100%;
    }

    .hero-image-placeholder {
        border-radius: 12px;
    }

    section {
        padding: 2.5rem 4%;
    }

    .quote-form {
        padding: 1.5rem 1rem;
    }

    .cookie-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .contact-card {
        padding: 1.25rem 1rem;
    }
}

/* =============================================
   RESPONSIVE - 380px (EXTRA SMALL)
   ============================================= */

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.35rem;
        letter-spacing: -0.3px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat h3 {
        font-size: 1.3rem;
    }

    .hero-stat p {
        font-size: 0.75rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }
}
