@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=League+Spartan:wght@100;200;300;400;500;600;700;800;900&family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ========================================
   Carla Skin Clinic - Design System
   Elegant Gold/Ivory Theme
   ======================================== */

:root {
  --ivory: #FAF6F0;
  --blush: #EFE3D8;
  --grey: #8B8983;
  --grey-dark: #4A4A48;
  --gold: #C9A24B;
  --gold-soft: #D9BC7C;
  --espresso: #2B2622;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'League Spartan', sans-serif;
  background-color: var(--ivory);
  color: var(--espresso);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

h1 { font-size: 48px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }

p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-dark);
  font-weight: 400;
}

em {
  font-style: italic;
  color: var(--gold);
}

/* Elegant serif accent for pull quotes / decorative text */
.font-cormorant {
  letter-spacing: -0.02em;
}

/* ========================================
   Button Styles (ZAP-style)
   ======================================== */

.btn-primary {
  @apply px-8 py-3 text-white rounded font-semibold text-xs uppercase tracking-widest transition-all duration-300;
  background-color: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none; /* Ensure no underline */
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none; /* Remove default focus outline */
}

.btn-secondary {
  @apply px-8 py-3 rounded font-semibold text-xs uppercase tracking-widest transition-all duration-300;
  border: 1px solid var(--gold);
  color: var(--grey-dark);
  background-color: transparent;
  text-decoration: none; /* Ensure no underline */
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--gold);
  color: var(--ivory);
  transform: translateY(-1px);
  outline: none; /* Remove default focus outline */
}

.btn-white {
  @apply px-8 py-3 bg-white rounded font-semibold text-xs uppercase tracking-widest transition-all duration-300;
  color: var(--espresso);
  text-decoration: none; /* Ensure no underline */
}

.btn-white:hover,
.btn-white:focus-visible {
  box-shadow: 0 10px 15px -3px rgba(201, 162, 75, 0.15);
  transform: translateY(-1px);
  outline: none; /* Remove default focus outline */
}

/* ========================================
   Card Styles
   ======================================== */

.card {
  @apply rounded-lg transition-all duration-300;
  background-color: white;
  border: 1px solid var(--blush);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
}

/* ========================================
   Input Fields
   ======================================== */

.input-field {
  @apply w-full px-4 py-2 rounded transition-all duration-300;
  border: 1px solid var(--blush);
  background-color: white;
  color: var(--espresso);
}

.input-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 75, 0.15);
}

.input-field::placeholder {
  color: var(--grey);
}

/* ========================================
   Layout Utilities
   ======================================== */

.container-custom {
  @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.section-padding {
  @apply py-16 md:py-20 lg:py-24;
}

/* ========================================
   Text Utilities
   ======================================== */

.text-brand { color: var(--gold); }
.text-secondary { color: var(--grey); }
.text-primary { color: var(--espresso); }
.bg-brand { background-color: var(--gold); }
.bg-brand-light { background-color: var(--blush); }
.bg-ivory { background-color: var(--ivory); }

/* ========================================
   Animations (Inspired by ZAP)
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-slide-up { animation: slideUp 0.5s ease-in-out; }

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ========================================
   Selection
   ======================================== */

::selection { background-color: var(--gold-soft); color: var(--espresso); }

/* ========================================
   Links
   ======================================== */

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-soft); }

/* ========================================
   Table
   ======================================== */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

th { background-color: var(--gold); color: var(--ivory); font-weight: 600; padding: 12px 15px; text-align: left; }
td { border-bottom: 1px solid var(--blush); padding: 12px 15px; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background-color: var(--ivory); }

/* ========================================
   Code
   ======================================== */

code {
  background-color: var(--blush);
  color: var(--espresso);
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ========================================
   Navigation Dropdown (ZAP-style)
   ======================================== */

.dropdownNav {
  position: relative;
}

.dropdownNav:hover > .dropDownBox {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

/* ========================================
   Focus States for Accessibility
   ======================================== */

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