/*
Theme Name: Hippiina
Theme URI: https://hippiina.com
Description: Hippiina custom theme
Version: 1.0
Author: Hippiina
*/

/* =============================================
   Hippiina – Global Styles
   ============================================= */

:root {
  --green: #4a7c59;
  --green-dark: #2f5240;
  --green-light: #e8f0eb;
  --amber: #c8863e;
  --amber-light: #fdf3e7;
  --cream: #faf7f2;
  --brown: #2d1f0e;
  --brown-mid: #5c4433;
  --text: #3d2e1e;
  --text-muted: #7a6555;
  --bg: var(--cream);
  --border: #ddd6cc;
  --shadow: 0 2px 12px rgba(45, 31, 14, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 31, 14, 0.12);
  --radius: 8px;
  --radius-lg: 16px;

  --sans: 'Segoe UI', system-ui, Roboto, sans-serif;
  --heading: Georgia, 'Times New Roman', serif;

  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--green);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

img { max-width: 100%; height: auto; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  flex: 1;
  padding: 60px 0 80px;
}

.page-header {
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--green-light);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  margin-bottom: 0;
  color: var(--green-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-amber:hover {
  background: #a86e2e;
  border-color: #a86e2e;
  text-decoration: none;
}

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

/* ---- Section divider ---- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--green-light);
}

.section-amber {
  background: var(--amber-light);
}

/* ---- Price table ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th {
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) { background: var(--green-light); }

/* ---- Forms ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brown-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- Responsive grid ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Page-specific column ordering ---- */
.tunnit-content {
  order: 1;
}

.tunnit-pricing {
  order: 2;
}

@media (min-width: 769px) {
  .leirit-form {
    order: 1;
  }

  .leirit-pricing {
    order: 2;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .leirit-pricing {
    order: 1;
  }

  .leirit-form {
    order: 2;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 40px 0 60px;
  }

  .section {
    padding: 48px 0;
  }
}

/* App-level styles handled in styles/global.css */