/* ============================================================
   KUMARU LANKA — Global Styles
   ============================================================ */

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

:root {
  --primary:       #e07b39;
  --primary-dark:  #c96a2a;
  --primary-light: #fef3eb;
  --green-dark:    #1a2e1a;
  --green-mid:     #1a4a2e;
  --green-deep:    #0d2010;
  --text-main:     #1a1a1a;
  --text-muted:    #666;
  --text-light:    #999;
  --border:        #eee;
  --bg-light:      #f8f9f4;
  --bg-white:      #ffffff;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --shadow-card:   0 4px 20px rgba(0,0,0,.07);
  --shadow-hover:  0 10px 32px rgba(0,0,0,.12);
  --transition:    .2s ease;
  --nav-height:    70px;
  --max-width:     1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.6;
}

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

/* --- Typography --- */
h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p  { line-height: 1.7; }

/* --- Layout Utilities --- */
.container   { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-alt { background: var(--bg-light); }

/* --- Section Headers --- */
.section-header        { text-align: center; margin-bottom: 52px; }
.section-header h2     { color: var(--green-dark); margin-bottom: 12px; }
.section-header p      { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-sm       { padding: 8px 18px; font-size: 13px; }
.btn-lg       { padding: 14px 36px; font-size: 16px; }
.btn-full     { width: 100%; }

/* --- Stars --- */
.stars      { color: #f5a623; font-size: 14px; }
.stars-sm   { font-size: 12px; }

/* --- Pill/Tag badges --- */
.pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0f7ff; color: #1a6ab0;
}
.pill-green   { background: #eafaf0; color: #1a7a3a; }
.pill-orange  { background: #fef3eb; color: #c96a2a; }
.pill-purple  { background: #f3f0ff; color: #5a4ab0; }
.pill-teal    { background: #e0f5ef; color: #0d7a5a; }

/* --- Form Elements --- */
.form-group         { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label   { font-size: 13px; font-weight: 600; color: #555; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
  background: #fff;
  color: var(--text-main);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Page hero (non-home pages) --- */
.page-hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-dark) 100%);
  padding: calc(var(--nav-height) + 48px) 0 56px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1562602833-0f4ab2fc46e5?w=1400&q=60') center/cover;
  opacity: .18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { font-size: 18px; opacity: .8; max-width: 520px; margin: 0 auto; }

/* --- Scrollbar --- */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .section    { padding: 56px 0; }
  .form-row   { grid-template-columns: 1fr; }
  .container  { padding: 0 16px; }
  h1          { font-size: 32px; }
  h2          { font-size: 26px; }
}