/* Root variables for easy theming */
:root {
    --primary-color: #00AEEF; /* albastru Digi inspirat */
    --accent-color: #E6007E; /* magenta caldă ca accent */
    --light-bg: #f7f9fb;
    --dark-text: #333;
    --max-width: 1200px;
    --transition-speed: 0.3s;
}

/* Reset & base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Navigation bar */
header {
    background: var(--primary-color);
    color: #fff;
    /* Facem antetul relativ pentru a nu se suprapune peste conținut. */
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    /* the logo text is no longer used; replaced by image */
}

/* Logo image styling */
/* Dimensiunea siglei ajustată conform cerinței: 300 px înălțime × 500 px lățime */
.logo-img {
    height: 300px;
    width: 500px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Responsive adjustments for header and navigation */
@media (max-width: 768px) {
    /* Scale down the logo on smaller screens to free up vertical space */
    .logo-img {
        height: 150px;
        width: auto;
    }
    /* Stack navigation items vertically and center them */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        display: inline-block;
        padding: 8px 0;
        font-size: 1.1rem;
    }
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Highlight link for current page when using .active-link */
nav ul li a.active-link {
    color: var(--accent-color);
}

/* Hero section */
.hero {
    height: 60vh;
    min-height: 400px;
    /* Imaginea de fundal este bannerul ilustrativ; gradientul aplicat deasupra oferă contrast pentru text */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/banner-hero.png') center/cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    margin-top: 0; /* header is no longer fixed; reset margin */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 600px;
}

.cta-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background var(--transition-speed), color var(--transition-speed);
    display: inline-block;
}

.cta-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Decorative star in hero */
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
}

/* Sections headings */
section h2 {
    /* Basic section heading styles; specific effects are defined in .section-title */
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/*
 * Section title with decorative underline and subtle text shadow.
 * This class is added to h2 elements in each section (SIM cards, topup, contact)
 * to apply custom effects. The underline is centered by default, but can be
 * aligned left within specific sections using overrides below. The text shadow
 * adds depth to the heading.
 */
.section-title {
    /* Titles are centered by default; specific sections can override this alignment */
    text-align: center;
    display: inline-block;
    position: relative;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 8px auto 0;
    /* Underline is initially hidden horizontally; we control its scale via a CSS transform. */
    transform-origin: left;
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease-out;
}

/* When the section title becomes active (via JS), the underline expands fully */
.section-title.active::after {
    transform: scaleX(1);
}

/* Override underline alignment for left‑aligned sections */
.topup-section .section-title::after,
.contact-section .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

/* Override alignment for titles in topup and contact sections */
.topup-section .section-title,
.contact-section .section-title {
    text-align: left;
}

/* Products section */
.products-section {
    padding: 60px 20px;
    background: #fff;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.product-card button:hover {
    background: var(--primary-color);
}

/* Top up section */
.topup-section {
    padding: 60px 20px;
    background: var(--light-bg);
    text-align: center;
}

/* Structură pentru secțiunea de încărcare: icon + conținut */
.topup-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
}

.topup-icon {
    width: 180px;
    height: auto;
}

.topup-content {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.topup-form {
    max-width: 400px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topup-form label {
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
}

.topup-form input,
.topup-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.topup-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.topup-form button:hover {
    background: var(--accent-color);
}

/* Contact section */
.contact-section {
    background: #fff;
    padding: 60px 20px;
    /* aliniere stânga pentru o prezentare mai profesională a datelor companiei */
    text-align: left;
}

.contact-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* List styling for detaliile companiei din secțiunea de contact */
.company-info {
    list-style: none;
    margin: 10px auto 20px;
    padding: 0;
    max-width: 400px;
    text-align: left;
}
.company-info li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Card pentru datele firmei din secțiunea de contact */
/* Generic card used in contact section */
.contact-card {
    border-left: 4px solid var(--primary-color);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1 1 280px;
    box-sizing: border-box;
}

/* Specific style for company info card */
.company-info-card {
    border-left-color: var(--primary-color);
}

/* Specific style for contact details card */
.contact-details-card {
    border-left-color: var(--accent-color);
}

.company-info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
    text-align: left;
}

.contact-details-card p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.company-info-card .company-info li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.company-info-card .company-info li strong {
    color: var(--accent-color);
}

/* Container for cards in the contact section */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    nav ul {
        gap: 10px;
    }
    .product-card {
        width: 100%;
        max-width: 330px;
    }

    /* Responsivitate pentru cardurile de extra-opțiuni: se întind pe toată lățimea pe ecrane înguste */
    .extra-option-card {
        width: 100%;
        max-width: 330px;
    }
}

/* Order section styles */
.order-section {
    padding: 60px 20px;
    background: var(--light-bg);
    text-align: center;
}

.order-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.order-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.order-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.order-form button:hover {
    background: var(--accent-color);
}

/* Stilizare pentru selectorul de cantitate din pagina de comandă */
.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-input input {
    width: 70px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.qty-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
}

.qty-btn:hover {
    background: var(--accent-color);
}

/* Form styling for contact section (support form) */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-top: 15px;
}

.support-form label {
    font-weight: bold;
    margin-bottom: 4px;
}

.support-form input,
.support-form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

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

.support-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.support-form button:hover {
    background: var(--accent-color);
}

/* ==================================================================== */
/* Extra Options Section Styles                                        */
/* A new section to display DIGI prepaid extra options cards.          */
.extra-options-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.extra-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.extra-option-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.extra-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.extra-option-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: left;
}

.extra-option-card .price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.extra-option-card ul {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 20px;
    text-align: left;
}

.extra-option-card ul li {
    position: relative;
    margin-bottom: 6px;
    line-height: 1.4;
}

.extra-option-card ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: -15px;
}

.extra-option-card button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-speed);
    align-self: flex-start;
}

.extra-option-card button:hover {
    background: var(--accent-color);
}

/* ==================================================================== */
/* GDPR section styles                                                   */
/* Define layout and typography for the pagina GDPR.                     */
.gdpr-section {
    padding: 60px 20px;
    background: #fff;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Align the main title and underline to the left in GDPR */
.gdpr-section .section-title {
    text-align: left;
    display: inline-block;
}

.gdpr-section .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

/* Style for subheadings within GDPR page */
.gdpr-section .subheading {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Typography for paragraphs and lists in GDPR */
.gdpr-section p {
    max-width: 900px;
    margin: 0 auto 1em;
    line-height: 1.6;
    color: var(--dark-text);
    text-align: left;
}

.gdpr-section ul {
    max-width: 900px;
    margin: 0 auto 1em 1.5em;
    padding-left: 0;
    line-height: 1.6;
    color: var(--dark-text);
}

.gdpr-section ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}