/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Floral, Elegant */
  --color-bg: #f8f4f1;              /* soft light beige */
  --color-bg-alt: #ffffff;          /* cards, surfaces */
  --color-text: #2b2320;            /* deep warm brown */
  --color-text-muted: #7a6d65;      /* muted copy */

  --color-primary: #d89aa8;         /* blush pink */
  --color-primary-soft: #f5dde3;    /* soft blush tint */
  --color-accent-gold: #c8a772;     /* subtle gold */
  --color-accent-green: #7fa38c;    /* natural green */

  --color-success: #6fa98c;
  --color-warning: #e2b26a;
  --color-danger: #c45c67;

  --gray-50: #faf7f5;
  --gray-100: #f1ebe7;
  --gray-200: #e2d7d0;
  --gray-300: #d0c2b9;
  --gray-400: #b39e90;
  --gray-500: #8e796a;
  --gray-600: #6d5a4f;
  --gray-700: #504039;
  --gray-800: #332723;
  --gray-900: #211816;

  /* Typography */
  --font-sans: "Cormorant Garamond", "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0-96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - soft & refined */
  --shadow-sm: 0 6px 18px rgba(26, 19, 15, 0.08);
  --shadow-md: 0 18px 45px rgba(26, 19, 15, 0.12);
  --shadow-soft-gold: 0 0 0 1px rgba(200, 167, 114, 0.12), 0 14px 40px rgba(26, 19, 15, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
video,
canvas,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Remove link underlines by default (we'll re-style) */
a {
  text-decoration: none;
  color: inherit;
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 3.4vw + 1.2rem, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 1.6vw + 0.9rem, var(--font-size-3xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

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

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-primary));
  transition: width var(--transition);
}

a:hover::after,
a:focus-visible::after {
  width: 100%;
}

a:hover {
  color: var(--color-accent-gold);
}

hr {
  border: none;
  border-top: 1px solid rgba(179, 158, 144, 0.3);
  margin: var(--space-8) 0;
}

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.m-auto {
  margin: auto;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }
.pt-16 { padding-top: var(--space-16); }
.pb-16 { padding-bottom: var(--space-16); }

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

/* ========================================================================
   Components
   ======================================================================== */

/* Buttons - elegant with subtle gold accent */
.button,
button.button,
input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold));
  color: #fff!important;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.button--ghost {
  background: transparent;
  color: var(--color-text)!important;
  border-color: rgba(200, 167, 114, 0.5);
  box-shadow: none;
}

.button--light {
  background: var(--color-bg-alt);
  color: var(--color-text)!important;
  border-color: rgba(200, 167, 114, 0.4);
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Inputs & form controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(179, 158, 144, 0.5);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

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

input::placeholder,
textarea::placeholder {
  color: rgba(122, 109, 101, 0.8);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px rgba(200, 167, 114, 0.5);
  background-color: #fff;
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: rgba(241, 235, 231, 0.9);
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Card - for services, testimonials, galleries */
.card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft-gold);
  border: 1px solid rgba(200, 167, 114, 0.12);
}

.card--soft {
  background: linear-gradient(145deg, rgba(248, 244, 241, 0.98), #ffffff);
}

.card__header {
  margin-bottom: var(--space-4);
}

.card__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-1);
}

.card__subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.card__body {
  font-size: var(--font-size-sm);
}

/* ========================================================================
   Accessibility & Motion
   ======================================================================== */

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

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

/* ========================================================================
   Theming Helpers
   ======================================================================== */

.bg-primary { background-color: var(--color-primary); }
.bg-soft { background-color: var(--gray-50); }
.bg-alt { background-color: var(--color-bg-alt); }

.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-accent-gold); }
.text-green { color: var(--color-accent-green); }
.text-uppercase { text-transform: uppercase; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 167, 114, 0.4);
  background: rgba(245, 221, 227, 0.3);
  color: var(--color-text);
}
