/* Import Inria Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:wght@300;400;700&display=swap');

/* BASE */
body {
    margin: 0;
    font-family: 'Inria Sans',sans-serif;  /* @judykuang adjusted font */
    background-color: #f4f4f4;
    color: #111;
}

/* NAVBAR */
.nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 50px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 26px;
    color: #111;
}

.nav-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover{
    color: #ff6a00;
}

.nav-cta {
    text-decoration: none;
    background: #ff6a00;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background: #e55c00;
}

.logo {
    margin: 0;
}

/* HERO */
.hero {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 35px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #555;
}

/* PRICING SECTION */
.pricing {
    max-width: 850px;
    margin: 0 auto;
    padding: 15px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
}

/* GRID: 3 COLUMNS x 2 ROWS */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* CARD STYLE */
.card {
    background: white;
    border-radius: 16px;
    height: 200px;
    padding: 45px 20px;
    text-align: center;

    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.card h3 {
    margin: 0;
    font-size:20px;
}

.card p {
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

/* EMERGENCY CARD OUTLINE */
.emergency-card {
    border: 2.0px solid #d92d20;              /* thin red outline */
    box-shadow: 0 10px 22px rgba(217,45,32,0.08); /* subtle red glow */
}

.emergency-card:hover {
    box-shadow: 0 16px 32px rgba(217,45,32,0.12);
}


/* BUTTON */
.card-btn {
    margin-top: 20px;
    padding: 10px 14px; 
    font-size: 14px;
    border: none;
    background-color: #ff6a00;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.card-btn:hover {
    background-color: #e55c00;
}

/* EMERGENCY BUTTON ONLY */
.emergency-btn {
  text-decoration: none;
}
.emergency-btn {
    background-color: #d92d20;
}

.emergency-btn:hover {
    background-color: #b42318;
}

/* ---- @judykuang IMPLEMENTED STYLING FOR PAGE ELEMENTS IN DARK MODE TOGGLE ---- */

[data-theme="dark"] body {
    background-color: #0f172a;
    color: white;
}

[data-theme="dark"] .nav {
    background-color: #1e3a5f;
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .nav-links a,
[data-theme="dark"] .logo {
    color: white !important;
}

[data-theme="dark"] .hero {
    background: none !important;
    background-color: #1e3a5f !important;
    color:white;
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .hero p {
    color: #cbd5e1;
}

[data-theme="dark"] .card {
    background-color: #1e3a5f;
    color:white;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card h3,
[data-theme="dark"] .card p {
    color:white;
}

[data-theme="dark"] .card-btn {
    background-color: #ff8c00;
    color:white;
}

[data-theme="dark"] .emergency-card {
    background-color: #2d1b1b;
    border-color: #ff8c00;
}

.btn.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 5px;
    margin-left: 10px;
    align-items: center;
}