
/* Oneflame Hybrid Styles (Fire + Lake) */

:root {
  --bg: #FAF3EB;               /* Light sand background */
  --surface: #F5F1ED;          /* Soft panel surface */
  --panel: #EAE7E1;            /* Lighter section backdrop */
  --text: #2E2E2E;             /* Deep earth for contrast */
  --muted: #707070;            /* Soft gray for subtext */
  --accent: #FF774B;           /* Fire: Sunset Coral */
  --accent-2: #4BAEA0;         /* Water: Seagrass Teal */
  --accent-3: #4B7FBA;         /* Sky: Ocean Blue */
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

/* Customer Support Modal Styles */
.support-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.support-modal-content {
    background-color: var(--bg);
    margin: 5% auto;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.support-header {
    background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 100%);
    color: white;
    padding: 20px 25px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.support-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.support-close:hover {
    opacity: 1;
}

.support-body {
    padding: 25px;
}

.support-body .form-group {
    margin-bottom: 15px;
}

.support-body input,
.support-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}

.support-body input:focus,
.support-body textarea:focus {
    outline: none;
    border-color: var(--accent-2);
}

.support-body textarea {
    min-height: 100px;
    resize: vertical;
}

.quick-support-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #FF5722 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.quick-support-btn:hover {
    transform: translateY(-2px);
}

.quick-support-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-indicator {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--muted);
}

.chat-container {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.customer {
    background: var(--accent-2);
    color: white;
    margin-left: auto;
}

.message.admin {
    background: white;
    border: 1px solid #ddd;
    color: var(--text);
}

.message-time {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.typing-indicator {
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
    color: var(--muted);
    text-align: center;
}

/* Floating Support Button */
.floating-support-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #FF5722 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 119, 75, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 119, 75, 0.4);
}

.floating-support-btn span {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .support-modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }

    .support-header {
        padding: 15px 20px;
    }

    .support-header h2 {
        font-size: 1.3em;
    }

    .support-body {
        padding: 20px;
    }

    .floating-support-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .floating-support-btn span {
        display: none;
    }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent-3); text-decoration: none; }

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 12px;
  text-align: center;
}

.site-logo {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
  margin-bottom: 16px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.site-nav a:hover {
  background-color: rgba(75, 127, 186, 0.1);
}

.hero {
  max-width: 980px;
  margin: 24px auto 8px;
  padding: 48px 20px 32px;
  text-align: center;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--accent);
}

.subhead {
  max-width: 840px;
  margin: 0 auto 24px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-1px); filter: saturate(1.05); }
.cta:active { transform: translateY(0); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 18px auto 6px;
  padding: 0 20px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}

.services-grid {
  max-width: 1100px;
  margin: 18px auto 6px;
  padding: 0 20px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.services-row-bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .services-row,
  .services-row-bottom {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
