/* WDP İstanbul — static rebuild of the final Hostinger AI Builder site (2025-2026).
   Palette from WDPIST/site-colors.png + colours read from the recovered page data. */
:root {
  --red: #8c0f14;          /* Old crimson / WDP Red */
  --moonstone: #4fa8b2;
  --nonphoto: #85d1da;
  --outer-space: #454c51;
  --charcoal: #2e3d44;
  --deep-teal: #0e484a;    /* header background, button hover */
  --btn-teal: #2f7a82;     /* darkened from rgb(79,169,179) for 4.5:1 contrast with white text */
  --mist: #d9e4e6;         /* light section background (also the schedule table) */
  --sched-bg: #80bdc5;     /* schedule section */
  --footer: #2b2b2b;
  --ink: #1a1a1a;
  --white: #fff;
  --maxw: 1224px;
  --serif: 'Caudex', Georgia, serif;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--nonphoto); outline-offset: 3px; }
.on-light :focus-visible, .section--light :focus-visible { outline-color: var(--red); }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 4px; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--white); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 120px; }
.logo img { width: 96px; height: 96px; }
@media (min-width: 900px) { .logo img { width: 80px; height: 80px; } }
.nav-desktop { display: none; }
.nav-desktop ul, .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: currentColor; }
.social { display: flex; gap: 14px; align-items: center; }
.social a { display: inline-flex; padding: 4px; border-radius: 50%; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.header-social { display: none; }
.menu-toggle { background: none; border: 0; color: inherit; padding: 10px; cursor: pointer; border-radius: 4px; }
.menu-toggle svg { width: 34px; height: 34px; stroke: currentColor; }
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-desktop ul { display: flex; gap: 22px; }
  .header-social { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-menu { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--deep-teal); color: var(--white); padding: 24px 16px 32px; text-align: right; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .menu-close { position: absolute; top: 34px; right: 16px; }
.mobile-menu ul { margin-top: 110px; display: grid; gap: 4px; }
.mobile-menu .nav-link { display: inline-block; padding: 8px 0; font-size: 17px; }
.mobile-menu .social { justify-content: flex-end; margin-top: 16px; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--white); background: #2a3a46; overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-img { object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(16, 28, 40, .28); }
.hero .container { position: relative; z-index: 1; text-align: center; padding-top: 120px; }
.hero h1 { font-size: 46px; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .lead { font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
@media (min-width: 900px) {
  .hero { min-height: 100vh; max-height: 980px; }
  .hero .container { display: flex; justify-content: flex-end; }
  .hero .hero-text { width: 50%; text-align: center; margin-top: -200px; }
  .hero h1 { font-size: 64px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 64px; padding: 12px 28px; border-radius: 40px; font-family: var(--sans); font-size: 18px; text-decoration: none; color: var(--white); background: var(--btn-teal); border: 0; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: var(--deep-teal); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--deep-teal); }
.btn--small { min-width: 160px; min-height: 52px; font-size: 16px; }

/* ---------- Quick links (3 buttons) ---------- */
.quick-links { padding: 40px 0 56px; }
.quick-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; text-align: center; }
.quick-links p { margin: 16px 0 0; font-size: 18px; }
@media (min-width: 900px) { .quick-links { padding: 70px 0; } .quick-links ul { grid-template-columns: repeat(3, 1fr); } .quick-links p { font-size: 15px; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--schedule { background: var(--sched-bg); text-align: center; }
.section--schedule h2 { color: var(--red); font-size: 38px; }
.section--schedule .sub { font-family: var(--serif); font-size: 26px; max-width: 640px; margin: 0 auto 40px; }
.section--light { background: var(--mist); }
.section--schedule .btn { margin-top: 56px; }

/* Schedule table — literal styles from WDPIST/timetable/timetable-code-for-site.html */
.wdp-table-container { width: 100%; overflow-x: auto; margin: 20px auto; max-width: 1018px; }
.wdp-schedule-table { width: 100%; border-collapse: collapse; background-color: #d9e4e6; border: 2px solid #8c0f14; min-width: 300px; }
.wdp-schedule-table th { font-family: 'Caudex', serif; background-color: #d9e4e6; color: #8c0f14; font-weight: 700; padding: 14px 18px; text-align: left; border: 1px solid #b0c4c9; font-size: 20px; border-bottom: 2px solid #8c0f14; }
.wdp-schedule-table td { font-family: 'Rubik', sans-serif; padding: 14px 18px; border: 1px solid #b0c4c9; color: #1a1a1a; font-size: 17px; white-space: nowrap; text-align: left; }
.wdp-schedule-table th:nth-child(2), .wdp-schedule-table td:nth-child(2),
.wdp-schedule-table th:nth-child(3), .wdp-schedule-table td:nth-child(3),
.wdp-schedule-table th:nth-child(4), .wdp-schedule-table td:nth-child(4) { text-align: center; }
.wdp-schedule-table tbody tr:hover { background-color: #cddce0; transition: background-color .2s; }
@media screen and (max-width: 600px) {
  .wdp-schedule-table th, .wdp-schedule-table td { padding: 10px 8px; font-size: 15px; }
  .wdp-schedule-table td { white-space: normal; }
}

/* WDP Türkiye */
.family { display: grid; gap: 24px; align-items: center; text-align: center; }
.family img { width: 220px; margin: 0 auto; }
.family h2 { font-size: 32px; }
.family p { font-size: 18px; max-width: 460px; margin: 0 auto 40px; }
@media (min-width: 900px) {
  .family { grid-template-columns: 1fr 1fr; text-align: left; }
  .family .family-text { order: 1; } .family .family-logo { order: 2; }
  .family p { margin-left: 0; font-size: 16px; }
  .family img { width: 260px; }
}

/* ---------- Inner page hero (teal gradient band) ---------- */
.page-hero { background: linear-gradient(180deg, #0f4d50 0%, #2f8189 100%); color: var(--white); padding: 190px 0 60px; }
.page-hero h1 { font-size: 48px; margin: 0; }
@media (min-width: 900px) { .page-hero { padding: 150px 0 50px; } }

/* ---------- Instructors ---------- */
.ins-hero { position: relative; min-height: 1000px; color: var(--white); background: #12191c; display: flex; align-items: center; overflow: hidden; }
.ins-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.ins-hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 14, 16, .45); }
.ins-hero .container { position: relative; z-index: 1; text-align: center; padding-top: 120px; }
.ins-hero h1 { font-size: 46px; color: #e8f2f3; }
.ins-hero ul { list-style: none; padding: 0; margin: 60px 0 0; display: grid; gap: 14px; }
.ins-hero ul a { text-decoration: none; font-size: 19px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.ins-hero ul a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ins-hero { min-height: 100vh; max-height: 900px; }
  .ins-hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; padding-left: 200px; }
  .ins-hero h1 { font-size: 48px; }
  .ins-hero ul { margin: 0; font-size: 15px; gap: 10px; }
  .ins-hero ul a { font-size: 16px; }
}
.instructor { padding: 80px 0; scroll-margin-top: 0; }
.instructor--teal { background: linear-gradient(180deg, #164f53 0%, #2e7f87 100%); color: #f1f7f8; }
.instructor--light { background: var(--mist); }
.instructor h2 { font-size: 46px; margin-bottom: 40px; }
.instructor .photo img { border-radius: 24px; width: 100%; max-width: 472px; aspect-ratio: 3 / 4; object-fit: cover; }
.instructor .titles { font-size: 18px; margin: 48px 0 32px; }
.instructor .bio p { margin-bottom: 0; }
.instructor .bio p + p, .instructor .bio .gap { margin-top: 1.4em; }
.instructor .bio ul { margin: 1em 0 0; padding-left: 58px; }
.instructor .bio strong { font-weight: 500; }
@media (min-width: 900px) {
  .instructor .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .instructor .photo img { max-width: 420px; }
  .instructor--photo-left .photo { order: 1; } .instructor--photo-left .text { order: 2; }
  .instructor--photo-right .photo { order: 2; justify-self: end; } .instructor--photo-right .text { order: 1; }
  .instructor .titles { margin-top: 0; font-size: 15px; }
  .instructor .bio { font-size: 14.5px; }
}

/* ---------- Locations ---------- */
.locations-grid { display: grid; gap: 64px; text-align: center; }
.location h2 { font-size: 34px; }
.location p { font-size: 18px; }
.location .map-placeholder, .location .map { display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: 24px; border: 0; border-radius: 16px; }
.location .map-placeholder { display: flex; align-items: center; justify-content: center; background: #e8f4f6; color: #454C51; border: 2px dashed #4FA8B2; font-size: 18px; }
@media (min-width: 900px) { .locations-grid { grid-template-columns: 1fr 1fr; } }
.center { text-align: center; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-grid p { font-size: 18px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 96px; } .contact-grid p { font-size: 16px; } }
.contact-social { margin: 32px 0; color: var(--ink); }
.mail-link { display: inline-block; font-size: 16px; word-break: break-all; }

/* ---------- Form (mailto, no backend) ---------- */
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 17px; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 18px 22px; border: 1px solid #b6bdc3; border-radius: 12px; background: var(--white); color: var(--ink); }
.form textarea { min-height: 136px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--moonstone); outline-offset: 1px; }
.form .btn { justify-self: start; margin-top: 12px; }
.form-note { font-size: 14px; opacity: .85; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--mist); padding: 64px 0 40px; }
.site-footer .footer-brand { font-family: var(--serif); font-size: 32px; color: var(--white); margin-bottom: 24px; }
.footer-grid { display: grid; gap: 40px; }
.site-footer .social { gap: 40px; margin: 28px 0; color: var(--white); }
.site-footer .social svg { width: 40px; height: 40px; }
.site-footer .btn--red { background: #7a1a1a; }
.site-footer .btn--red:hover { background: var(--deep-teal); }
.copyright { margin: 72px 0 0; color: var(--white); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .site-footer .social svg { width: 26px; height: 26px; }
  .site-footer .social { gap: 22px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; text-align: center; }
.notfound h1 { font-size: 42px; color: var(--red); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.plain { list-style: none; padding: 0; margin: 0; font-size: 18px; display: grid; gap: 6px; }
.mt-lg { margin-top: 56px; }
.copyright--light { color: inherit; }
.brand-line { margin: 0; font-family: var(--serif); font-size: 24px; }
