/* ============================================================
   R3 Global Digital Solutions LLC — Stylesheet
   Premium Corporate Website
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand Colors */
    --blue:        #1D4ED8;
    --blue-hover:  #1E40AF;
    --blue-soft:   #EFF6FF;
    --blue-mid:    #3B82F6;

    /* Neutrals */
    --black:       #0B0F1A;
    --dark:        #111827;
    --dark-2:      #1F2937;
    --dark-3:      #374151;
    --text:        #1F2937;
    --muted:       #6B7280;
    --muted-lt:    #9CA3AF;
    --border:      #E5E7EB;
    --bg-alt:      #F8FAFD;
    --white:       #FFFFFF;

    /* Layout */
    --header-h:    72px;
    --ticker-h:    0px;
    --offset:      72px;            /* header only */
    --max-w:       1220px;

    /* Typography */
    --f-head:      'Poppins', sans-serif;
    --f-body:      'Inter', sans-serif;

    /* Spacing Scale */
    --s-xs:   8px;
    --s-sm:  16px;
    --s-md:  24px;
    --s-lg:  48px;
    --s-xl:  96px;

    /* Radius */
    --r-sm:   6px;
    --r-md:  12px;
    --r-lg:  20px;

    /* Shadows */
    --sh-sm:  0 1px 4px rgba(0,0,0,0.07);
    --sh-md:  0 4px 20px rgba(0,0,0,0.09);
    --sh-lg:  0 12px 40px rgba(0,0,0,0.12);
    --sh-blue: 0 8px 24px rgba(29,78,216,0.28);

    /* Transitions */
    --t:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: all 0.18s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t-fast);
}

ul { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

abbr[title] {
    text-decoration: none;
    color: var(--blue);
}

address { font-style: normal; }

mark {
    background: none;
    color: var(--blue);
}


/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--s-md);
}

.section {
    padding: var(--s-xl) 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

section[id] {
    scroll-margin-top: var(--offset);
}


/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--dark);
    line-height: 1.2;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.18;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
}

.section-header .section-sub {
    text-align: center;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--f-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
    transition: var(--t);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    box-shadow: var(--sh-blue);
    transform: translateY(-1px);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--blue);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

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


/* ============================================================
   6. HEADER
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--t);
}

#site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: var(--s-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon svg {
    display: block;
    transition: var(--t-fast);
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
}

.logo-primary {
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.logo-secondary {
    font-family: var(--f-body);
    font-size: 9.5px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Actual logo image */
.logo-img {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 200px;
}

/* Desktop Nav */
.desktop-nav { display: flex; }

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

.nav-link {
    display: inline-block;
    padding: 8px 15px;
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-3);
    border-radius: var(--r-sm);
    transition: var(--t-fast);
}
.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link.nav-cta {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    margin-left: 8px;
    border-radius: var(--r-sm);
}
.nav-link.nav-cta:hover {
    background: var(--blue-hover);
    color: var(--white);
    box-shadow: var(--sh-blue);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
}
.hamburger span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--t);
    transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 12px var(--s-md) 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
}
.mobile-menu.is-open { display: block; }

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-nav-link {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-3);
    border-radius: var(--r-sm);
    transition: var(--t-fast);
}
.mobile-nav-link:hover {
    background: var(--bg-alt);
    color: var(--blue);
}
.mobile-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    text-align: center;
    margin-top: 8px;
    font-weight: 600 !important;
}
.mobile-cta:hover {
    background: var(--blue-hover) !important;
    color: var(--white) !important;
}


/* ============================================================
   7. INFO TICKER
   ============================================================ */
#info-ticker {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--ticker-h);
    background: var(--black);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 32s linear infinite;
}

.ticker-item {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    padding: 0 6px;
}
.ticker-item a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.ticker-item a:hover {
    color: var(--white);
    text-decoration: underline;
}
.ticker-sep {
    color: rgba(255,255,255,0.25);
    padding: 0 8px;
    font-size: 12px;
    user-select: none;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ============================================================
   8. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh; /* svh: accounts for mobile browser chrome */
    display: flex;
    align-items: center;
    padding-top: var(--offset);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 80px;
}

