/* Seagrass Studio - Global Premium Design System */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Light Mode Colors */
  --bg-primary: #F5F2ED;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EAE8E2;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8B9199;
  --color-primary: #1A4D5C;
  --color-secondary: #C8956F;
  --color-accent: #D4A574;
  --border-color: #D4C5B9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  /* Dark Mode Colors */
  --bg-primary: #0F2D38;
  --bg-secondary: #1A3D4D;
  --bg-tertiary: #2A4D5D;
  --text-primary: #E8E6E1;
  --text-secondary: #B8B8B8;
  --text-muted: #8B9199;
  --color-primary: #5BA3B5;
  --color-secondary: #D4A574;
  --color-accent: #C8956F;
  --border-color: #3A5A6D;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&family=Avenir+Next:wght@400;500;600;700&display=swap');

body {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.3px;
  transition: background-color var(--transition), color var(--transition);
}

html {
  scroll-behavior: smooth;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  transition: color var(--transition);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.75rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition), text-decoration var(--transition);
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ========== LAYOUT & GRID ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
}

/* BENTO GRID SYSTEM */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-tile {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

.bento-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.bento-tile-2x1 { grid-column: span 2; }
.bento-tile-1x2 { grid-row: span 2; }
.bento-tile-2x2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1024px) {
  .bento-tile-2x1 { grid-column: span 1; }
  .bento-tile-2x2 { grid-column: span 2; grid-row: span 1; }
  .bento-tile-1x2 { grid-row: span 1; }
}

@media (max-width: 768px) {
  .bento-tile-2x1,
  .bento-tile-2x2,
  .bento-tile-1x2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ========== GLASSMORPHISM ========== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

[data-theme="dark"] .glass {
  background: rgba(26, 26, 26, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== NEUMORPHISM ========== */
.neomorph {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .neomorph {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(255, 255, 255, 0.05);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 1024px) {
  nav {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }
}

.navbar-brand {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

#theme-toggle,
#language-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition);
  font-weight: 600;
}

#theme-toggle:hover,
#language-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .nav-controls {
    width: 100%;
    gap: 0.5rem;
  }

  #theme-toggle,
  #language-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

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

/* ========== HERO SECTION ========== */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero .btn {
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--color-primary);
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h6 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-section p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== FORMS ========== */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition);
  margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(200, 149, 111, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========== SECTIONS ========== */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  gap: 2rem;
  animation: fadeInUp 0.8s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.timeline-item:hover .timeline-icon {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.timeline-content {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-tile {
    padding: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }
.px-2 { padding: 0 1rem; }
.px-3 { padding: 0 1.5rem; }

/* ========== COOKIE CONSENT ========== */
#cookie-consent-banner {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  animation: slideUp 0.3s ease-out;
}

#cookie-consent-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#cookie-consent-banner span {
  color: var(--text-secondary);
  flex: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== BLOCKQUOTE STYLING ==== */
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote footer {
  margin-top: 1rem;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== LIST STYLES ==== */
ul, ol {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}
