/* ============================================================
   IC LINKS CO — Global Design System
   iclinksco.com
   "The charm is not the magic. The meaning is the magic."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Dancing+Script:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors — Sage · Desert Rose · Ivory · Charcoal · Kraft */
  --sage:         #A6B79A;   /* Primary sage */
  --sage-dark:    #839477;   /* Deep sage */
  --sage-light:   #C3CFBB;   /* Light sage */
  --sage-mist:    #F1F3EF;   /* Near-white sage tint */

  --rose:         #C9918E;   /* Desert rose — primary accent + CTA */
  --rose-dark:    #AA726F;   /* Deep rose */
  --rose-light:   #E3C7C5;   /* Light rose */
  --rose-mist:    #F6ECEC;   /* Near-white rose tint */

  --gold:         #D3B48C;   /* Kraft — jewelry / charm accent */
  --gold-light:   #F8E2C5;

  --ivory:        #F7F3EE;   /* Page background */
  --ivory-dark:   #EEE6DA;   /* Section alternates */
  --ivory-deep:   #E6DCCD;   /* Deeper warm tint */

  --charcoal:     #333333;   /* Primary text */
  --charcoal-mid: #575552;   /* Secondary text */
  --charcoal-light:#86837E;  /* Muted text */
  --white:        #FFFFFF;
  --border:       #E0D8CC;   /* Subtle borders */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent:  'Dancing Script', cursive;

  /* Spacing */
  --section-pad:  6rem 0;
  --container:    1180px;
  --radius:       6px;
  --radius-lg:    14px;
  --radius-pill:  100px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:        0.3s var(--ease);

  /* Shadows */
  --shadow-soft:  0 14px 40px rgba(56,53,47,0.08);
  --shadow-card:  0 18px 50px rgba(56,53,47,0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.015em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
h5 { font-size: 0.82rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

em { font-style: italic; }
/* Script accent for emphasized words inside headings (e.g. hero taglines) */
h1 em, h2 em, h3 em { font-family: var(--font-accent); font-style: normal; font-weight: 500; }

p { color: var(--charcoal-mid); line-height: 1.85; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 1rem;
  display: block;
}
.eyebrow-sage { color: var(--sage-dark); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  border: 1.5px solid var(--rose);
}
.btn-primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(165,106,98,0.30);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
  border: 1.5px solid var(--sage);
}
.btn-sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(110,124,99,0.28);
}

.btn-outline-sage {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage);
}
.btn-outline-sage:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.72rem; }
.btn-block { width: 100%; }

/* ── Section Utilities ── */
.section { padding: var(--section-pad); }
.section-alt   { background: var(--ivory-dark); }
.section-sage  { background: var(--sage); }
.section-sage h1, .section-sage h2, .section-sage h3 { color: var(--white); }
.section-sage p { color: var(--sage-mist); }
.section-sage .eyebrow { color: var(--white); opacity: 0.85; }
.section-rose  { background: var(--rose-mist); }
.section-dark  { background: var(--charcoal); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header p { max-width: 620px; margin-top: 1rem; }
.section-header.centered p { margin: 1rem auto 0; }

/* ── Divider ── */
.divider {
  width: 56px;
  height: 1.5px;
  background: var(--gold);
  margin: 1.3rem 0;
}
.centered .divider { margin: 1.3rem auto; }
.divider-dot {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 1.3rem 0; color: var(--gold);
}
.centered .divider-dot { justify-content: center; }
.divider-dot::before, .divider-dot::after {
  content: ''; height: 1px; width: 42px; background: var(--gold-light);
}
.divider-dot span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.card-body { padding: 2rem; }
.card-img { width: 100%; height: 260px; object-fit: cover; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(142,159,134,0.16);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--sage-mist);
  color: var(--sage-dark);
}
.badge-rose { background: var(--rose-mist); color: var(--rose-dark); }
.badge-gold { background: #F6F0E8; color: #A6875F; }

/* ── Price Tag ── */
.price-tag {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.price-tag span { font-size: 0.95rem; font-weight: 400; color: var(--charcoal-light); font-family: var(--font-body); }

/* ── Toast / Alert ── */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--sage-mist); color: var(--sage-dark); border-left: 4px solid var(--sage); }
.alert-error   { background: var(--rose-mist); color: var(--rose-dark); border-left: 4px solid var(--rose); }
.alert-info    { background: #EEF3F4; color: #356068; border-left: 4px solid #7FA9AE; }

/* ── Page Hero (reusable, inner pages) ── */
.page-hero {
  background: var(--sage);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--white); opacity: 0.85; }
.page-hero p { color: var(--sage-mist); max-width: 600px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--sage-dark); }
.breadcrumb a:hover { color: var(--rose-dark); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--charcoal-mid);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  background: var(--sage);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-sage   { color: var(--sage-dark); }
.text-rose   { color: var(--rose-dark); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--charcoal-light); }
.serif       { font-family: var(--font-display); }
.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; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeUp 0.8s var(--ease) both; }
.animate-fade-up-delay-1 { animation: fadeUp 0.8s 0.15s var(--ease) both; }
.animate-fade-up-delay-2 { animation: fadeUp 0.8s 0.3s var(--ease) both; }
.animate-fade-up-delay-3 { animation: fadeUp 0.8s 0.45s var(--ease) both; }

/* Reveal-on-scroll (driven by site.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-pad: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 1.25rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
}