.hero-text {
    max-width: 700px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--f-head);
    font-size: clamp(38px, 5.8vw, 70px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-accent {
    font-style: normal;
    color: #60A5FA;
}

.hero-subtext {
    font-size: 16px;
    color: rgba(255,255,255,0.70);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 44px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* SEO note below CTAs (visible but subtle) */
.hero-seo-note {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
    margin-top: 20px;
    letter-spacing: 0.2px;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    user-select: none;
}
.scroll-bar {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
    animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}


/* ============================================================
   9. ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-img-col { position: relative; }

.about-img-frame { position: relative; }

.about-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--r-lg);
}

.about-float-card {
    position: absolute;
    bottom: -28px;
    right: -28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--sh-lg);
}

.float-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-soft);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
    flex-shrink: 0;
}

.float-text strong {
    display: block;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}
.float-text span {
    font-size: 11px;
    color: var(--muted);
}

/* Content column */
.about-lead {
    font-size: 16px;
    color: var(--dark-3);
    line-height: 1.78;
    font-weight: 500;
    margin-bottom: 14px;
    margin-top: 20px;
}

.about-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* Vision / Mission */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.vm-card {
    padding: 22px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: var(--t);
}
.vm-card:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.vm-icon {
    width: 38px;
    height: 38px;
    background: var(--blue);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    margin-bottom: 12px;
}

.vm-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.vm-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}


/* ============================================================
   10. SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 36px 26px;
    position: relative;
    overflow: hidden;
    transition: var(--t);
}

/* Background number watermark */
.svc-card::before {
    content: attr(data-num);
    position: absolute;
    top: 12px;
    right: 18px;
    font-family: var(--f-head);
    font-size: 52px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    transition: var(--t);
    user-select: none;
}

.svc-card:hover {
    border-color: var(--blue);
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
}
.svc-card:hover::before {
    color: var(--blue-soft);
}

.svc-icon {
    width: 50px;
    height: 50px;
    background: var(--blue-soft);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 21px;
    margin-bottom: 20px;
    transition: var(--t);
}
.svc-card:hover .svc-icon {
    background: var(--blue);
    color: var(--white);
}

.svc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.svc-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.68;
    margin-bottom: 20px;
}

.svc-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.svc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark-3);
    font-weight: 500;
}
.svc-list li i {
    color: var(--blue);
    font-size: 9px;
    flex-shrink: 0;
}


/* ============================================================
   11. PORTFOLIO
   ============================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.port-item {
    border-radius: var(--r-md);
    overflow: hidden;
}

.port-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.port-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 12, 24, 0.94) 0%,
        rgba(8, 12, 24, 0.25) 55%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.port-item:hover .port-overlay { opacity: 1; }
.port-item:hover .port-img-wrap img { transform: scale(1.07); }

.port-info {
    transform: translateY(10px);
    transition: transform 0.35s ease;
}
.port-item:hover .port-info { transform: translateY(0); }

.port-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 6px;
}

.port-info h4 {
    font-family: var(--f-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 14px;
}

.port-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    transition: var(--t-fast);
    letter-spacing: 0.3px;
}
.port-cta:hover {
    color: var(--white);
    gap: 12px;
}

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


/* ============================================================
   12. BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    background: #EEF3FF;
    border: none;
    border-radius: var(--r-md);
    overflow: hidden;
    transition: var(--t);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}

.blog-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}
.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.blog-img-contain img {
    object-fit: contain;
    background: #0f1520;
    padding: 12px;
}
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-card:hover .blog-img-contain img { transform: scale(1.03); }

.blog-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: var(--blue);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 100px;
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #EEF3FF;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted-lt);
}

.blog-title {
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 10px;
    transition: var(--t-fast);
}
.blog-card:hover .blog-title { color: var(--blue); }

.blog-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    transition: var(--t-fast);
    margin-top: auto;
}
.blog-more:hover {
    gap: 11px;
    color: var(--blue-hover);
}


/* ============================================================
   13. CONTACT — Dark Premium Section (unique to this site)
   ============================================================ */

/* Section shell */
/* ============================================================
   13. CONTACT / CONNECT BAND
   ============================================================ */

/* Section wrapper — light blue-white bg */
.ctc-band {
    position: relative;
    background: #EEF4FF;
    padding: 80px 0 180px;
    overflow: hidden;
}

/* City skyline SVG illustration (decorative) */
.ctc-skyline-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ctc-skyline-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 280px;
}

/* Two-column grid: left info | right floating card */
.ctc-band-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: start;
}

