/* ====================================================
   Rika Otomotiv – Modern CSS
   ==================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1b2a;
  --navy2:  #1a2f4a;
  --orange: #e85d04;
  --orange2:#f48c06;
  --white:  #ffffff;
  --gray:   #f4f6f8;
  --gray2:  #e8ecf0;
  --text:   #2c3e50;
  --text2:  #5a6878;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.16);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }
p { color: var(--text2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: rgba(232,93,4,.10); color: var(--orange); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.2; }
.section-header p { color: var(--text2); margin-top: 12px; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .25s; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,4,.4); }
.btn-outline { border: 2px solid rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-whatsapp { background: #25d366; color: var(--white); margin-top: 28px; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }

/* =================================================
   NAVBAR
   ================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled { background: rgba(13,27,42,.97); box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; color: var(--white); }
.logo-icon { font-size: 1.4rem; }
.logo-text { letter-spacing: .04em; }
.logo-accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .2s; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--orange2) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(13,27,42,.98); padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
}

/* =================================================
   HERO
   ================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #12283e 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 70px; }

.hero-text { color: var(--white); }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.accent { color: var(--orange); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.stat span { font-size: .8rem; color: rgba(255,255,255,.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

.hero-img { position: relative; }
.hero-img img { border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.4); width: 100%; height: 420px; object-fit: cover; }
.hero-car-svg { width: 100%; height: auto; max-height: 380px; filter: drop-shadow(0 24px 48px rgba(0,0,0,.45)); }
.hero-img::before { content: ''; position: absolute; inset: -12px -12px 12px 12px; border: 2px solid rgba(232,93,4,.3); border-radius: 24px; }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-scroll a { display: flex; flex-direction: column; align-items: center; animation: bounce 2s infinite; }
.hero-scroll span { display: block; width: 20px; height: 32px; border: 2px solid rgba(255,255,255,.4); border-radius: 10px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 2px; animation: scroll-dot 2s infinite; }
@keyframes scroll-dot { 0%,100%{opacity:1;top:5px} 50%{opacity:0;top:16px} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero-img { display: block; max-width: 380px; margin: 0 auto; }
}

/* =================================================
   ABOUT
   ================================================= */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }

.about-text h3 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.4; }
.about-text p { margin-bottom: 16px; }

.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { font-size: 1.5rem; flex-shrink: 0; width: 44px; height: 44px; background: rgba(232,93,4,.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.feature strong { display: block; font-size: .95rem; color: var(--navy); margin-bottom: 4px; }
.feature p { font-size: .88rem; margin: 0; }

.about-visual { position: sticky; top: 100px; }
.about-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.about-card-inner .quote { font-size: 1.15rem; color: rgba(255,255,255,.9); font-style: italic; line-height: 1.6; margin-bottom: 32px; }
.about-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.about-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-radius: 20px; padding: 8px 16px; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { position: relative; top: auto; }
}

/* =================================================
   SERVİCES
   ================================================= */
.services { background: var(--gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.service-card { background: var(--white); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); border: 1px solid var(--gray2); transition: all .3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--orange2)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: .9rem; }

/* =================================================
   PARTNERS
   ================================================= */
.partners { background: var(--white); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; align-items: center; }
.partner-item { background: var(--gray); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray2); transition: all .3s; }
.partner-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--white); }
.partner-item img { height: 60px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter .3s; }
.partner-item:hover img { filter: none; }

/* =================================================
   CONTACT
   ================================================= */
.contact { background: var(--gray); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }

.contact-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.contact-subtitle { font-size: .85rem; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 1.3rem; width: 44px; height: 44px; background: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow); }
.contact-item strong { display: block; font-size: .8rem; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-item a, .contact-item span { display: block; color: var(--navy); font-weight: 500; font-size: .95rem; }
.contact-item a:hover { color: var(--orange); }

.contact-map { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); height: 420px; }
.contact-map iframe { height: 100%; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }
}

/* =================================================
   RANDEVU
   ================================================= */
.randevu { background: var(--gray); }
.nav-randevu { color: var(--orange) !important; font-weight: 700 !important; }
.nav-randevu:hover { color: var(--orange2) !important; }

.randevu-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }

/* Steps sidebar */
.randevu-info { display: flex; flex-direction: column; gap: 24px; }
.randevu-step { display: flex; align-items: flex-start; gap: 16px; }
.step-num { min-width: 40px; height: 40px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.randevu-step strong { display: block; color: var(--navy); font-size: .95rem; margin-bottom: 2px; }
.randevu-step p { font-size: .87rem; margin: 0; }
.randevu-contact-note { display: flex; align-items: center; gap: 14px; background: var(--white); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin-top: 8px; box-shadow: var(--shadow); }
.randevu-contact-note span { font-size: 1.5rem; }
.randevu-contact-note strong { display: block; color: var(--navy); font-size: .88rem; }
.randevu-contact-note a { color: var(--orange); font-weight: 700; font-size: 1rem; }

/* Form */
.randevu-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 20px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.req { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea { padding: 12px 16px; border: 1.5px solid var(--gray2); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: .93rem; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
.form-group input.error,
.form-group select.error { border-color: #e74c3c; }
.form-group textarea { resize: vertical; }
.form-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-randevu { padding: 16px 40px; font-size: 1rem; border: none; }
.btn-randevu:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }
.form-note { font-size: .8rem; color: var(--text2); }
.randevu-msg { margin-top: 16px; padding: 14px 20px; border-radius: 8px; font-weight: 500; font-size: .93rem; }
.randevu-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.randevu-msg.error-msg { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

@media (max-width: 900px) {
  .randevu-wrapper { grid-template-columns: 1fr; }
  .randevu-info { display: none; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .randevu-form { padding: 24px 20px; }
}

/* =================================================
   FOOTER
   ================================================= */
.footer { background: var(--navy); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; }
.footer-copy { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-links a:hover { color: var(--orange); }

/* =================================================
   WHATSAPP FLOAT
   ================================================= */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25d366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.5); z-index: 999; transition: all .3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

.scroll-top { position: fixed; bottom: 96px; right: 28px; width: 48px; height: 48px; background: #e85d04; color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(232,93,4,.5); z-index: 1000; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: #c94e00; transform: translateY(-2px); }
.scroll-top svg { width: 22px; height: 22px; }

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}
