/*-------------------------------------------------------
  CSS RESET & NORMALIZE
-------------------------------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #F5F6FA;
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
img {
  vertical-align: middle;
  max-width: 100%;
  border: 0;
  display: block;
  height: auto;
}
*, *:before, *:after {
  box-sizing: inherit;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/*-------------------------------------------------------
  CUSTOM PROPERTIES: soft pastel palette + brand colors
-------------------------------------------------------*/
:root {
  --primary: #1A4465;
  --secondary: #D7B66A;
  --accent: #F5F6FA;
  --pastel-blue: #BEE3F8;
  --pastel-yellow: #FFF3C4;
  --pastel-pink: #FFE4EC;
  --pastel-peach: #FFD9C8;
  --pastel-mint: #C6F1E7;
  --pastel-lavender: #E6E8FB;
  --pastel-text: #333340;
  --hero-gradient-from: #BEE3F8;
  --hero-gradient-to: #FFD9C8;
  --btn-shadow: 0 2px 8px rgba(216,195,251,0.15);
  --card-shadow: 0 8px 32px 0 rgba(34,48,128,0.10);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/*-------------------------------------------------------
  TYPOGRAPHY
-------------------------------------------------------*/
body, p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--pastel-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.15;
}
h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.2;
}
h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
}
h4 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.3;
}
strong {
  font-weight: 600;
  color: var(--primary);
}
em {
  color: var(--secondary);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.text-section {
  background: var(--pastel-peach);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  color: var(--primary);
}

@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
  }
  .text-section {
    min-width: 320px;
  }
}

/*-------------------------------------------------------
  HERO/BANNER SECTION
-------------------------------------------------------*/
section:first-of-type {
  background: linear-gradient(120deg, var(--hero-gradient-from) 0%, var(--hero-gradient-to) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 16px 32px -16px rgba(34,48,128,0.06);
  padding-top: 60px;
  margin-bottom: 32px;
}
section:first-of-type .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
section:first-of-type h1 {
  color: var(--primary);
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  section:first-of-type .container {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

/*-------------------------------------------------------
  FLEXBOX CARD/FEATURE/TESTIMONIAL LAYOUTS
-------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 40px 0 rgba(26,68,101,0.13);
  transform: translateY(-4px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--pastel-mint);
  color: #13213a;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 520px;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 48px 0 rgba(26,68,101,0.14);
  transform: translateY(-3px);
}

/*-------------------------------------------------------
  BUTTONS & CTA
-------------------------------------------------------*/
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 99px;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--btn-shadow);
  border: none;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #265982;
  color: #FFF;
  box-shadow: 0 4px 18px rgba(26,68,101,0.15);
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  margin-left: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #E5C888;
  color: var(--primary);
}

/* Links in nav and other actions */
nav a.btn-primary {
  margin-left: 18px;
  margin-top: 0;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 510;
  color: var(--primary);
  padding: 8px 0;
  border-radius: 4px;
}
nav ul li a:hover, nav ul li a:focus {
  color: var(--secondary);
  background: var(--pastel-yellow);
  text-decoration: underline;
  transition: background var(--transition), color var(--transition);
}

/*-------------------------------------------------------
  HEADER & MAIN NAVIGATION
-------------------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(34,48,128,0.03);
  padding: 0 0 0 0;
  position: relative;
  z-index: 40;
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
nav li {
  position: relative;
}
nav img[alt="Dinamik Yolculuk"] {
  width: 48px;
  height: auto;
}
nav ul li:last-child {
  margin-right: 0;
}

@media (max-width: 992px) {
  nav ul {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  nav ul, nav a.btn-primary {
    display: none !important;
  }
}

/*-------------------------------------------------------
  MOBILE MENU (BURGER)
-------------------------------------------------------*/
.mobile-menu-toggle {
  display: block;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  font-size: 2.1rem;
  padding: 7px 16px;
  margin: 9px 0 0 8px;
  border: none;
  box-shadow: var(--btn-shadow);
  z-index: 51;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--pastel-blue), var(--pastel-pink));
  box-shadow: 0 6px 22px 5px rgba(26,68,101,0.10);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  margin: 21px 30px 0 0;
  padding: 4px 15px;
  border: none;
  box-shadow: var(--btn-shadow);
  transition: background var(--transition);
  z-index: 1004;
}
.mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 32px;
  color: var(--primary);
  border-radius: 8px;
  transition: background .18s, color .18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--pastel-text);
}

