/* ==========================================================================
   SUZEN GUVEN & NAZIME AYDIN FOUNDATION
   Style Sheet - Refined, Timeless, Mobile-First Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Warm Ivory, Charcoal, and Muted Gold */
  --bg-primary: #FAF8F5;       /* Main warm ivory background */
  --bg-secondary: #F4F0EA;     /* Slightly deeper ivory for subtle distinction */
  --text-primary: #2A2826;     /* Deep charcoal for headings & primary text */
  --text-secondary: #4A4744;   /* Muted charcoal for body paragraphs */
  --text-muted: #736E68;       /* Subtle warm grey for metadata & footer */
  --accent-gold: #C5A059;      /* Muted gold accent */
  --accent-gold-hover: #A38243;/* Deeper gold for hover interactions */
  --border-light: #E8E3DB;     /* Hairline warm border */
  --border-accent: #DFD7CA;    /* Subtle gold-infused line border */

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout Spacing */
  --site-max-width: 780px;      /* Centered reading width for understated elegance */
  --spacing-xs: 0.5rem;         /* 8px */
  --spacing-sm: 1rem;           /* 16px */
  --spacing-md: 1.75rem;        /* 28px */
  --spacing-lg: 3rem;           /* 48px */
  --spacing-xl: 5rem;           /* 80px */

  /* Transitions */
  --transition-smooth: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-color: color 0.25s ease, border-color 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px base for effortless legibility */
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 var(--spacing-sm);
  overflow-x: hidden;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Focus styles for keyboard accessibility */
:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Selection highlight */
::selection {
  background-color: #F0E6D2;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   3. Main Container Layout
   -------------------------------------------------------------------------- */
.site-wrapper {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Header & Emblem Mark
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-sm);
}

.emblem-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.emblem-icon {
  width: 54px;
  height: 54px;
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.emblem-container:hover .emblem-icon {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  width: 100%;
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 5.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--spacing-sm) auto;
  line-height: 1.7;
}

.hero-description {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--spacing-lg) auto;
  line-height: 1.7;
}

/* Decorative Divider & Tagline */
.tagline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.divider-line {
  width: 60px;
  height: 1px;
  background-color: var(--accent-gold);
  margin: 0 auto var(--spacing-md) auto;
  border: none;
  opacity: 0.85;
}

.tagline-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   6. About Us Section
   -------------------------------------------------------------------------- */
.about-section {
  width: 100%;
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-xs);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.about-content p {
  font-size: clamp(1.05rem, 2.2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: left;
}

/* --------------------------------------------------------------------------
   7. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.footer-location {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.footer-contact {
  margin-bottom: var(--spacing-md);
}

.email-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-gold);
  padding: 4px 6px;
  min-height: 44px;
  line-height: 2.2;
  transition: var(--transition-color);
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--accent-gold-hover);
  border-bottom-color: var(--accent-gold-hover);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
  font-family: var(--font-serif);
}

/* --------------------------------------------------------------------------
   8. Fade-in Animations (Subtle & Elegant)
   -------------------------------------------------------------------------- */
.fade-in-element {
  opacity: 0;
  transform: translateY(14px);
  transition: var(--transition-smooth);
  will-change: opacity, transform;
}

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

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   9. Media Queries & Accessibility Adjustments
   -------------------------------------------------------------------------- */

/* Target 375px & narrow mobile viewports specifically for optimal spacing */
@media (max-width: 480px) {
  body {
    padding: 0 1.25rem;
  }

  .site-wrapper {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
  }

  .hero-title {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
  }

  .hero-subtitle,
  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .emblem-icon {
    width: 46px;
    height: 46px;
  }
}

/* Medium tablet width (768px) optimization */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    padding: 0 1.75rem;
  }

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

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-element {
    opacity: 1 !important;
    transform: none !important;
  }
}