/* Left column */
.ctc-band-left {
    padding-top: 8px;
}
.ctc-band-logo-link {
    display: inline-block;
    margin-bottom: 32px;
}
.ctc-band-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.ctc-band-heading {
    font-family: var(--f-head);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: #0F1C3A;
    line-height: 1.25;
    margin-bottom: 18px;
}
.ctc-band-sub {
    font-size: 14px;
    color: #4B5875;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}
.ctc-band-addr {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ctc-band-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2D3D5A;
}
.ctc-band-row i {
    color: #1D4ED8;
    font-size: 14px;
    width: 18px;
    flex-shrink: 0;
}
.ctc-band-row a {
    color: #2D3D5A;
    transition: var(--t-fast);
}
.ctc-band-row a:hover { color: #1D4ED8; }
/* WhatsApp row icon */
.ctc-band-row:last-child i { color: #25D366; }

/* Floating white contact card */
.ctc-float-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(29,78,216,0.14), 0 4px 16px rgba(0,0,0,0.06);
    padding: 40px 36px 36px;
    margin-bottom: -120px;  /* overlaps into footer */
    position: relative;
    z-index: 5;
}
.ctc-card-title {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 800;
    color: #0F1C3A;
    margin-bottom: 6px;
}
.ctc-card-sub {
    font-size: 13px;
    color: #6B7A99;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Form */
.ctc-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual field — underline style */
.ctc-field {
    position: relative;
    margin-bottom: 28px;
}
.ctc-field--msg { margin-bottom: 32px; }

.ctc-field input,
.ctc-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 0;
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 400;
    color: #0F1C3A;
    padding: 10px 0;
    caret-color: #1D4ED8;
    transition: color 0.2s ease;
}
.ctc-field textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.7;
}

/* Placeholder */
.ctc-field input::placeholder,
.ctc-field textarea::placeholder {
    color: #9AAAC4;
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 400;
}

/* Animated underline */
.ctc-line {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.12);
}
.ctc-line::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background: #1D4ED8;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.ctc-field:focus-within .ctc-line::after {
    transform: scaleX(1);
}

/* Error state */
.ctc-field.has-error .ctc-line { background: rgba(239,68,68,0.3); }
.ctc-field.has-error .ctc-line::after { background: #EF4444; transform: scaleX(1); }
.ctc-field.has-error input,
.ctc-field.has-error textarea { color: #DC2626; }

/* Submit row */
.ctc-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ctc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #1D4ED8;
    color: #fff;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.ctc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1E40AF;
    transform: translateX(-101%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.ctc-btn:hover::before { transform: translateX(0); }
.ctc-btn span, .ctc-btn i,
.ctc-btn-arrow { position: relative; z-index: 1; }

.ctc-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* Success message */
#form-success {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive — contact band */
@media (max-width: 1050px) {
    .ctc-band-inner { grid-template-columns: 1fr 380px; gap: 40px; }
}
@media (max-width: 860px) {
    .ctc-band { padding-bottom: 80px; }
    .ctc-band-inner { grid-template-columns: 1fr; gap: 48px; }
    .ctc-float-card { margin-bottom: 0; }
}
@media (max-width: 480px) {
    .ctc-float-card { padding: 28px 20px; }
    .ctc-submit-row { justify-content: stretch; }
    .ctc-btn { width: 100%; justify-content: center; }
}


/* ============================================================
/* ============================================================
   14. FOOTER
   ============================================================ */
#footer {
    background: #071428;
    padding-top: 160px; /* space for overlapping contact card */
}

.ft-main {
    padding: 0 0 52px;
}

/* 3-column grid: Quick Links | Services | Logo+Address */
.ft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 52px;
    align-items: start;
}

/* Brand column — logo as image */
.ft-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}
.ft-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}
.ft-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}
.ft-logo-name {
    display: block;
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}
.ft-logo-sub {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ft-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Map embed */
.ft-map {
    margin-top: 20px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
}
.ft-map iframe {
    display: block;
    filter: grayscale(15%) brightness(0.9);
}

/* Link columns */
.ft-heading {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
}
.ft-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.ft-links a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.44);
    transition: var(--t-fast);
}
.ft-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

/* Contact column */
.ft-contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ft-addr-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ft-addr-block > i {
    color: var(--blue-mid);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}
.ft-addr-block > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ft-addr-block strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.68);
    margin-bottom: 2px;
}
.ft-addr-block span {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
}
.ft-crow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.44);
}
.ft-crow i {
    color: var(--blue-mid);
    font-size: 13px;
    width: 15px;
    flex-shrink: 0;
}
.ft-crow a {
    color: rgba(255,255,255,0.44);
    transition: var(--t-fast);
}
.ft-crow a:hover { color: var(--white); }
/* WhatsApp row icon green */
.ft-crow:last-child i { color: #25D366; }

/* Bottom bar */
.ft-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
}
.ft-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ft-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.27);
}
.ft-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ft-legal {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    transition: var(--t-fast);
}
.ft-legal:hover { color: rgba(255,255,255,0.7); }

