/* /assets/css/site.css
   The Cloud Forest Retreat
   Brand tokens + global typography + base UI components
*/

:root{
  /* Brand colors */
  --bg: #A1BFAA;            /* site background */
  --text: #E7E4D1;          /* light text on dark surfaces */
  --forest: #0D5925;        /* primary green */
  --orange: #E0643A;        /* CTA accent */
  --beige: #F5F5DC;         /* soft surface */
  --gray: #D3D3D3;          /* borders */
  --gold: #FFD700;          /* luxury accent */
  --sky: #87CEEB;           /* secondary accent */

  /* Practical neutrals */
  --ink: #0b1a10;           /* dark readable text on light surfaces */
  --muted: rgba(11,26,16,0.70);
  --mutedOnDark: rgba(231,228,209,0.80);

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --pad: 18px;

  /* Radius + shadow */
  --r: 18px;
  --r2: 24px;
  --line: rgba(11,26,16,0.12);
  --shadow: 0 18px 55px rgba(13,89,37,0.16);

  /* Buttons */
  --btn-r: 14px;
  --btn-pad-y: 12px;
  --btn-pad-x: 14px;

  /* Focus */
  --focus: 0 0 0 4px rgba(224,100,58,0.25);
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

img{
  max-width:100%;
  display:block;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Container helpers */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Page spacing */
.page{
  padding: 26px;
  margin-top: 18px;
}

.card{
  background: rgba(245,245,220,0.72); /* beige surface with soft transparency */
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  color: var(--ink); /* readable on beige */
}

.section{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(11,26,16,0.12);
}

/* Typography */
h1, h2, h3, h4{
  font-family: var(--font-head);
  color: var(--forest);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.08;
}

h1{
  font-size: clamp(34px, 4.6vw, 56px);
}

h2{
  font-size: clamp(22px, 2.4vw, 30px);
}

h3{
  font-size: 18px;
}

p{
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  max-width: 90ch;
}

.small{
  font-size: 13px;
  color: var(--muted);
}

/* On-dark text helpers */
.onDark{
  color: var(--text);
}
.onDark .muted{
  color: var(--mutedOnDark);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-r);
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}

.btn:active{
  transform: scale(0.99);
}

.btn:focus{
  outline: none;
  box-shadow: var(--focus);
}

.btn.primary{
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(224,100,58,0.22);
}

.btn.primary:hover{
  filter: brightness(0.97);
}

.btn.secondary{
  background: rgba(245,245,220,0.70);
  border-color: rgba(13,89,37,0.22);
  color: var(--forest);
}

.btn.secondary:hover{
  filter: brightness(0.98);
}

.btn.ghost{
  background: transparent;
  border-color: rgba(231,228,209,0.40);
  color: var(--text);
}

.btn.ghost:hover{
  background: rgba(231,228,209,0.10);
}

/* Pills / badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13,89,37,0.18);
  background: rgba(245,245,220,0.60);
  box-shadow: 0 10px 26px rgba(13,89,37,0.10);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--forest);
}

/* Inputs (for booking/contact later) */
.input, .select, .textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(13,89,37,0.20);
  background: rgba(245,245,220,0.85);
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  box-shadow: 0 10px 26px rgba(13,89,37,0.10);
  font-family: var(--font-body);
}

.textarea{
  min-height: 120px;
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus{
  box-shadow: var(--focus);
  border-color: rgba(224,100,58,0.35);
}

/* Simple layout utilities */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .page{ padding: 18px; }
  .grid2{ grid-template-columns: 1fr; }
}

/* =========================================================
   TCFR Footer (used by /assets/includes/footer.html)
   - Social icon row + copyright line
   - Matches TCFR palette and looks good on mobile + desktop
========================================================= */

.tcfr-footer{
  margin-top: 28px;
  padding: 18px 0 26px;
}

.tcfr-footerShell{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.tcfr-social{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(245,245,220,0.62);
  border: 1px solid rgba(11,26,16,0.12);
  box-shadow: 0 14px 34px rgba(13,89,37,0.10);
}

.tcfr-social a{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(13,89,37,0.14);
  background: rgba(255,255,255,0.45);
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}

.tcfr-social a:hover{
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(0.98);
  background: rgba(255,255,255,0.58);
}

.tcfr-social a:focus{
  outline: none;
  box-shadow: var(--focus);
}

.tcfr-social img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.tcfr-footerCopy{
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(11,26,16,0.72);
  font-weight: 700;
}

@media (max-width: 420px){
  .tcfr-social{
    width: calc(100% - (var(--pad) * 2));
    border-radius: 22px;
    padding: 12px;
  }
  .tcfr-social a{
    width: 46px;
    height: 46px;
  }
  .tcfr-social img{
    width: 23px;
    height: 23px;
  }
}