/*-------------------------------------------------------
  FOOTER
-------------------------------------------------------*/
footer {
  background: linear-gradient(95deg, var(--pastel-lavender) 50%, var(--pastel-mint) 100%);
  margin-top: 80px;
  padding: 48px 0 20px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 36px 0 rgba(26,68,101,0.09);
  color: var(--primary);
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 0;
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer a {
  color: var(--primary);
  opacity: 0.85;
  transition: opacity .18s, color .18s;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
  opacity: 1;
  text-decoration: underline;
}
footer img[alt="Dinamik Yolculuk"], footer img[alt="Dinamik Yolculuk"] {
  width: 42px;
  margin-bottom: 11px;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
footer .social-links a {
  width: 36px;
  height: 36px;
  background: #fff6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, transform .14s;
}
footer .social-links a:hover {
  background: var(--pastel-mint);
  transform: scale(1.10) rotate(-7deg);
}

@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}

/*-------------------------------------------------------
  COOKIE CONSENT BANNER
-------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-mint) 50%, var(--pastel-lavender) 100%);
  color: #2B3640;
  padding: 24px 16px 20px 16px;
  box-shadow: 0 -3px 22px 0 rgba(34,48,128,0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  z-index: 1500;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .16s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  box-shadow: none;
  margin: 0;
  font-size: 0.99rem;
}
.cookie-banner .btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: var(--pastel-yellow);
  color: var(--primary);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  z-index: 1600;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 140%);
  background: #FFF;
  width: 94vw;
  max-width: 430px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 48px 0 rgba(28,42,91,0.16);
  padding: 32px 22px 22px 22px;
  opacity: 0;
  pointer-events: none;
  transition: transform .39s cubic-bezier(.4,0,.2,1), opacity .22s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pastel-blue);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  margin-bottom: 10px;
}
.cookie-category[data-category='essential'] {
  background: var(--pastel-mint);
  opacity: 0.82;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--secondary);
  position: relative;
  transition: background .18s;
}
.cookie-toggle input[type='checkbox'] {
  display: none;
}
.cookie-toggle-label {
  display: block;
  width: 36px;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.21s, background .18s;
  box-shadow: 0 1px 3px rgba(26,68,101,0.08);
}
.cookie-toggle input[type='checkbox']:checked + .cookie-toggle-slider {
  left: 18px;
  background: var(--pastel-pink);
}
/* Modal close button */
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  color: var(--primary);
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  padding: 1px 7px;
  border-radius: 7px;
  transition: background .18s;
}
.cookie-modal-close:hover {
  background: var(--pastel-peach);
}

/*-------------------------------------------------------
  MISC SPACING, TRANSITIONS, DECOR
-------------------------------------------------------*/
.card, .testimonial-card, .text-section, section, .container, .content-wrapper {
  margin-bottom: 20px;
}

hr {
  border: 0;
  border-top: 1px solid #e6e7ec;
  margin: 32px 0;
}

/* Subtle fade-in  */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInY 0.7s forwards;
}
@keyframes fadeInY {
  to { opacity: 1; transform: none; }
}

/*-------------------------------------------------------
  FORM ELEMENTS & INPUTS
-------------------------------------------------------*/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e7e8ed;
  background: #fff;
  margin-bottom: 20px;
  transition: border-color .19s;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,68,101,0.08);
}

label {
  font-size: 1rem;
  margin-bottom: 7px;
  display: inline-block;
  color: var(--primary);
  letter-spacing: 0.01em;
}

/*-------------------------------------------------------
  ACCESSIBILITY & FOCUS
-------------------------------------------------------*/
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/*-------------------------------------------------------
  PRINT, HIDDEN & UTILS
-------------------------------------------------------*/
@media print {
  header, nav, .mobile-menu, .cookie-banner, footer {
    display: none !important;
  }
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/*-------------------------------------------------------
  RESPONSIVENESS
-------------------------------------------------------*/
@media (max-width: 768px) {
  html { font-size: 98%; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  .section { padding: 24px 7px; margin-bottom: 32px; }
  .container { padding: 0 7px; }
  .card, .testimonial-card, .text-section {
    padding: 16px 11px;
    min-width: 0;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 18px;
    font-size: 15px;
  }
  footer {
    padding: 30px 0 10px 0;
  }
}
