/* tapunutrinksat.com — Premium Corporate UI */

:root {
    --brand-dark: #0f172a;
    --brand-primary: #0d9488;
    --brand-primary-hover: #0f766e;
    --brand-gradient: linear-gradient(135deg, #0d9488 0%, #0f172a 100%);
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header (Glassmorphism Sticky) */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.logo-img {
    height: 40px;
    /* Reduced from 56px */
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    /* Image logic shows it's a circle */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo-divider {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.5), rgba(13, 148, 136, 0.1));
    margin: 0 4px;
    border-radius: 2px;
    opacity: 0.8;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: inline-block;
}

.logo-dot {
    color: var(--brand-primary);
    -webkit-text-fill-color: var(--brand-primary);
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 140px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 148, 136, 0.1);
    color: var(--brand-primary-hover);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero-title {
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
}

.text-accent {
    color: var(--brand-primary);
}

.hero-subtitle {
    margin: 0 auto 40px;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.4);
    outline-offset: 2px;
}

.btn-hero {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 16px -4px rgba(13, 148, 136, 0.3);
}

.btn-hero:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-main);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Features Profile */
.features {
    padding: 60px 0 80px;
    background: var(--bg-surface);
}

.section-title {
    margin: 0 0 16px;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-align: center;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 540px;
}

h2.left-align {
    text-align: left;
}

p.left-align {
    text-align: left;
    margin-left: 0;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-main);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--brand-primary);
    color: #fff;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.feature-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: 40px 0 100px;
    background: var(--bg-surface);
    overflow-x: hidden;
}

.ticket-form {
    background: var(--bg-surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    overflow-x: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #e11d48;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-main);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e11d48;
}

.field-error {
    font-size: 0.85rem;
    color: #e11d48;
    margin-top: 6px;
    font-weight: 500;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.char-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.priority-notice {
    grid-column: 1 / -1;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kvkk-group .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.kvkk-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.kvkk-group a {
    color: var(--brand-primary);
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-group a:hover {
    color: var(--brand-primary-hover);
}

.form-actions {
    margin-top: 32px;
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: var(--brand-dark);
    color: #fff;
    min-width: 220px;
    font-size: 1.05rem;
}

.btn-submit:hover {
    background: var(--brand-primary);
    box-shadow: 0 8px 16px -4px rgba(13, 148, 136, 0.3);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Custom File Input */
input[type="file"] {
    padding: 10px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--brand-primary);
    background: rgba(13, 148, 136, 0.02);
}

/* Messages */
.message {
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.success-message i {
    color: #22c55e;
    font-size: 1.25rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.error-message i {
    color: #ef4444;
    font-size: 1.25rem;
}

.message .small {
    margin: 8px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* KVKK modal */
.kvkk-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kvkk-modal[aria-hidden="false"] {
    display: flex;
    opacity: 1;
}

.kvkk-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kvkk-modal[aria-hidden="false"] .kvkk-content {
    transform: translateY(0);
}

.kvkk-content h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    color: var(--brand-dark);
}

.kvkk-content p {
    margin: 0 0 24px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 32px;
}

.footer-inner {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.footer-brand {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.footer-copy {
    margin: 12px 0 0;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Responsive Mixins / Queries */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .city-district-wrap {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .ticket-form {
        padding: 32px 24px;
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius-md);
    }

    .form-section .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
    }

    .g-recaptcha {
        max-width: 100%;
        overflow: hidden;
    }

    .g-recaptcha > div {
        max-width: 100% !important;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .features {
        padding: 80px 0;
    }

    .form-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .nav-main {
        display: none;
    }

    /* Could implement a hamburger menu here, but keeping it simple for now */
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .form-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ticket-form {
        padding: 24px 16px;
        border-radius: var(--radius-sm);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom önleme */
    }

    .logo-img {
        height: 32px;
        /* Reduced from 48px */
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}