/* ============================================
   Zaman Saatcilik - Luxury Watch Boutique
   Color Scheme:
     Primary:    #0D1B2A (Dark Navy)
     Accent:     #C9A84C (Gold)
     Secondary:  #1B2838
     Background: #F5F5F0
   ============================================ */

/* ---------- Base & Typography ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #0D1B2A;
  --accent: #C9A84C;
  --accent-light: #e0c76e;
  --secondary: #1B2838;
  --bg: #F5F5F0;
  --bg-alt: #EAE8E0;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f0;
  --text-muted: #6b7280;
  --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #e0c76e 50%, #C9A84C 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Gold Accent Utilities ---------- */
.text-gold { color: var(--accent); }
.bg-gold { background-color: var(--accent); }
.border-gold { border-color: var(--accent); }

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-gradient-bg {
  background: var(--gold-gradient);
}

.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
}

/* ---------- Navigation ---------- */
.nav-main {
  background: var(--primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-main.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Clockwork decoration */
.clockwork-bg {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.04;
  pointer-events: none;
}

.clockwork-circle {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: rotate-slow 60s linear infinite;
}

.clockwork-circle:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.clockwork-circle:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-direction: reverse;
  animation-duration: 45s;
}

.clockwork-circle:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-duration: 30s;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tick marks inside clockwork */
.tick-mark {
  position: absolute;
  width: 2px;
  height: 15px;
  background: var(--accent);
  top: 0;
  left: 50%;
  transform-origin: 1px 300px;
}

/* ---------- Section Styles ---------- */
.section-dark {
  background: var(--primary);
  color: var(--text-light);
}

.section-secondary {
  background: var(--secondary);
  color: var(--text-light);
}

.section-alt {
  background: var(--bg-alt);
}

.section-divider {
  width: 80px;
  height: 1px;
  background: var(--gold-gradient);
  margin: 0 auto;
}

.section-divider-left {
  width: 80px;
  height: 1px;
  background: var(--gold-gradient);
}

/* ---------- Cards ---------- */
.watch-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.watch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13,27,42,0.15);
  border-color: var(--accent);
}

.watch-card-image {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.watch-card-image .watch-icon {
  font-size: 4rem;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.watch-card:hover .watch-icon {
  opacity: 1;
  transform: scale(1.1);
}

.watch-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
}

/* ---------- Brand Logo Placeholders ---------- */
.brand-logo-box {
  width: 160px;
  height: 80px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-logo-box:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(201,168,76,0.2);
}

/* ---------- Service Cards ---------- */
.service-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(13,27,42,0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(201,168,76,0.1);
  color: var(--accent);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--primary);
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 14px 36px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 12px 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ---------- Form Inputs ---------- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d1d5db;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  outline: none;
  color: var(--text-dark);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-input-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}

.form-input-dark:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

/* ---------- Blog Card ---------- */
.blog-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13,27,42,0.12);
}

.blog-card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(13,27,42,0.6), transparent);
}

.blog-category {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
}

/* ---------- Timeline (About Page) ---------- */
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 3rem;
  border-left: 1px solid rgba(201,168,76,0.3);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* ---------- Brand Profile Card ---------- */
.brand-profile {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.brand-profile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.brand-profile:hover::after {
  transform: scaleX(1);
}

.brand-profile:hover {
  box-shadow: 0 15px 30px rgba(13,27,42,0.1);
}

/* ---------- Repair Pricing Table ---------- */
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.2s ease;
}

.pricing-row:hover {
  background: rgba(201,168,76,0.03);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.pricing-row:last-child {
  border-bottom: none;
}

/* ---------- Counter / Stat ---------- */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  background: var(--secondary);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 41px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 41px
  );
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .stat-number {
    font-size: 2rem;
  }

  .clockwork-bg {
    width: 300px;
    height: 300px;
    right: -20%;
  }
}

/* ---------- Page Header Banner ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Luxury Separator ---------- */
.luxury-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.luxury-sep .line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.luxury-sep .diamond {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ---------- Watch face decorative element ---------- */
.watch-face-deco {
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  opacity: 0.2;
}

.watch-face-deco::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 35%;
  background: var(--accent);
  bottom: 50%;
  transform-origin: bottom center;
  transform: rotate(-30deg);
}

.watch-face-deco::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 45%;
  background: var(--accent);
  bottom: 50%;
  transform-origin: bottom center;
  transform: rotate(60deg);
}

/* ============================================
   Responsive Overflow & Text Protection
   ============================================ */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Break long words/URLs to prevent overflow */
body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, li, td, th, span, a, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    max-width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Prevent pre/code blocks from overflowing */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

