/* --- Root Variables --- */
:root {
    --primary: #d9232d;
    --dark: #1a1a1a;
    --grey: #444444;
    --light-grey: #f9f9f9;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--grey);
    background-color: #fff;
}

/* --- Navigation (Shared across all) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 70px; /* Fixed height to prevent layout shift */
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
}

/* --- Hero & Page Headers (Unified) --- */
.hero, .page-header {
    padding: 100px 5% 80px;
    text-align: center;
    background: var(--light-grey);
    border-bottom: 1px solid #eee;
}

.hero h1, .page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--dark);
    margin-bottom: 1.2rem;
    font-weight: 800;
}
.hero h1 span, .page-header h1 span { color: var(--primary); }

.hero p, .page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--grey);
}

/* --- Main Content Containers --- */
.container { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }

/* --- Grid & Cards --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card, .price-card {
    padding: 2.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: var(--transition);
}
.card:hover, .price-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: block; text-align: center; }
.card h3 { text-align: center; color: var(--dark); margin-bottom: 1rem; font-weight: 700; }

/* --- Tables & Lists (Domains/Hosting) --- */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
thead { background: var(--dark); color: white; }
th, td { padding: 1.2rem; text-align: left; border-bottom: 1px solid #eee; }
.price-cell { font-weight: 600; color: var(--primary); font-size: 1.2rem; }

/* --- Footer (Updated Link Colors) --- */
footer {
    background: var(--dark);
    color: #fff; /* Main footer text to white */
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid h4 { color: #fff; margin-bottom: 1.5rem; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }

/* Footer Links set to White */
.footer-links a { 
    color: #ffffff; 
    text-decoration: none; 
    transition: var(--transition);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover { 
    color: var(--primary); 
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
}

/* --- Mobile Nav --- */
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--dark); }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 2rem; border-bottom: 2px solid var(--primary); box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
}

/* Add/Update these in your style.css */

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 3rem 2rem;
}

.featured-card {
    border-top: 5px solid var(--primary) !important;
}

.plan-name { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--dark); 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
}

.price-tag { margin-bottom: 2rem; }
.price-tag .amount { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.price-tag .period { font-size: 1rem; color: #888; }
.yearly-alt { display: block; font-size: 0.85rem; color: #666; margin-top: 5px; font-weight: 600; }

.features-list { 
    list-style: none; 
    text-align: left; 
    margin-bottom: 2.5rem; 
    padding: 0;
}

.features-list li { 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--grey);
}

.features-list i { color: #27ae60; font-size: 1rem; }

.btn-select {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--dark);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
}

.price-card:hover .btn-select {
    background: var(--primary);
}

.custom-quote {
    text-align: center;
    background: var(--light-grey);
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed #ccc;
    margin-top: 3rem;
}

.custom-quote i { color: var(--primary); margin-right: 10px; }
.custom-quote a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* --- Domain Table Styles --- */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem; /* Added padding at the bottom of the table */
}

thead { 
    background: var(--dark); 
    color: white; 
}

th, td { 
    padding: 1.2rem; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
}

.tld-cell { 
    font-weight: 800; 
    color: var(--dark); 
    font-size: 1.1rem;
}

.price-cell { 
    font-weight: 600; 
    color: var(--primary); 
    font-size: 1.2rem; 
}

/* Region Badges - Ensure these are present */
.region-badge { 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    display: inline-block;
}

.uk { background: #e3f2fd; color: #0d47a1; }     /* Light Blue / Dark Blue text */
.us { background: #fff3e0; color: #e65100; }     /* Light Orange / Dark Orange text */
.global { background: #f1f8e9; color: #33691e; } /* Light Green / Dark Green text */

/* Extra padding for the info text below the table */
.info-text {
    text-align: center; 
    font-size: 0.85rem; 
    color: #888;
    margin-bottom: 2rem;
}