/* Social icon strip (bottom bar) */
.ft-social-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ft-si {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--t);
}
.ft-si:hover { transform: translateY(-3px); }
.ft-si.ft-tiktok:hover    { background: #010101; color: #fff; border-color: #010101; }
.ft-si.ft-whatsapp:hover  { background: #25D366; color: #fff; border-color: #25D366; }
.ft-si.ft-facebook:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }
.ft-si.ft-instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }
.ft-si.ft-x:hover         { background: #000;    color: #fff; border-color: #555;    }
.ft-si.ft-linkedin:hover  { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.ft-si.ft-youtube:hover   { background: #FF0000; color: #fff; border-color: #FF0000; }

/* Footer responsive */
@media (max-width: 860px) {
    #footer { padding-top: 60px; }
    .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .ft-grid { grid-template-columns: 1fr; }
    .ft-brand { grid-column: auto; }
    .ft-bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============================================================
   15. FLOATING ACTION BUTTONS (FAB)
   ============================================================ */
.fab-stack {
    position: fixed;
    bottom: 24px;
    right: 22px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.30);
    transition: var(--t);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.fab:hover { transform: scale(1.1); }

/* WhatsApp — always visible */
.fab-wa {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 18px rgba(37,211,102,0.35);
}
.fab-wa:hover {
    background: #20b957;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    color: var(--white);
}

/* Contact — always visible */
.fab-contact {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--sh-blue);
}
.fab-contact:hover {
    background: var(--blue-hover);
    color: var(--white);
}

/* Back to top — hidden until scrolled */
.fab-top {
    background: rgba(20,25,40,0.85);
    color: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.14) !important;
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    pointer-events: none;
    font-size: 13px;
}
.fab-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fab-top:hover {
    background: var(--white) !important;
    color: var(--dark) !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1) !important;
}


/* ============================================================
   16. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   17. RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 48px;
    }
}


/* ============================================================
   18. RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-float-card {
        right: 16px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   19. RESPONSIVE — 768px (Tablet / Mobile)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-h: 60px;
        --ticker-h: 0px;
        --offset: 60px;
    }

    .section { padding: 60px 0; }
    .container { padding: 0 20px; }

    /* Header */
    .desktop-nav { display: none; }
    .hamburger { display: flex; }

    /* Logo — smaller on mobile */
    .logo-img { height: 36px; max-width: 160px; }

    /* Hero */
    .hero { min-height: 100svh; align-items: center; }
    .hero-content { padding-top: 36px; padding-bottom: 60px; }
    .hero-text { max-width: 100%; }
    .hero-eyebrow { font-size: 10px; }
    .hero-headline {
        font-size: clamp(30px, 8vw, 44px);
        letter-spacing: -0.5px;
        margin-bottom: 18px;
    }
    .hero-subtext {
        font-size: 14px;
        margin-bottom: 32px;
        max-width: 100%;
    }
    .hero-ctas { gap: 12px; margin-bottom: 24px; }
    .hero-scroll { display: none; }

    /* Sections */
    .section-heading { font-size: clamp(22px, 6vw, 30px); }
    .section-sub { font-size: 14px; }

    /* Services — 1 column */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Portfolio — 1 column */
    .portfolio-grid { grid-template-columns: 1fr; }

    /* Blog — 1 column */
    .blog-grid { grid-template-columns: 1fr; }

    /* About — stack */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo { height: 280px; }
    .about-float-card {
        position: static;
        margin-top: 16px;
        right: auto;
        bottom: auto;
    }
    .vm-grid { grid-template-columns: 1fr; }

    /* Contact band */
    .ctc-band { padding: 60px 0 80px; }
    .ctc-band-inner { grid-template-columns: 1fr; gap: 40px; }
    .ctc-float-card { margin-bottom: 0; }
    .ctc-band-heading { font-size: clamp(22px, 6vw, 32px); }

    /* Footer */
    #footer { padding-top: 60px; }
    .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ft-brand { grid-column: 1 / -1; }
    .ft-logo-img { height: 40px; }
    .ft-bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============================================================
   20. RESPONSIVE — 480px (Small phones)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero-headline { font-size: clamp(26px, 9vw, 36px); }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-seo-note { display: none; } /* hide on very small screens */

    /* Logo in header */
    .logo-img { height: 32px; max-width: 145px; }

    /* Services — single card full width */
    .svc-card { padding: 24px 20px; }

    /* Blog */
    .blog-img-wrap { max-height: 220px; }

    /* Buttons */
    .btn { padding: 13px 22px; font-size: 13px; }

    /* Contact card */
    .ctc-float-card { padding: 24px 18px; }
    .ctc-btn { width: 100%; justify-content: center; }

    /* Footer grid — 1 column */
    .ft-grid { grid-template-columns: 1fr; }
    .ft-brand { grid-column: auto; }
    .ft-social-bar { flex-wrap: wrap; gap: 8px; }
}
