/* ================================================================
   ENGELSIZ ISPARTA - SHARED COMPONENTS
   Navbar, Footer, Buttons, Cards, Section Headers, Page Hero
   ================================================================ */

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 1px 12px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.25);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--navy);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav-links a.active {
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.08);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: var(--gold);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.6rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.08);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--blue-rgb), 0.35);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.92rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    background: rgba(var(--blue-rgb), 0.08);
    color: var(--blue);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(var(--blue-rgb), 0.12);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== PAGE HERO (Inner Pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--blue-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.55);
    transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover { color: var(--gold); }

.page-hero .breadcrumb .separator { color: rgba(255,255,255,0.25); }

.page-hero .breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ===== CARDS ===== */
.card {
    background: var(--card-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--blue-rgb), 0.15);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: var(--space-lg);
}

.card-icon.blue { background: rgba(var(--blue-rgb), 0.08); color: var(--blue); }
.card-icon.gold { background: rgba(var(--gold-rgb), 0.08); color: var(--gold); }
.card-icon.green { background: rgba(var(--green-rgb), 0.08); color: var(--green); }
.card-icon.navy { background: rgba(var(--navy-rgb), 0.06); color: var(--navy); }
.card-icon.red { background: rgba(198,40,40,0.06); color: #C62828; }
.card-icon.purple { background: rgba(106,27,154,0.06); color: #6A1B9A; }

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.93rem;
    color: var(--text-grey);
    line-height: 1.65;
}

/* ===== SVG ICON SYSTEM ===== */
.icon-svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.icon-svg.sm { width: 20px; height: 20px; }
.icon-svg.lg { width: 36px; height: 36px; }
.icon-svg.xl { width: 44px; height: 44px; }

/* ===== PHONE MOCKUP ===== */
.phone-frame {
    background: #000;
    border-radius: 30px;
    padding: 8px;
    box-shadow: var(--shadow-phone);
    position: relative;
}

.phone-frame img {
    border-radius: 24px;
    width: 100%;
    display: block;
}

.phone-frame-sm {
    border-radius: 24px;
    padding: 6px;
}

.phone-frame-sm img {
    border-radius: 20px;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
}

.highlight-box p {
    color: rgba(255,255,255,0.88);
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.7;
}

/* ===== CHECK LIST ===== */
.check-list { list-style: none; }

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.check-list li .check-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: rgba(var(--green-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-weight: 700;
    font-size: 0.82rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: #091626;
    color: rgba(255,255,255,0.65);
    padding: 72px 0 30px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .footer-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand p {
    font-size: 0.93rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    font-size: 0.93rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-a11y-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid rgba(var(--gold-rgb), 0.15);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.footer-a11y-notice .icon-svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.55);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--gold); }
